11–13 Dec 2025
Asia/Tokyo timezone

Reading memcg stats more efficiently

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

Speaker

JP Kobryn (Meta)

Description

Context: https://lore.kernel.org/all/20251001045456.313750-1-inwardvessel@gmail.com/

Periodically reading data directly through memory.stat can be expensive across a large enough fleet. Most of the overhead lies in the string formatting and numeric conversion not only in the kernel but also by any user mode program parsing the data. I’d like to discuss the proposed kfuncs in the patch and how they can be paired with a BPF program to collect stats more efficiently. I will show a real world application of this concept in the tool called “below”.

Primary author

Presentation materials

There are no materials yet.