[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YWV5OY5I0MhTtsn1@chrisdown.name>
Date: Tue, 12 Oct 2021 13:02:01 +0100
From: Chris Down <chris@...isdown.name>
To: Vasily Averin <vvs@...tuozzo.com>
Cc: Vlastimil Babka <vbabka@...e.cz>, Michal Hocko <mhocko@...nel.org>,
Johannes Weiner <hannes@...xchg.org>,
Vladimir Davydov <vdavydov.dev@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
cgroups@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, kernel@...nvz.org,
Mel Gorman <mgorman@...hsingularity.net>,
Uladzislau Rezki <urezki@...il.com>
Subject: Re: [PATCH memcg] mm/page_alloc.c: avoid statistic update with 0
Vasily Averin writes:
>Yes, it's not a bug, it just makes the kernel a bit more efficient in a very unlikely case.
>However, it looks strange and makes uninformed code reviewers like me worry about possible
>problems inside the affected functions. No one else calls these functions from 0.
This statement is meaningless without data. If you have proof that it makes the
kernel more efficient, then please provide the profiles.
As it is I'd be surprised if this improved things. Either the code is hot
enough that the additional branch is cumbersome, or it's cold enough that it
doesn't even matter.
Powered by blists - more mailing lists