首页> 外文期刊>Advances in electronic and electric engineering >Reducing Context Switching Overhead by Processor Architecture Modification
【24h】

Reducing Context Switching Overhead by Processor Architecture Modification

机译:通过修改处理器架构来减少上下文切换开销

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

摘要

The operating system is an essential component of the system software in any conventional system that even includes Real-time system (RTS) and the OS running on RTS refered to as RTOS. But, in case of real-time systems, the time at which output produced is of major concern, especially in case of Hard RTS the deadlines are to be met strictly, failure of which leads to disasters. Multi-tasking, one of the major attribute of OS involves context-switching. The switching between tasks involves saving the context of the current running task in to the stack and restoring the context of the task to be executed. The context of the task involves the value of Program counter, temporary register values, global pointer value, stack pointer value. The process of storing and restoring of context from memory to processor or viceversa is referred to as Context-Switching. Context-Switching introduces significant amount of overhead to the overall task execution time, as transfer of contents between processor and memory is a bit time consuming. This overhead has to be minimized by avoiding usage of external memory during context-switching, so that the deadlines are met i.e. output is produced at stipulated time. This paper focuses on reducing the overhead by modifying the architecture of the processor by adding additional register files in to the existing register bank of processor so that context can be saved on processor itself, thereby additional clock cycles for storing and restoring from memory is eliminated. The architecture is developed in VHDL. A co-operative RTOS is developed along with the applications in C language to test the new architecture. Modified GCC compiler is used for compiling the executable files. XC3S1600E FPGA is used as target board and the results are observed on the hyper-terminal of PC in form of time-stampings.
机译:操作系统是任何常规系统(甚至包括实时系统(RTS)和在RTS上运行的OS称为RTOS)的任何常规系统中系统软件的基本组件。但是,在实时系统的情况下,产生输出的时间是主要问题,特别是在硬RTS的情况下,必须严格遵守期限,否则将导致灾难。多任务处理是OS的主要属性之一,涉及上下文切换。任务之间的切换涉及将当前正在运行的任务的上下文保存到堆栈中,并还原要执行的任务的上下文。任务的上下文涉及程序计数器的值,临时寄存器的值,全局指针值,堆栈指针值。从存储器到处理器或反之亦然的上下文存储和恢复过程称为上下文切换。上下文切换为整个任务执行时间带来了大量开销,因为处理器和内存之间的内容传输非常耗时。必须通过避免在上下文切换期间使用外部存储器来最小化该开销,以便满足最后期限,即在规定的时间产生输出。本文的重点是通过在现有的处理器寄存器库中添加其他寄存器文件来修改处理器的体系结构,从而减少开销,从而可以将上下文保存在处理器本身上,从而消除了用于存储和从内存中恢复的其他时钟周期。该体系结构是在VHDL中开发的。开发了合作的RTOS以及C语言的应用程序来测试新架构。修改后的GCC编译器用于编译可执行文件。 XC3S1600E FPGA被用作目标板,并且在PC的超级终端上以时间戳的形式观察到了结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号