[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 1/5] meminfo: add a per node counter for balloon drivers
- To: David Hildenbrand <david@xxxxxxxxxx>
- From: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
- Date: Thu, 13 Mar 2025 03:20:37 -0400
- Cc: Nico Pache <npache@xxxxxxxxxx>, linux-hyperv@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx, cgroups@xxxxxxxxxxxxxxx, kys@xxxxxxxxxxxxx, haiyangz@xxxxxxxxxxxxx, wei.liu@xxxxxxxxxx, decui@xxxxxxxxxxxxx, jerrin.shaji-george@xxxxxxxxxxxx, bcm-kernel-feedback-list@xxxxxxxxxxxx, arnd@xxxxxxxx, gregkh@xxxxxxxxxxxxxxxxxxx, jasowang@xxxxxxxxxx, xuanzhuo@xxxxxxxxxxxxxxxxx, eperezma@xxxxxxxxxx, jgross@xxxxxxxx, sstabellini@xxxxxxxxxx, oleksandr_tyshchenko@xxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, hannes@xxxxxxxxxxx, mhocko@xxxxxxxxxx, roman.gushchin@xxxxxxxxx, shakeel.butt@xxxxxxxxx, muchun.song@xxxxxxxxx, nphamcs@xxxxxxxxx, yosry.ahmed@xxxxxxxxx, kanchana.p.sridhar@xxxxxxxxx, alexander.atanasov@xxxxxxxxxxxxx
- Delivery-date: Thu, 13 Mar 2025 07:20:54 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Mar 12, 2025 at 11:19:06PM +0100, David Hildenbrand wrote:
> 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?
BTW should virtio mem be tied into this too, in some way? or is it too
different?
> --
> Cheers,
>
> David / dhildenb
|