During Kernel Recipes, after his talk on memory counters in Linux, I asked @vbabka a naive question : how does the kernel sort between active and inactive pages? He kindly pointed to this talk at LPC in 2022 https://www.youtube.com/watch?v=0bnWQF7WQP0

It turns out the answer is quite complex, as there are many special cases : the talk is 54 minutes long, and answering my question with an overview (skipping many details) takes 20+ minutes!

I learned a ton on how memory reclaim works, and I recommend you watch it if you like to understand the details of how your OS works.

#LinuxKernel #kr2024 #lpc2022 #KernelRecipes

Overview of memory reclaim in the current upstream kernel - Vlastimil Babka

YouTube
@Aissen @vbabka there's a great book coming about that too ;)
@ljs @vbabka and there is a non-zero chance I'll buy it on day 1. But I won't read it, I'll wait for the podcast "Linux Memory Management, read with the smooth David Attenborough-style-voice of Lorenzo Stoakes"
@Aissen @vbabka oh wow I was asking myself the same question during the talk but wasn’t brave enough to ask! Thanks
@Aissen @vbabka what an incredible talk that btw, I only saw the slides but they were really good. I am sure the actual thing was even better

(this is genuine for once I'm not shitposting lol)
@ljs @Aissen thanks, and also for the early slids feedback!
@vbabka @Aissen no probs, I am nice when things are good so I can reserve the right to be a dick otherwise :P