[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87v7k67qpd.fsf@linux.dev>
Date: Wed, 22 Oct 2025 11:10:22 -0700
From: Roman Gushchin <roman.gushchin@...ux.dev>
To: Shakeel Butt <shakeel.butt@...ux.dev>
Cc: SeongJae Park <sj@...nel.org>, Andrew Morton
<akpm@...ux-foundation.org>, Johannes Weiner <hannes@...xchg.org>,
Michal Hocko <mhocko@...nel.org>, Muchun Song <muchun.song@...ux.dev>,
linux-mm@...ck.org, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org, Meta kernel team <kernel-team@...a.com>
Subject: Re: [PATCH] memcg: manually uninline __memcg_memory_event
Shakeel Butt <shakeel.butt@...ux.dev> writes:
> On Tue, Oct 21, 2025 at 05:58:00PM -0700, SeongJae Park wrote:
>> On Tue, 21 Oct 2025 16:44:25 -0700 Shakeel Butt <shakeel.butt@...ux.dev> wrote:
>>
>> > The function __memcg_memory_event has been unnecessarily marked inline
>> > even when it is not really performance critical. It is usually called
>> > to track extreme conditions. Over the time, it has evolved to include
>> > more functionality and inlining it is causing more harm.
>> >
>> > Before the patch:
>> > $ size mm/memcontrol.o net/ipv4/tcp_input.o net/ipv4/tcp_output.o
>> > text data bss dec hex filename
>> > 35645 10574 4192 50411 c4eb mm/memcontrol.o
>> > 54738 1658 0 56396 dc4c net/ipv4/tcp_input.o
>> > 34644 1065 0 35709 8b7d net/ipv4/tcp_output.o
>> >
>> > After the patch:
>> > $ size mm/memcontrol.o net/ipv4/tcp_input.o net/ipv4/tcp_output.o
>> > text data bss dec hex filename
>> > 35137 10446 4192 49775 c26f mm/memcontrol.o
>> > 54322 1562 0 55884 da4c net/ipv4/tcp_input.o
>> > 34492 1017 0 35509 8ab5 net/ipv4/tcp_output.o
>> >
>> > Signed-off-by: Shakeel Butt <shakeel.butt@...ux.dev>
Acked-by: Roman Gushchin <roman.gushchin@...ux.dev>
Thanks!
Powered by blists - more mailing lists