global_dirtyable_memory(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… global_dirtyable_memory(9) β€” from the Kernel API Manual, bestie ✨

Okay so picture this: you're deep in the kernel, the Kernel API Manual is open on your other monitor, and you need to know how many pages the whole system could hypothetically let go dirty. That's the whole gig. This little function is the main character of page-writeback bookkeeping, and honestly? It ate. 🫢


🌸 NAME 🌸

global_dirtyable_memory β€” the number of globally dirtyable pages, periodt πŸ’…


✨ SYNOPSIS ✨

unsigned long global_dirtyable_memory (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, babe. Zero. None. It takes nothing and it gives everything. πŸ¦‹

πŸ‘‘ RETURN πŸ‘‘

It hands you back the global number of pages potentially available for dirty page cache. Read that again: potentially. It's the vibe-check number, not a promise.

Lowkey the important bit: this is the base value for the global dirty limits. So everything downstream keys off this. It's giving "foundation of the whole situation" energy. πŸ”₯

Ngl, the word "potentially" is doing a lot of heavy lifting in that sentence, so don't come for this function when your page cache math looks off. πŸ™ˆ

πŸ’– SEE ALSO πŸ’–

Okay bestie, buckle up, because the friend group here is large. Kernel file ./mm/page-writeback.c, plus the whole squad:

Like, that's a full group chat right there. Go say hi. πŸ’œ


That's the whole page, no cap πŸ’« β€” straight out of ./mm, dated October 2026, and yes it's still called global_dirtyable_memory(9) the whole way through. Mwah! πŸ“πŸ§šπŸ’…

πŸ“¦ where this page comes from