arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1403.8020cs.DCcs.PF
收藏

众核处理器上多道程序设计的一种高效线程映射策略

An Efficient Thread Mapping Strategy for Multiprogramming on Manycore Processors

Ashkan Tousimojarad, Wim Vanderbauwhede

摘要:

多核和众核处理器的出现将改变并行计算世界。应用程序正在转向增加并行性,以便有效地利用这些架构。这导致了这样一种情况,即每个应用程序都根据其并行特性和系统资源允许量创建其所需数量的线程。在这样的多线程多道程序设计环境中的任务调度是一个重大的挑战。在任务调度中,不仅要考虑任务的执行顺序,而且要考虑线程到执行资源的映射。在本文中,我们国家和讨论一些基本规则的基础上获得的结果从选定的应用程序的BOTS基准的64核TILEPro 64处理器。我们演示了如何以前高效的映射策略,如SMP Linux调度程序变得效率低下时,线程和核心的数量增长。我们提出了一种新的,低开销的技术,启发式的基础上每个CPU做一些有用的工作所花费的时间量,公平地分配工作负载的核心之间的多道程序设计环境。我们的新方法可以实现为一个杂注类似于那些在新的基于任务的OpenMP版本,或可以作为一个分布式线程映射机制,在未来的众核编程框架。我们表明,我们的线程映射方案可以优于本机GNU/Linux线程调度在单编程和多编程环境。

英文摘要:

The emergence of multicore and manycore processors is set to change the parallel computing world. Applications are shifting towards increased parallelism in order to utilise these architectures efficiently. This leads to a situation where every application creates its desirable number of threads, based on its parallel nature and the system resources allowance. Task scheduling in such a multithreaded multiprogramming environment is a significant challenge. In task scheduling, not only the order of the execution, but also the mapping of threads to the execution resources is of a great importance. In this paper we state and discuss some fundamental rules based on results obtained from selected applications of the BOTS benchmarks on the 64-core TILEPro64 processor. We demonstrate how previously efficient mapping policies such as those of the SMP Linux scheduler become inefficient when the number of threads and cores grows. We propose a novel, low-overhead technique, a heuristic based on the amount of time spent by each CPU doing some useful work, to fairly distribute the workloads amongst the cores in a multiprogramming environment. Our novel approach could be implemented as a pragma similar to those in the new task-based OpenMP versions, or can be incorporated as a distributed thread mapping mechanism in future manycore programming frameworks. We show that our thread mapping scheme can outperform the native GNU/Linux thread scheduler in both single-programming and multiprogramming environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑