gmap_helper..._cow_sharing(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so this is from the Kernel API Manual, and the function is gmap_helper_disable_cow_sharing β€” it disables all COW sharing. bestie, it’s giving β€œshut it down” energy πŸ’…


✨ SYNOPSIS ✨

int gmap_helper_disable_cow_sharing (void );

🫢 ARGUMENTS 🫢

  • void β€” no arguments. literally none. not a single one 😌

πŸ’– DESCRIPTION πŸ’–

This one disables most COW-sharing of memory pages for the whole process. like, the entire process, no cap. it does it in two steps:

  1. Disables KSM and unmerges/unshares any KSM pages. bye πŸ‘‹
  2. Disallows shared zeropages and unshares any zerpages that are mapped. (yes, zerpages β€” that’s the page’s spelling, not me 😭)
Also, just so you know: we currently don’t bother with COW-shared pages that are shared with parent/child processes due to fork. that’s the note 🫑

🌈 SEE ALSO 🌈

go read these too, iykyk πŸ‘‘


mwah πŸ’‹ β€” from ./arch/s390/mm, October 2026. periodt. πŸŽ€

πŸ“¦ where this page comes from