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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220830055949.12640-1-ryncsn@gmail.com>
Date:   Tue, 30 Aug 2022 13:59:47 +0800
From:   Kairui Song <ryncsn@...il.com>
To:     cgroups@...r.kernel.org, linux-mm@...ck.org
Cc:     Johannes Weiner <hannes@...xchg.org>,
        Michal Hocko <mhocko@...nel.org>,
        Roman Gushchin <roman.gushchin@...ux.dev>,
        Shakeel Butt <shakeelb@...gle.com>,
        Muchun Song <songmuchun@...edance.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        linux-kernel@...r.kernel.org, Kairui Song <kasong@...cent.com>
Subject: [PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params

From: Kairui Song <kasong@...cent.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ