[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <efdb8e40-742e-d120-6589-96b4fdf83cb9@redhat.com>
Date: Fri, 29 Jun 2018 16:40:23 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Michal Hocko <mhocko@...nel.org>,
Shakeel Butt <shakeelb@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
linux-mm@...ck.org, Johannes Weiner <hannes@...xchg.org>,
Vladimir Davydov <vdavydov.dev@...il.com>,
Greg Thelen <gthelen@...gle.com>,
Radim Krčmář <rkrcmar@...hat.com>,
Peter Feiner <pfeiner@...gle.com>, stable@...r.kernel.org
Subject: Re: [PATCH v2] kvm, mm: account shadow page tables to kmemcg
On 29/06/2018 16:30, Michal Hocko wrote:
> I am not familiar wtih kvm to judge but if we are going to account this
> memory we will probably want to let oom_badness know how much memory
> to account to a specific process. Is this something that we can do?
> We will probably need a new MM_KERNEL rss_stat stat for that purpose.
>
> Just to make it clear. I am not opposing to this patch but considering
> that shadow page tables might consume a lot of memory it would be good
> to know who is responsible for it from the OOM perspective. Something to
> solve on top of this.
The amount of memory is generally proportional to the size of the
virtual machine memory, which is reflected directly into RSS. Because
KVM processes are usually huge, and will probably dwarf everything else
in the system (except firefox and chromium of course :)), the general
order of magnitude of the oom_badness should be okay.
> I would also love to see a note how this memory is bound to the owner
> life time in the changelog. That would make the review much more easier.
--verbose for people that aren't well versed in linux mm, please...
Paolo
Powered by blists - more mailing lists