基于分布式强化学习的并行化应用的高效动态固定
Efficient Dynamic Pinning of Parallelized Applications by Distributed Reinforcement Learning
摘要:
本文介绍了一个资源分配框架,专门为解决动态放置(或钉扎)的并行应用程序的处理单元的问题。在所提出的设置下,并行化应用程序的每个线程构成独立的决策器(或代理),其(基于其自己的先前性能测量和其自己的先前CPU亲和性)决定接下来运行哪个处理单元。决策由资源管理器/调度器针对每个线程递归地更新,该资源管理器/调度器与应用程序的线程并行运行,并定期记录它们的性能并向它们分配新的CPU亲和性。为了更新CPU亲和度,调度器使用分布式并行学习算法,其每个分支负责为每个线程分配新的放置策略。根据该算法,先前的分配将在未来按其先前的性能成比例地得到加强。所提出的资源分配框架是足够灵活的,以解决替代的优化标准,如最大的平均处理速度和最小的速度变化线程之间。我们分析表明,收敛到局部最优位置渐近实现。最后,通过在Linux平台上的实验验证了上述结果。
英文摘要:
This paper introduces a resource allocation framework specifically tailored for addressing the problem of dynamic placement (or pinning) of parallelized applications to processing units. Under the proposed setup each thread of the parallelized application constitutes an independent decision maker (or agent), which (based on its own prior performance measurements and its own prior CPU-affinities) decides on which processing unit to run next. Decisions are updated recursively for each thread by a resource manager/scheduler which runs in parallel to the application's threads and periodically records their performances and assigns to them new CPU affinities. For updating the CPU-affinities, the scheduler uses a distributed reinforcement-learning algorithm, each branch of which is responsible for assigning a new placement strategy to each thread. According to this algorithm, prior allocations are going to be reinforced in the future proportionally to their prior performance. The proposed resource allocation framework is flexible enough to address alternative optimization criteria, such as maximum average processing speed and minimum speed variance among threads. We demonstrate analytically that convergence to locally-optimal placements is achieved asymptotically. Finally, we validate these results through experiments in Linux platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。