计算机应用 ›› 2010, Vol. 30 ›› Issue (8): 2052-2055.

• 先进计算 • 上一篇    下一篇

线程切换开销分析工具的设计与实现

阳国贵1,姜波2   

  1. 1. 长沙国防科学技术大学计算机学院
    2.
  • 收稿日期:2010-02-08 修回日期:2010-03-13 发布日期:2010-07-30 出版日期:2010-08-01
  • 通讯作者: 阳国贵
  • 基金资助:
    国家863计划“高端容错计算机总体技术研究”项目

Design and implementation of cost measurement for thread context switch

  • Received:2010-02-08 Revised:2010-03-13 Online:2010-07-30 Published:2010-08-01
  • Contact: YANG GuoGui

摘要: 在多片多核计算机系统中,线程切换的间接开销受到体系结构、负载模式和调度策略的影响,为了获得更为稳定的测试结果,在分析Lmbench测试程序框架和进程切换测试原理的基础上,针对多片多核处理机系统中的线程测试需求,通过集成多种负载模式和调度策略,设计和实现了新的线程切换延时测试程序LTC,为多核系统下的线程切换延时测试与分析提供了有效手段。

关键词: 多片多核, 线程调度, 切换延时, 性能测试

Abstract: In a multi-chip multi-core computer system, the indirect cost of thread context switch is affected by the architecture, workload and scheduling strategy. In order to gain a more stable result, the measurement for thread context switch should take account of these factors. Based on the analysis of the Lmbenchs framework and working principle, a new program called LTC was designed and implemented. Considering the requirements of thread performance measurement, load models and scheduling policies were integrated into the LTC. The result shows that LTC is a good tool for analyzing the cost of thread context switch in a multicore system.

Key words: multi-chip multi-core, thread scheduling, switch latency, performance evaluation