lkml.org 
[lkml]   [2023]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v1 1/5] mm: kmem: optimize get_obj_cgroup_from_current()
    On Fri, Sep 29, 2023 at 11:00:51AM -0700, Roman Gushchin wrote:
    > Manually inline memcg_kmem_bypass() and active_memcg() to speed up
    > get_obj_cgroup_from_current() by avoiding duplicate in_task() checks
    > and active_memcg() readings.
    >
    > Also add a likely() macro to __get_obj_cgroup_from_memcg():
    > obj_cgroup_tryget() should succeed at almost all times except a very
    > unlikely race with the memcg deletion path.
    >
    > Signed-off-by: Roman Gushchin (Cruise) <roman.gushchin@linux.dev>
    > Acked-by: Shakeel Butt <shakeelb@google.com>

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

    \
     
     \ /
      Last update: 2023-10-03 18:50    [W:2.437 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site