vmballoon_shrinker_scan(9)
๐ vmballoon_shrinker_scan(9) โ like, the Kernel API Manual, bestie ๐
okay so picture this: it's section 9 of the kernel manual, the vibe is memory pressure, and our main character is vmballoon_shrinker_scan. she's the one who shows up when things get tight and lets some air out of the balloon. iconic behaviour, honestly. ๐ซถ
โจ NAME โจ
vmballoon_shrinker_scan โ deflate the balloon due to memory pressure. yes that's the whole job. no cap, she just deflates. ๐จ
๐ SYNOPSIS ๐
unsigned long vmballoon_shrinker_scan (struct shrinker *shrinker ,
struct shrink_control *sc );
look at her signature. so clean. so unsigned long. ๐
๐ธ ARGUMENTS ๐ธ
shrinkerโ pointer to the balloon shrinker. that's her. that's the girl. she's pointing at herself basically ๐scโ page reclaim information. the whole reclaim situation, all packaged up and handed over ๐ฆ
โญ RETURN โญ
number of pages that were freed during deflation. so she does report back, and the number she gives you is literally how many pages got freed while she was deflating. periodt. ๐ฅ
๐ฎ SEE ALSO ๐ฎ
Kernel file ./drivers/misc/vmw_balloon.c โ that's the whole friend group's group chat, and honestly every single one of them is invited:
enum vmballoon_cmd_type(9)struct vmballoon_batch_entry(9)vmballoon_send_guest_id(9)vmballoon_page_order(9)vmballoon_page_in_frames(9)vmballoon_mark_page_offline(9)vmballoon_mark_page_online(9)vmballoon_send_get_target(9)vmballoon_alloc_page_list(9)vmballoon_handle_one_result(9)vmballoon_status_page(9)vmballoon_lock_op(9)vmballoon_add_page(9)vmballoon_lock(9)vmballoon_release_page_list(9)vmballoon_change(9)vmballoon_enqueue_page_list(9)vmballoon_dequeue_page_list(9)vmballoon_split_refused_pages(9)vmballoon_inflate(9)vmballoon_deflate(9)vmballoon_deinit_batching(9)vmballoon_init_batching(9)vmballoon_vmci_init(9)vmballoon_pop(9)vmballoon_work(9)vmballoon_shrinker_count(9)vmballoon_debug_show(9)vmballoon_migratepage(9)
like, go read them. iykyk. ๐
ngl bestie, the whole squad lives in ./drivers/misc โ that's the address, that's the neighbourhood, that's where you'll find all of them ๐ก
okay that's the page!! this one's brought to you by the ./drivers/misc crew, dated October 2026, and yes the footer still says vmballoon_shrinker_scan(9) because we would never leave a girl unlabelled ๐ mwah, go deflate something (responsibly, only under memory pressure) ๐โจ
๐ฆ 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