workingset_age_nonresident(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

workingset_age_nonresident β€” bestie, this one ages your non-resident entries right alongside the LRU ages ✨


🌸 SYNOPSIS 🌸

void workingset_age_nonresident(struct lruvec *lruvec, unsigned long nr_pages);

πŸŽ€ ARGUMENTS πŸŽ€

  • lruvec β€” the lruvec that just got aged πŸ‘‘ like, the actual victim of the aging, okay?
  • nr_pages β€” how many pages we're counting here πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: your in-memory pages are out here getting aged, right? and the non-resident pages are just sitting there like πŸ‘οΈπŸ‘„πŸ‘οΈ β€” no. not on our watch. non-resident pages gotta be aged too, because otherwise the refault distances later on are literally not comparable to the in-memory dimensions, and that's a vibe check nobody wants to fail 😭

so this function is the whole point: it lets reclaim and LRU operations drive the non-resident aging along in parallel 🫢 two things, one motion, main character energy fr fr.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./mm/workingset.c and its little friend group:


and that's the whole page, bestie πŸ’œ this glow-up came straight out of ./mm, dated October 2026 β€” workingset_age_nonresident(9), signing off πŸŽ€βœ¨

πŸ“¦ where this page comes from