lkml.org 
[lkml]   [2021]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] mm, memcg: add mem_cgroup_disabled checks in vmpressure and swap-related functions
    On Thu, Jul 08, 2021 at 05:05:07PM -0700, Suren Baghdasaryan wrote:
    > Add mem_cgroup_disabled check in vmpressure, mem_cgroup_uncharge_swap and
    > cgroup_throttle_swaprate functions. 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 ~2.1% overhead reduction when running PFT test
    > comparing {CONFIG_MEMCG=n, CONFIG_MEMCG_SWAP=n} against {CONFIG_MEMCG=y,
    > CONFIG_MEMCG_SWAP=y, cgroup_disable=memory} configuration on an 8-core
    > ARM64 Android device.
    >
    > Signed-off-by: Suren Baghdasaryan <surenb@google.com>

    Acked-by: Johannes Weiner <hannes@cmpxchg.org>

    \
     
     \ /
      Last update: 2021-07-09 16:41    [W:9.117 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site