arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.11128cs.DCcs.PF
收藏

基于工作优先原则的NUMA感知任务并行平台

A NUMA-Aware Provably-Efficient Task-Parallel Platform Based on the Work-First Principle

Justin Deters, Jiaye Wu, Yifan Xu, I-Ting Angelina Lee

摘要:

任务并行是为了简化并行编程的任务而设计的。当在现代NUMA架构上执行任务并行程序时,由于称为工作膨胀的现象,其可能无法扩展,其中多个核花费在做有用工作上的总处理时间比在一个核上做相同量的工作所需的时间更高,这是由于仅在并行执行期间经历的影响,诸如额外的高速缓存未命中、远程存储器访问和内存带宽问题。通过将计算与数据放在一起来减轻工作量膨胀是可能的,但这对于任务并行程序来说并不容易。首先,通过设计,任务并行程序的调度是自动化的,使用户几乎无法控制在哪里执行计算。第二,平台倾向于使用工作窃取,这提供了强有力的理论保证,但是其用于负载均衡的随机化协议不能区分远离的工作项和靠近的工作项。在这项工作中,我们提出了NUMA-WS,一个基于工作优先原则的NUMA感知任务并行平台工程。通过遵守工作优先原则,我们能够获得一个工作效率高的平台,提供与经典工作窃取调度器相同的理论保证,并减轻工作膨胀。此外,我们实现了一个原型平台,通过修改英特尔的Cilk Plus运行时系统,并实证证明,由此产生的系统是工作效率和可扩展性。

英文摘要:

Task parallelism is designed to simplify the task of parallel programming. When executing a task parallel program on modern NUMA architectures, it can fail to scale due to the phenomenon called work inflation, where the overall processing time that multiple cores spend on doing useful work is higher compared to the time required to do the same amount of work on one core, due to effects experienced only during parallel executions such as additional cache misses, remote memory accesses, and memory bandwidth issues. It's possible to mitigate work inflation by co-locating the computation with the data, but this is nontrivial to do with task parallel programs. First, by design, the scheduling for task parallel programs is automated, giving the user little control over where the computation is performed. Second, the platforms tend to employ work stealing, which provides strong theoretical guarantees, but its randomized protocol for load balancing does not discern between work items that are far away versus ones that are closer. In this work, we propose NUMA-WS, a NUMA-aware task parallel platform engineering based on the work-first principle. By abiding by the work-first principle, we are able to obtain a platform that is work efficient, provides the same theoretical guarantees as the classic work stealing scheduler, and mitigates work inflation. Furthermore, we implemented a prototype platform by modifying Intel's Cilk Plus runtime system and empirically demonstrate that the resulting system is work efficient and scalable.

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

↑