gmap_helper..._cow_sharing(9)
π 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:
- Disables KSM and unmerges/unshares any KSM pages. bye π
- Disallows shared zeropages and unshares any
zerpagesthat 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 π
- Kernel file
./arch/s390/mm/gmap_helpers.c try_get_locked_pte(9)gmap_helper_zap_one_page(9)gmap_helper_discard(9)gmap_helper_try_set_pte_unused(9)
go read these too, iykyk π
mwah π β from ./arch/s390/mm, October 2026. periodt. π
π¦ 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