[PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Kairui Song <kasong@xxxxxxxxxxx>

Patch 1/2 changes the behavior of kmem accounting a bit, making
it either globally enabled or globally disabled by boot params and
no longer affected by the creation of the first non-root cgroup.
This might be a bit arguable though.

Patch 2/2 optimizes some hot paths by making cgroup_memory_noswap a
static key, benchmark shows swap paths now have a ~4% lower overhead.

Kairui Song (2):
  mm: memcontrol: remove mem_cgroup_kmem_disabled
  mm: memcontrol: make cgroup_memory_noswap a static key

 include/linux/memcontrol.h |  8 +------
 mm/memcontrol.c            | 45 +++++++++++++++++++++++---------------
 mm/percpu.c                |  2 +-
 mm/slab_common.c           |  2 +-
 4 files changed, 30 insertions(+), 27 deletions(-)

-- 
2.35.2





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux