Re: [RFC 1/5] meminfo: add a per node counter for balloon drivers

From: David Hildenbrand
Date: Wed Mar 12 2025 - 18:19:22 EST


On 12.03.25 01:06, Nico Pache wrote:
Add NR_BALLOON_PAGES counter to track memory used by balloon drivers and
expose it through /proc/meminfo and other memory reporting interfaces.

In balloon_page_enqueue_one(), we perform a

__count_vm_event(BALLOON_INFLATE)

and in balloon_page_list_dequeue

__count_vm_event(BALLOON_DEFLATE);


Should we maybe simply do the per-node accounting similarly there?

--
Cheers,

David / dhildenb