Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3522750pxa; Wed, 26 Aug 2020 02:44:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9rheEzfHsFQ0pH5Cjmm2SiOzdSeaVZ8QOl3ycN2/9iTLSvvHpmw6iafdlpAd7rEoPwaln X-Received: by 2002:a17:906:300b:: with SMTP id 11mr14475658ejz.270.1598435045628; Wed, 26 Aug 2020 02:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598435045; cv=none; d=google.com; s=arc-20160816; b=ffVBx6xH8aQ3c7Mi1l2Vv/9P2WasD/Q6tyMVXn8NUC/vGYiY46Ux67CiaUS+AsZ6Qd jhCrjxnbnBTkqo5LFo50cfTnwdBA8r5b3j0J91NNsXEEw3U01bfOF3oGSjJ2/A7iWt0o OdvSICYGDqgOJM7Kuxq7injfxa2uH8ODCgmnKOGP1vtpZzsrdGzFulzjDBvHEJsNHu7u jivLwyOeFhG9C96KJXPYszL4zO30kv/AJsbuiSflUPxT2J1dgGTlDLR2LL7Yl2x+4Hx0 EPkukKHvSSGRBdvTNgltFp8g4kwXa6gVwYvzwWSDVwwFUcKh1mEZ9//YPGxTCsT2AT3y Getg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=5T6JrWkd1tVkRpZewBe6NAmILES/5wwAPylURy3cHTs=; b=blYi5igYDsVkxFOv3IRUY1cf0I5pXCt4GM2HWNDVlWAzspddoLgNm59y7t2tVloBTj /V93bbt1/Rwc7anHf+QvWHlkGQ6ZqMEcB81eqIiuTFx0b1QV6mEVYBV6rm6supAlQU81 OzBCilXoMbuUArSqkdbFoXKXhu18t7oKcBZd1CNtVETJnN8ACIEGcGCQjnlFSosCC4gv 8/LHIpSjHYiz5rAlAO8j8vU8mdWqIUH5MJPp90CXlp/teFIMur2TSG74lSrj8Za9Czwt pRCG6ZCv0UtpAzGvrqSa55YxQ34G8prCoLsrKtHGWKmVE9lQ0HfDQxoZJ723LKSyR1e1 O57A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="vs+Ds/Lb"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=wDx8T36Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 96si1321381edr.427.2020.08.26.02.43.42; Wed, 26 Aug 2020 02:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="vs+Ds/Lb"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=wDx8T36Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728462AbgHZJln (ORCPT + 99 others); Wed, 26 Aug 2020 05:41:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728259AbgHZJlm (ORCPT ); Wed, 26 Aug 2020 05:41:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A2DDC061574 for ; Wed, 26 Aug 2020 02:41:42 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598434896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5T6JrWkd1tVkRpZewBe6NAmILES/5wwAPylURy3cHTs=; b=vs+Ds/LbD0tTKUu7T/oAp0naRYHaICf4Uzked2Z7DlqMXJfCSN3dedfrgqzdFJfVooN7MH fdVNfdI99UDRb4kCm0JgWh8hofy8RqHby4n7Fb/szzfOm/oO3eAfAVYsju1UpkeFOPd0hv UF0/q+9Lghs6MsqdUuvTMxNA4pHhx3kT0QR8A6S2JQ5k+VBKtoYomwghPKEKoK++SPU5TX zuPuFsN0U9WdgvtWdcuMvlmRWdiMU4mabvT12RIiwxuw7RnzsjbpZyF2Jpwche+Kt1bNsG 7Mz3bEM/D0G9xTqOC0YLx0UnFpLsghkWMstQjNHSvO1u5uOwqvinAYdpqqoHsA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598434896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5T6JrWkd1tVkRpZewBe6NAmILES/5wwAPylURy3cHTs=; b=wDx8T36QjzCa/Lb0ilvtOsRnZ2SqWyJ+O94RgCcrG6oJs6bx4Coz4gPpuM7jaHRiaHOTbH ARvjcQCKmO/4uCBA== To: "Zhang\, Qiang" , Waiman Long , "elver\@google.com" Cc: "linux-kernel\@vger.kernel.org" , "akpm\@linux-foundation.org" Subject: Re: =?utf-8?B?5Zue5aSNOiDlm57lpI06?= [PATCH] debugobjects: install cpu hotplug callback In-Reply-To: References: <20200820032453.5222-1-qiang.zhang@windriver.com> <87pn7ewae6.fsf@nanos.tec.linutronix.de> Date: Wed, 26 Aug 2020 11:41:36 +0200 Message-ID: <874kopwxpr.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26 2020 at 08:34, Qiang Zhang wrote: > ________________________________________ > =E5=8F=91=E4=BB=B6=E4=BA=BA: linux-kernel-owner@vger.kernel.org =E4=BB=A3=E8=A1=A8 Thomas Gleixner > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B48=E6=9C=8826=E6=97=A5 = 7:53 > =E6=94=B6=E4=BB=B6=E4=BA=BA: Waiman Long; Zhang, Qiang; elver@google.com > =E6=8A=84=E9=80=81: linux-kernel@vger.kernel.org; akpm@linux-foundation.o= rg > =E4=B8=BB=E9=A2=98: Re: =E5=9B=9E=E5=A4=8D: [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