Affiliation:
1. Rice University
2. University of Rochester
Abstract
As the volume of data processed by applications has increased, considerable attention has been paid to data address translation overheads, leading to the widespread use of larger page sizes (“superpages”) and multi-level translation lookaside buffers (TLBs). However, far less attention has been paid to instruction address translation and its relation to TLB and pipeline structure. In prior work, we quantified the impact of using code superpages on a variety of widely used applications, ranging from compilers to web user-interface frameworks, and the impact of sharing page table pages for executables and shared libraries. Within this article, we augment those results by first uncovering the effects that microarchitectural differences between Intel Skylake and AMD Zen+, particularly their different TLB organizations, have on instruction address translation overhead. This analysis provides some key insights into the microarchitectural design decisions that impact the cost of instruction address translation. First, a lower-level (level 2) TLB that has both instruction and data mappings competing for space within the same structure allows better overall performance and utilization when using code superpages. Code superpages not only reduce instruction address translation overhead but also indirectly reduce data address translation overhead. In fact, for a few applications, the use of just a few code superpages has a larger impact on overall performance than the use of a much larger number of data superpages. Second, a level 1 (L1) TLB with separate structures for different page sizes may require careful tuning of the superpage promotion policy for code, and a correspondingly suboptimal utilization of the level 2 TLB. In particular, increasing the number of superpages when the size of the L1 superpage structure is small may result in more L1 TLB misses for some applications. Moreover, on some microarchitectures, the cost of these misses can be highly variable, because replacement is delayed until all of the in-flight instructions mapped by the victim entry are retired. Hence, more superpage promotions can result in a performance regression. Finally, our findings also make a case for first-class OS support for superpages on ordinary files containing executables and shared libraries, as well as a more aggressive superpage policy for code.
Funder
National Science Foundation
Publisher
Association for Computing Machinery (ACM)
Subject
Hardware and Architecture,Information Systems,Software
Reference56 articles.
1. Reinhold P. Weicker. n.d. Dhrystone The Classic Benchmark. Retrieved June 2 2023 from https://github.com/sifive/benchmark-dhrystone.
2. TIS Committee. n.d. Tool Interface Standard (TIS) Executable and Linking Format (ELF) Specification. Retrieved June 2 2023 from https://refspecs.linuxfoundation.org/elf/elf.pdf.
3. WikiChip. n.d. Haswell - Microarchitectures - Intel. Retrieved June 2 2023 from https://en.wikichip.org/wiki/intel/microarchitectures/haswell_(client).
4. Intel Open Source: TMA Metrics. Retrieved June 2 2023 from https://download.01.org/perfmon/TMA_Metrics.xlsx.
5. Kernel. n.d. iTLB Multihit. Retrieved June 2 2023 from https://www.kernel.org/doc/html/next/admin-guide/hw-vuln/multihit.html.
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. An Empirical Evaluation of PTE Coalescing;Proceedings of the International Symposium on Memory Systems;2023-10-02