summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShakeel Butt <shakeelb@google.com>2018-07-26 16:37:45 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-03 07:47:31 +0200
commita84297b8711dae583dbb6b127e3e94d6c01f0c29 (patch)
treed07f34ed7e0f8f12e7fedf0634ee39a4ebc13f7b /include
parent8d163441d5f8f07f998b97fe8276c65ce28e1b2e (diff)
downloadlinux-stable-a84297b8711dae583dbb6b127e3e94d6c01f0c29.tar.gz
linux-stable-a84297b8711dae583dbb6b127e3e94d6c01f0c29.tar.bz2
linux-stable-a84297b8711dae583dbb6b127e3e94d6c01f0c29.zip
kvm, mm: account shadow page tables to kmemcg
commit d97e5e6160c0e0a23963ec198c7cb1c69e6bf9e8 upstream. The size of kvm's shadow page tables corresponds to the size of the guest virtual machines on the system. Large VMs can spend a significant amount of memory as shadow page tables which can not be left as system memory overhead. So, account shadow page tables to the kmemcg. [shakeelb@google.com: replace (GFP_KERNEL|__GFP_ACCOUNT) with GFP_KERNEL_ACCOUNT] Link: http://lkml.kernel.org/r/20180629140224.205849-1-shakeelb@google.com Link: http://lkml.kernel.org/r/20180627181349.149778-1-shakeelb@google.com Signed-off-by: Shakeel Butt <shakeelb@google.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Vladimir Davydov <vdavydov.dev@gmail.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Greg Thelen <gthelen@google.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Peter Feiner <pfeiner@google.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions