...
首页> 外文期刊>ACM Transactions on Embedded Computing Systems >MTSS: Multitask Stack Sharing for Embedded Systems
【24h】

MTSS: Multitask Stack Sharing for Embedded Systems

机译:MTSS:嵌入式系统的多任务堆栈共享

获取原文
获取原文并翻译 | 示例
           

摘要

Out-of-memory errors are a serious source of unreliability in most embedded systems. Applications run out of main memory because of the frequent difficulty of estimating the memory requirement before deployment, either because it depends on input data, or because certain language features prevent estimation. The typical lack of disks and virtual memory in embedded systems has a serious consequence when an out-of-memory error occurs. Without swap space, the system crashes if its memory footprint exceeds the available memory by even 1 byte. This work improves reliability for multitasking embedded systems by proposing MTSS, a multitask stack sharing technique. If a task attempts to overflow the bounds of its allocated stack space, MTSS grows its stack into the stack memory space allocated for other tasks. This technique can avoid the out-of-memory error if the extra space recovered is sufficient to complete execution. Experiments show that MTSS is able to recover an average of 54% of the stack space allocated to the overflowing task in the free space of other tasks. In addition, unlike conventional systems, MTSS detects memory overflows, allowing the possibility of remedial action or a graceful exit if the recovered space is not enough. Alternatively, MTSS can be used for decreasing the required physical memory of an embedded system by reducing the initial memory allocated to each of the tasks and recovering the deficit by sharing stack with other tasks. The overheads of MTSS are low: the runtime and energy overheads are 3.1% and 3.2%, on average. These are tolerable given that reliability is the most important concern in virtually all systems, ahead of other Concerns, such as runtime and energy.
机译:内存不足错误是大多数嵌入式系统中不可靠性的严重来源。应用程序用尽了主内存,这是因为部署前通常很难估计内存需求,这可能是因为它依赖于输入数据,或者是因为某些语言功能阻止了估计。当发生内存不足错误时,嵌入式系统中磁盘和虚拟内存的典型不足会造成严重后果。没有交换空间,如果系统的内存占用量超出可用内存甚至1个字节,系统就会崩溃。这项工作提出了多任务堆栈共享技术MTSS,从而提高了多任务嵌入式系统的可靠性。如果任务试图溢出其分配的堆栈空间的边界,则MTSS会将其堆栈扩展为分配给其他任务的堆栈存储空间。如果恢复的额外空间足以完成执行,则该技术可以避免内存不足错误。实验表明,MTSS能够在其他任务的空闲空间中平均回收分配给溢出任务的堆栈空间的54%。此外,与传统系统不同,MTSS会检测内存溢出,从而在补救空间不足的情况下可以采取补救措施或正常退出。另外,MTSS可用于减少嵌入式系统所需的物理内存,方法是减少分配给每个任务的初始内存,并通过与其他任务共享堆栈来恢复不足。 MTSS的开销很低:运行时间和能源开销平均为3.1%和3.2%。考虑到可靠性几乎是所有系统中最重要的考虑因素,而不是其他考虑因素,例如运行时间和能源,因此这些是可以容忍的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号