wb_domain_size_changed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ wb_domain_size_changed(9) ✨

okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's important β€” it's about not letting your kernel lowkey self-destruct when memory gets tight. πŸ’…


🌸 NAME 🌸

wb_domain_size_changed β€” the memory available to a wb_domain has changed


πŸ¦‹ SYNOPSIS πŸ¦‹

void wb_domain_size_changed (struct wb_domain *dom );

πŸŽ€ ARGUMENTS πŸŽ€

  • dom β€” the wb_domain of interest 🫢 (the one whose memory situation just shifted)

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: this function should be called whenever the amount of memory available to dom has changed. That's literally its whole job, no cap.

What it does is reset dom's dirty limit parameters. Why? Because the old values are from the before times and they don't match the current configuration anymore β€” and if you leave them hanging around, they'll skew the dirty throttling. Not cute. πŸ™ˆ

And like, this isn't just a nitpick β€” the original is very clear about the consequences. Without this call, when the memory size of a wb_domain is greatly reduced, the dirty throttling logic may allow too many pages to be dirtied, which leads to consecutive unnecessary OOMs, and then it may get stuck in that situation. πŸ’€

so yeah: skip this call at your own risk. unfiltered OOM chaos is not the aesthetic. 😭

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie β€” short, sweet, and absolutely doing the most for kernel stability 🌈⭐

signing off from ./include/linux, dated October 2026 πŸ§šπŸ’œ periodt.

πŸ“¦ where this page comes from