Re: 回复: 回复: [PATCH] debugobjects: install cpu hotplug callback

From: Thomas Gleixner
Date: Wed Aug 26 2020 - 05:41:46 EST


On Wed, Aug 26 2020 at 08:34, Qiang Zhang wrote:

> ________________________________________
> 发件人: linux-kernel-owner@xxxxxxxxxxxxxxx <linux-kernel-owner@xxxxxxxxxxxxxxx> 代表 Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> 发送时间: 2020年8月26日 7:53
> 收件人: Waiman Long; Zhang, Qiang; elver@xxxxxxxxxx
> 抄送: linux-kernel@xxxxxxxxxxxxxxx; akpm@xxxxxxxxxxxxxxxxxxxx
> 主题: Re: 回复: [PATCH] debugobjects: install cpu hotplug callback

Can you please fix your mail client not to copy the headers into the
mail body? The headers are already in the mail itself.

> On Tue, Aug 25 2020 at 18:26, Waiman Long wrote:

Something like this is completely sufficient.

>>That's a really good question nevertheless. The only case where this
>>ever matters is physical hotplug. All other CPU hotplug stuff is
>>temporarily or in case of a late (post boottime) SMT disable it's going
>>to be a handful of free objects on that pool. As debugobjects is as the
>>name says a debug facility the benefit is questionable unless there is a
>>good reason to do so.
>
> I don't know there may not be too many objects in the percpu pool,
> but that doesn't mean they no need to be free, a CPU may never be
> online after it is offline. some objects in percpu pool is never
> free.

And this matters because? Because your fully debug enabled kernel will
have an uptime of years after disabling the CPU?

That said, I'm not opposed against this patch, but

'we should free objects'

is not a convincing technical argument for doing this. If we want to
have that then please add proper technical arguments to the changelog.

Thanks,

tglx