Re: [External] [PATCH v3 3/3] mm, memcg: inline swap-related functions to improve disabled memcg config

From
Muchun Song <hidden>
Date
2021-07-10 11:19:45
Also in
linux-mm, lkml
Reply to
Suren Baghdasaryan, 2021-07-10
On Sat, Jul 10, 2021 at 8:36 AM Suren Baghdasaryan [off-list ref] 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 <redacted>
Reviewed-by: Shakeel Butt <redacted>
Acked-by: Johannes Weiner <redacted>
LGTM.

Reviewed-by: Muchun Song <redacted>

Thanks.
Thread (20 messages) 20 messages, 5 authors, last reply 2021-07-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help