Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp285001rwi; Wed, 26 Oct 2022 00:27:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4al1DAL7JIl5tQmZVj9+Ya0qr67yK2xSqzgw/yahzEArlYt/AJkgOqdR9BHPuJjAGSNTeJ X-Received: by 2002:a17:907:318b:b0:740:33f2:9e8 with SMTP id xe11-20020a170907318b00b0074033f209e8mr8836700ejb.138.1666769274079; Wed, 26 Oct 2022 00:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666769274; cv=none; d=google.com; s=arc-20160816; b=LfT8gYmJjq/lD1WccTl/Ixi10b+YD4Rhj7lZGxF3RERtH5XHodDRFesCdJuVlczxl1 JydL7HsBQ9T4bUL2NRurR/A2w7VU0eSUXRXImVmAX+kSTwuylMc1yLqD6VE9/9UAxIpd pyNbMwF7OAYiNzaTl0wRnVu8LHL2Xe62zk5UpEa3HJ5ZaE1LPfPikEyE8A/nxsTR1MZu O8y1NZaV6uH6OS1WXna+OFLSr7NEXUMMTvbGxGipJZ+pQ3kPB2RSKD2Gk5E8wgI97Olp 9JpQzheH+O2Ioy7QMTN5MZiCc36KD7+FB03TeyDtLdqCTPK2q7i9rrRY4OyPXHk4cxFC jX5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zLVcDxVdTqthd0A1QgSANw1S+C/BmfW10FMLx2DItAE=; b=jCm1TpqI295zyxnqjPRYKarwS0pk7csFHFLpDuaOXmECL8x5YrcMprv40XP+E2RYws OU/mLgJUJiHP8OsNv8GVx/tL609amsHdxi6epsxY6LMGKMG9zkThaASUWplR0Nc67UBy A56bCjW9VqhyM5XOkTjJUbERSeugYIvPPZs7k8nq9MG274vPTaCP1/l4sRDZJuCfZjBu GZP9gUsfUAFFsoHM4uTlwG9q5fK0TpXVjMklBCykE/F0Rq5/UZLh9x7AUjv4qarxojFz 9FMitz06AaerWwSviOi9xOUNMZ5iXpNaxxSuk7/uMlrZF6u/R9NBT84mtivBe9AwGt0N t2ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vAaNfkKp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa9-20020a170907868900b007ab1b8b71a6si5203452ejc.40.2022.10.26.00.27.14; Wed, 26 Oct 2022 00:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vAaNfkKp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232981AbiJZHBu (ORCPT + 99 others); Wed, 26 Oct 2022 03:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233062AbiJZHBp (ORCPT ); Wed, 26 Oct 2022 03:01:45 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46CF63384D for ; Wed, 26 Oct 2022 00:01:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 397C3CE1DF0 for ; Wed, 26 Oct 2022 07:01:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBF68C433D7; Wed, 26 Oct 2022 07:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666767695; bh=4EA7mnqZIfsfgQs35vZ0Oeva6CAWg2MlREbIG63FG2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vAaNfkKpnq6T2ATH2P1eptSG2vWxLS48UV729kmn80ggth23fKRVR16O31dRmB5xC 3/3oubYXCu6pzFNa3rX/Y2AIowlybdzHmSoYv7fzNEBWy7uHZublQgNzKKA3E8Iv1B u/CI7+/Ptf433yt9tcoBj59n/2lidNrMgwAz9fBE= Date: Wed, 26 Oct 2022 09:02:28 +0200 From: Greg Kroah-Hartman To: Vishal Chourasia Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, mingo@redhat.com, vincent.guittot@linaro.org, vschneid@redhat.com, srikar@linux.vnet.ibm.com, sshegde@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, ritesh.list@gmail.com, aneesh.kumar@linux.ibm.com Subject: Re: sched/debug: CPU hotplug operation suffers in a large cpu systems Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 26, 2022 at 12:07:01PM +0530, Vishal Chourasia wrote: > On Tue, Oct 18, 2022 at 01:04:40PM +0200, Greg Kroah-Hartman wrote: > > > Why do you need to? What tools require these debugfs files to be > > present? > > We are not entirely sure what applications (if any) might be using this interface. Then just disable it and see what happens :) > > And if you only have 7-8 files per CPU, that does not seem like a lot of > > files overall (14000-16000)? If you only offline 1 cpu, how is removing > > 7 or 8 files a bottleneck? Do you really offline 1999 cpus for a 2k > > system? > > It's 7-8 files per domain per cpu, so, in a system with approx 2k cpus and five > domains, the total file count goes above 70k-80k files. And, when we offline 1 > CPU, the entire directory is rebuilt, resulting in creation of all the files > again. Perhaps change the logic to not rebuild the whole thing and instead just remove the required files? Or as I mentioned before, you can move debugfs to use kernfs, which should resolve most of these issues automatically. Why not take the time to do that which will solve the problem no matter what gets added in the future in other subsystems? thanks, greg k-h