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

无线程助手:用于拖欠不规则负载的自定义预取

Helper Without Threads: Customized Prefetching for Delinquent Irregular Loads

Karthik Sankaranarayanan, Chit-Kwan Lin, Gautham Chinya

摘要:

云和大数据应用程序的内存占用量不断增加,这意味着数据中心CPU可能会花费大量时间等待内存。在这种集中式计算环境中提高性能的一种有吸引力的方法是采用按应用程序定制的预取器,其中增益可以轻松地跨数千台机器扩展。辅助线程预取就是这样一种技术,但尚未得到广泛采用,因为它需要备用线程上下文或特殊的硬件/固件支持。在本文中,我们提出了一个内联软件预取技术,克服了这些限制插入到主线程本身的帮助代码。我们的方法是互补的,并不干扰现有的硬件预取器,因为我们只针对拖欠不规则的加载指令(那些没有常数或跨越地址模式)。对于每个选择的加载指令,我们生成并插入一个自定义的软件预取器,该预取器从应用程序的预取器中提取并模仿应用程序的预取器,所有这些都无需访问应用程序源代码。对于一组内存受限的不规则工作负载,我们在最新的高端硬件(Intel Skylake)上展示了高达2倍的单线程性能提升,并且由于没有线程生成开销,在相同硬件上实现了高达83%的辅助线程加速。

英文摘要:

The growing memory footprints of cloud and big data applications mean that data center CPUs can spend significant time waiting for memory. An attractive approach to improving performance in such centralized compute settings is to employ prefetchers that are customized per application, where gains can be easily scaled across thousands of machines. Helper thread prefetching is such a technique but has yet to achieve wide adoption since it requires spare thread contexts or special hardware/firmware support. In this paper, we propose an inline software prefetching technique that overcomes these restrictions by inserting the helper code into the main thread itself. Our approach is complementary to and does not interfere with existing hardware prefetchers since we target only delinquent irregular load instructions (those with no constant or striding address patterns). For each chosen load instruction, we generate and insert a customized software prefetcher extracted from and mimicking the application's dataflow, all without access to the application source code. For a set of irregular workloads that are memory-bound, we demonstrate up to 2X single-thread performance improvement on recent high-end hardware (Intel Skylake) and up to 83% speedup over a helper thread implementation on the same hardware, due to the absence of thread spawning overhead.

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

↑