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.
