On Tue, Dec 20, 2022 at 10:27:45AM -0800, Roman Gushchin <roman.gushchin@xxxxxxxxx> wrote: > To charge a freshly allocated kernel object to a memory cgroup, the > kernel needs to obtain an objcg pointer. Currently it does it > indirectly by obtaining the memcg pointer first and then calling to > __get_obj_cgroup_from_memcg(). Jinx [1]. You report additional 7% improvement with this patch (focused on allocations only). I didn't see impressive numbers (different benchmark in [1]), so it looked as a microoptimization without big benefit to me. My 0.02€ to RFC, Michal [1] https://bugzilla.kernel.org/show_bug.cgi?id=216038#c5
Attachment:
signature.asc
Description: Digital signature