用于优化CE/IoT设备上的线程操作的线程演进工具包
Thread Evolution Kit for Optimizing Thread Operations on CE/IoT Devices
摘要:
大多数现代操作系统都采用一对一线程模型来支持多核和单核系统中线程的快速执行。此线程模型以一对一的方式映射内核空间和用户空间线程,支持在高性能服务器环境中快速创建和终止线程。然而,当多个线程在具有有限系统资源的低端CE设备中运行时,时间关键线程的性能会降低。当CE设备运行多个线程以支持不同的应用功能时,低级硬件规范通常导致试图获得系统资源的线程之间的显著资源争用。结果,操作系统遇到挑战,诸如过多的线程上下文切换开销、时间关键线程的执行延迟以及用于线程栈的虚拟内存的缺乏。本文提出了一个国家的最先进的线程演化工具包(TEK),由三个主要组件:CPU调解器,堆栈调谐器,增强的线程标识符。从实验中可以看出,与传统的线程模型相比,该方案在高CPU争用下显著提高了用户响应速度(快7倍)。此外,TEK解决了CE应用程序在执行期间增加线程数时经常出现的分段错误问题。
英文摘要:
Most modern operating systems have adopted the one-to-one thread model to support fast execution of threads in both multi-core and single-core systems. This thread model, which maps the kernel-space and user-space threads in a one-to-one manner, supports quick thread creation and termination in high-performance server environments. However, the performance of time-critical threads is degraded when multiple threads are being run in low-end CE devices with limited system resources. When a CE device runs many threads to support diverse application functionalities, low-level hardware specifications often lead to significant resource contention among the threads trying to obtain system resources. As a result, the operating system encounters challenges, such as excessive thread context switching overhead, execution delay of time-critical threads, and a lack of virtual memory for thread stacks. This paper proposes a state-of-the-art Thread Evolution Kit (TEK) that consists of three primary components: a CPU Mediator, Stack Tuner, and Enhanced Thread Identifier. From the experiment, we can see that the proposed scheme significantly improves user responsiveness (7x faster) under high CPU contention compared to the traditional thread model. Also, TEK solves the segmentation fault problem that frequently occurs when a CE application increases the number of threads during its execution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。