[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YOhiCbrBjWnJaJMt@cmpxchg.org>
Date: Fri, 9 Jul 2021 10:49:45 -0400
From: Johannes Weiner <hannes@...xchg.org>
To: Suren Baghdasaryan <surenb@...gle.com>
Cc: tj@...nel.org, mhocko@...nel.org, vdavydov.dev@...il.com,
akpm@...ux-foundation.org, shakeelb@...gle.com, guro@...com,
songmuchun@...edance.com, shy828301@...il.com, alexs@...nel.org,
alexander.h.duyck@...ux.intel.com, richard.weiyang@...il.com,
vbabka@...e.cz, axboe@...nel.dk, iamjoonsoo.kim@....com,
david@...hat.com, willy@...radead.org, apopple@...dia.com,
minchan@...nel.org, linmiaohe@...wei.com,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org,
linux-mm@...ck.org, kernel-team@...roid.com
Subject: Re: [PATCH 3/3] mm, memcg: inline swap-related functions to improve
disabled memcg config
On Thu, Jul 08, 2021 at 05:05:09PM -0700, Suren Baghdasaryan wrote:
> Inline mem_cgroup_try_charge_swap, mem_cgroup_uncharge_swap and
> cgroup_throttle_swaprate functions to perform mem_cgroup_disabled static
> key check inline before calling the main body of the function. This
> minimizes the memcg overhead in the pagefault and exit_mmap paths when
> memcgs are disabled using cgroup_disable=memory command-line option.
> This change results in ~1% overhead reduction when running PFT test
> comparing {CONFIG_MEMCG=n} against {CONFIG_MEMCG=y, cgroup_disable=memory}
> configuration on an 8-core ARM64 Android device.
>
> Signed-off-by: Suren Baghdasaryan <surenb@...gle.com>
Looks reasonable to me as well.
Acked-by: Johannes Weiner <hannes@...xchg.org>
Powered by blists - more mailing lists