workingset_refault(9)
π 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 π₯
- Kernel file
./mm/workingset.c workingset_age_nonresident(9)workingset_eviction(9)workingset_test_recent(9)workingset_activation(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms