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

From
David Hildenbrand <hidden>
Date
2025-03-13 08:17:46
Also in
cgroups, linux-fsdevel, linux-hyperv, linux-mm, lkml, xen-devel
Reply to
Michael S. Tsirkin, 2025-03-13
On 13.03.25 08:20, Michael S. Tsirkin wrote:
On Wed, Mar 12, 2025 at 11:19:06PM +0100, David Hildenbrand wrote:
quoted
On 12.03.25 01:06, Nico Pache wrote:
quoted
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?

BTW should virtio mem be tied into this too, in some way? or is it too
different?
No, we should limit it to actual balloon drivers that e.g., never completely remove memory.

-- 
Cheers,

David / dhildenb
Thread (20 messages) 20 messages, 4 authors, last reply 2025-03-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help