setup_per_zone_wmarks(9)
π setup_per_zone_wmarks β the Kernel API Manual bestie π
okay so bestie, this is setup_per_zone_wmarks(9) from the Kernel API Manual, and itβs lowkey a short one but it still ate. Letβs get into the lore, no cap. π
πΈ NAME πΈ
setup_per_zone_wmarks β called when min_free_kbytes changes or when memory is hot-{added|removed}. Thatβs the whole assignment, fr fr. β¨
π¦ SYNOPSIS π¦
void setup_per_zone_wmarks (void );
π ARGUMENTS π
voidβ no arguments. literally none, bestie, itβs giving βI need zero inputβ energy. π«Ά
β¨ DESCRIPTION β¨
okay so the whole vibe here is making sure the watermark[min,low,high] values for each zone are set correctly with respect to min_free_kbytes. Thatβs it. Thatβs the task. Itβs very βkeep the watermark situation correctβ and honestly? iconic. π
π₯ SEE ALSO π₯
Kernel file: ./mm/page_alloc.c
__get_pfnblock_flags_mask(9)get_pfnblock_bit(9)get_pfnblock_migratetype(9)__set_pfnblock_flags_mask(9)set_pfnblock_bit(9)clear_pfnblock_bit(9)set_pageblock_migratetype(9)__move_freepages_block_isolate(9)__putback_isolated_page(9)__free_pages(9)free_pages(9)alloc_pages_exact(9)alloc_pages_exact_nid(9)free_pages_exact(9)nr_free_zone_pages(9)nr_free_buffer_pages(9)find_next_best_node(9)free_reserved_pages(9)__free_contig_range(9)alloc_contig_frozen_range(9)alloc_contig_range(9)alloc_contig_frozen_pages(9)alloc_contig_pages(9)free_contig_frozen_range(9)free_contig_range(9)alloc_pages_nolock(9)
thatβs the whole page, bestie π«Ά source/version: ./mm Β· date: October 2026 Β· you just read setup_per_zone_wmarks(9) from the Kernel API Manual. 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