lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <67c2912d-e861-d660-61f0-912a72eff01d@redhat.com>
Date:   Sun, 8 Nov 2020 12:23:27 +0100
From:   Paolo Bonzini <pbonzini@...hat.com>
To:     Roman Gushchin <guro@...com>, Shakeel Butt <shakeelb@...gle.com>
Cc:     Johannes Weiner <hannes@...xchg.org>,
        Michal Hocko <mhocko@...e.com>,
        Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
        linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Subject: Re: [PATCH] mm, kvm: account kvm_vcpu_mmap to kmemcg

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@...gle.com>
>> ---
> 
> Acked-by: Roman Gushchin <guro@...com>
> 
> Thanks, Shakeel!
> 

Acked-by: Paolo Bonzini <pbonzini@...hat.com>

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

Thanks,

Paolo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ