All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kairui Song <ryncsn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org
Cc: Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>,
	Michal Hocko <mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Roman Gushchin
	<roman.gushchin-fxUVXftIFDnyG1zEObXtfA@public.gmane.org>,
	Shakeel Butt <shakeelb-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
	Muchun Song <songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>,
	Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Kairui Song <kasong-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
Subject: [PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params
Date: Tue, 30 Aug 2022 13:59:47 +0800	[thread overview]
Message-ID: <20220830055949.12640-1-ryncsn@gmail.com> (raw)

From: Kairui Song <kasong-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>

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


WARNING: multiple messages have this Message-ID (diff)
From: Kairui Song <ryncsn@gmail.com>
To: cgroups@vger.kernel.org, linux-mm@kvack.org
Cc: Johannes Weiner <hannes@cmpxchg.org>,
	Michal Hocko <mhocko@kernel.org>,
	Roman Gushchin <roman.gushchin@linux.dev>,
	Shakeel Butt <shakeelb@google.com>,
	Muchun Song <songmuchun@bytedance.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Kairui Song <kasong@tencent.com>
Subject: [PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params
Date: Tue, 30 Aug 2022 13:59:47 +0800	[thread overview]
Message-ID: <20220830055949.12640-1-ryncsn@gmail.com> (raw)

From: Kairui Song <kasong@tencent.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



             reply	other threads:[~2022-08-30  5:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-30  5:59 Kairui Song [this message]
2022-08-30  5:59 ` [PATCH 0/2] mm: memcontrol: cleanup and optimize for accounting params Kairui Song
     [not found] ` <20220830055949.12640-1-ryncsn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-30  5:59   ` [PATCH 1/2] mm: memcontrol: remove mem_cgroup_kmem_disabled Kairui Song
2022-08-30  5:59     ` Kairui Song
2022-08-30  6:44     ` Michal Hocko
     [not found]       ` <Yw2x6T3xchjpzX7j-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-08-30  7:06         ` Kairui Song
2022-08-30  7:06           ` Kairui Song
     [not found]           ` <CAMgjq7A+Ju247rC7+fo9jcZpK8rkd0Ou6e=7qzgL4rV3JWBX5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-30  7:12             ` Michal Hocko
2022-08-30  7:12               ` Michal Hocko
     [not found]               ` <Yw24cFGTtOZF7Cgw-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-08-30  7:45                 ` Kairui Song
2022-08-30  7:45                   ` Kairui Song
2022-08-30 18:03     ` kernel test robot
2022-08-30  5:59   ` [PATCH 2/2] mm: memcontrol: make cgroup_memory_noswap a static key Kairui Song
2022-08-30  5:59     ` Kairui Song
     [not found]     ` <20220830055949.12640-3-ryncsn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-30  7:01       ` Michal Hocko
2022-08-30  7:01         ` Michal Hocko
     [not found]         ` <Yw21uOyEz9lLkI3p-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-08-30  8:50           ` Kairui Song
2022-08-30  8:50             ` Kairui Song
     [not found]             ` <CAMgjq7CM_SX3jLj9yp5hzAr6c3hBtS5nd4Nh4z8bTY8yWx-3KQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-30 10:12               ` Michal Hocko
2022-08-30 10:12                 ` Michal Hocko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220830055949.12640-1-ryncsn@gmail.com \
    --to=ryncsn-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
    --cc=kasong-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
    --cc=mhocko-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=roman.gushchin-fxUVXftIFDnyG1zEObXtfA@public.gmane.org \
    --cc=shakeelb-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=songmuchun-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.