https://github.com/torvalds/linux
Revision d97e5e6160c0e0a23963ec198c7cb1c69e6bf9e8 authored by Shakeel Butt on 26 July 2018, 23:37:45 UTC, committed by Linus Torvalds on 27 July 2018, 02:38:03 UTC
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>
1 parent 16e536e
History
Tip revision: d97e5e6160c0e0a23963ec198c7cb1c69e6bf9e8 authored by Shakeel Butt on 26 July 2018, 23:37:45 UTC
kvm, mm: account shadow page tables to kmemcg
Tip revision: d97e5e6
File Mode Size
Makefile -rw-r--r-- 361 bytes
compat.c -rw-r--r-- 2.2 KB
ipc_sysctl.c -rw-r--r-- 5.4 KB
mq_sysctl.c -rw-r--r-- 2.9 KB
mqueue.c -rw-r--r-- 39.0 KB
msg.c -rw-r--r-- 29.7 KB
msgutil.c -rw-r--r-- 3.6 KB
namespace.c -rw-r--r-- 4.8 KB
sem.c -rw-r--r-- 61.3 KB
shm.c -rw-r--r-- 41.6 KB
syscall.c -rw-r--r-- 4.7 KB
util.c -rw-r--r-- 22.6 KB
util.h -rw-r--r-- 8.9 KB

back to top