Linux 6.12 Adds A Kernel Stack Usage Histogram To Help With Optimizations
([Linux Kernel] 3 Hours Ago
Kernel Stack Usage Histogram)
- Reference: 0001493509
- News link: https://www.phoronix.com/news/Linux-Kernel-Stack-Histogram
- Source link:
Merged as part of the memory management "MM" changes for the [1]Linux 6.12 kernel is a kernel stack usage histogram to help developers in better optimizing the kernel stack sizes and minimizing memory waste.
On Linux 6.12+ with a grep kstack /proc/vmstat there is a break down of the kernel stack usage in power-of-two buckets. This histogram was added to the kernel with fleets of "millions of machines" on the mind. For hyperscalers and others with vast deployments of Linux servers, small optimizations to memory use can make a profound impact.
This is beneficial to efforts around the dynamic kernel stack efforts and hyperscalers/CSPs with the resources to pursue relentlessly optimizing the Linux kernel.
[2]
The full list of MM updates for the Linux 6.12 kernel can be found via [3]this pull request that has already been merged to Linux Git.
[1] https://www.phoronix.com/search/Linux+6.12
[2] https://www.phoronix.com/image-viewer.php?id=2024&image=memory_stack_lrg
[3] https://lore.kernel.org/lkml/20240920023317.f20c9ecbb2a2f4bf382d831c@linux-foundation.org/
On Linux 6.12+ with a grep kstack /proc/vmstat there is a break down of the kernel stack usage in power-of-two buckets. This histogram was added to the kernel with fleets of "millions of machines" on the mind. For hyperscalers and others with vast deployments of Linux servers, small optimizations to memory use can make a profound impact.
This is beneficial to efforts around the dynamic kernel stack efforts and hyperscalers/CSPs with the resources to pursue relentlessly optimizing the Linux kernel.
[2]
The full list of MM updates for the Linux 6.12 kernel can be found via [3]this pull request that has already been merged to Linux Git.
[1] https://www.phoronix.com/search/Linux+6.12
[2] https://www.phoronix.com/image-viewer.php?id=2024&image=memory_stack_lrg
[3] https://lore.kernel.org/lkml/20240920023317.f20c9ecbb2a2f4bf382d831c@linux-foundation.org/
phoronix