lkml.org 
[lkml]   [2020]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm, kvm: account kvm_vcpu_mmap to kmemcg
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@google.com>
> ---

Acked-by: Roman Gushchin <guro@fb.com>

Thanks, Shakeel!

\
 
 \ /
  Last update: 2020-11-06 21:55    [W:0.358 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site