11–13 Dec 2025
Asia/Tokyo timezone

Improving page_owner for profiling and monitoring memory usage per allocation stack trace

Not scheduled
20m
Linux System Monitoring and Observability MC Linux System Monitoring and Observability MC

Speaker

Mauricio Faria de Oliveira (Igalia)

Description

The existing page_owner debug feature tracks the stack trace of memory allocations in the system at the page level. It can answer questions like: 'What allocated this page?' and 'How many pages are allocated by what?' -- pointing right at the source code.

That allows for profiling and monitoring all of the system memory per allocation stack trace to identify trends, leaks, spikes, regressions, correlations with events and metrics/statistics, and so on; then validate whether code changes perform as expected.

While using page_owner, we have been working on support for pages in swap space and reducing the overhead of information and processing for userspace, in order to improve memory coverage and sampling frequency.

This talk discusses the related kernel work and some usage examples.

Primary author

Presentation materials

There are no materials yet.