kirancodes.me
To Proof Maintenance & Beyond!

Rethinking a heap hierarchy as a cache hierarchy: a higher-order theory of memory demand (HOTM)

Pengcheng Li, Hao Luo, Chen Ding

Abstract

Modern memory allocators divide the available memory between different threads and object size classes. They use many parameters that are related and mutually affecting. Existing solutions are based on heuristics which cannot serve all applications equally well. This paper presents a theory of memory demand. The theory enables the global optimization of heap parameters for an application. The paper evaluates the theory and the optimization using multi-threaded micro-benchmarks as well as real applications including Apache, Ghostscript interpreter, and a database benchmarking tool and shows that the global optimization theoretically outperforms three typical heuristics by 15% to 113%.

Related papers