workingset_refault(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… workingset_refault(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one's workingset_refault(9) and it's lowkey the main character of page-cache comebacks. put your hair up, grab a lil snack, we're learning about refaults πŸŽ€


✨ NAME ✨

workingset_refault β€” evaluate the refault of a previously evicted folio. that's it, that's the vibe πŸ¦‹


🌸 SYNOPSIS 🌸

void workingset_refault (struct folio *folio , void *shadow );

literally copy it exactly, i'm not playing πŸ™ˆ


🫢 ARGUMENTS 🫢

  • folio β€” the freshly allocated replacement folio. the new bestie stepping into the group chat πŸ’–
  • shadow β€” shadow entry of the evicted folio. the receipts left behind by the one who got kicked out 😭

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜•: this function calculates and evaluates the refault distance of the previously evicted folio β€” and it does it in the context of the node and the memcg whose memory pressure caused the eviction. like, it's not just looking at the folio in a vacuum, it's checking who was being dramatic and squeezing memory in the first place, and on which node. context is everything, periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

go read the whole friend group, they're all iconic in their own way 🧚


and that's the page!! sign-off time 🌈 this lil number lives in ./mm, dated October 2026, and it's called workingset_refault(9) β€” remember it fondly, bestie πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from