Every Mapping Counts in Large Amounts: Folio Accounting

David Hildenbrand, Martin Schulz, Nadav Amit

Publikation: Beitrag in Buch/Bericht/KonferenzbandKonferenzbeitragBegutachtung

Abstract

Operating systems can significantly enhance performance by utilizing large contiguous memory regions, even when the memory is not mapped using huge pages, by streamlining memory management. To harness these advantages, Linux has introduced "folios," representing multiple contiguous pages. Unlike traditional huge pages, folios can be partially mapped, which complicates folio accounting and hinders both performance and memory savings. Accurate and efficient folio accounting is crucial for optimizing memory management operations, enforcing various memory management policies, and performing Unique Set Size accounting in the operating system. In particular, determining whether a folio is exclusively mapped in a single address space is essential for avoiding unnecessary Copy-On-Write operations when memory is no longer shared. We introduce a novel tracking scheme to determine, with negligible overhead, whether a folio is exclusively mapped in a single address space. Our solution achieves a memory overhead that grows sublinearly with the number of pages per folio. By implementing our method in Linux, we demonstrate a notable improvement in fork and unmap operations by 1.9x and 4.2x respectively, and in the performance of fork-intensive workloads, such as Redis, achieving up to a 2.2x speedup.

OriginalspracheEnglisch
TitelProceedings of the 2024 USENIX Annual Technical Conference, ATC 2024
Herausgeber (Verlag)USENIX Association
Seiten1273-1282
Seitenumfang10
ISBN (elektronisch)9781939133410
PublikationsstatusVeröffentlicht - 2024
Veranstaltung2024 USENIX Annual Technical Conference, ATC 2024 - Santa Clara, USA/Vereinigte Staaten
Dauer: 10 Juli 202412 Juli 2024

Publikationsreihe

NameProceedings of the 2024 USENIX Annual Technical Conference, ATC 2024

Konferenz

Konferenz2024 USENIX Annual Technical Conference, ATC 2024
Land/GebietUSA/Vereinigte Staaten
OrtSanta Clara
Zeitraum10/07/2412/07/24

Fingerprint

Untersuchen Sie die Forschungsthemen von „Every Mapping Counts in Large Amounts: Folio Accounting“. Zusammen bilden sie einen einzigartigen Fingerprint.

Dieses zitieren