News: 0001493509

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.12 Adds A Kernel Stack Usage Histogram To Help With Optimizations

([Linux Kernel] 3 Hours Ago Kernel Stack Usage Histogram)


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/



phoronix

All of the people in my building are insane. The guy above me designs
synthetic hairballs for ceramic cats. The lady across the hall tried to
rob a department store... with a pricing gun... She said, "Give me all
of the money in the vault, or I'm marking down everything in the store."
-- Steven Wright