Re: [PATCH v9 0/7] perf script: Lazy symbol loading
From: Namhyung Kim
Date: Wed Nov 25 2026 - 14:13:58 EST
On Tue, 24 Nov 2026 11:28:23 -0800, Alireza Haghdoost wrote:
> perf script loads the entire ELF symbol table of every DSO that appears
> in a sample, and keeps each symbol, with its demangled name, until
> process exit. Most of those symbols are never sampled. On a large
> profile this turns symbol loading into the main memory cost of perf
> script, and in a memory-constrained cgroup into an OOM kill.
>
> With this series, perf script, perf report and perf top
> --lazy-load-symbols read a symbol name only when a sample needs it. On a
> perf script run over a 45,073-sample callchain profile of a large C++
> service (about 1M symbols), the output is identical in all three cases
> (medians of eleven runs):
>
> [...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung