Re: [PATCH] mm, kvm: account kvm_vcpu_mmap to kmemcg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/11/20 21:52, Roman Gushchin wrote:
On Fri, Nov 06, 2020 at 12:29:23PM -0800, Shakeel Butt wrote:
A VCPU of a VM can allocate couple of pages which can be mmap'ed by the
user space application. At the moment this memory is not charged to the
memcg of the VMM. On a large machine running large number of VMs or
small number of VMs having large number of VCPUs, this unaccounted
memory can be very significant. So, charge this memory to the memcg of
the VMM. Please note that lifetime of these allocations corresponds to
the lifetime of the VMM.

Signed-off-by: Shakeel Butt <shakeelb@xxxxxxxxxx>
---

Acked-by: Roman Gushchin <guro@xxxxxx>

Thanks, Shakeel!


Acked-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

If this patch is not merged via -mm, please ping me again once its dependency is part of Linus's tree.

Thanks,

Paolo




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux