Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8586638rwb; Tue, 13 Dec 2022 08:05:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Ca2H2vuiMD8toYeKuaLeKPzjV/UUal5FJjywlz0U7vGmIcFJeNymyFnBLIhmTe1IEFjVq X-Received: by 2002:a17:90b:3cb:b0:221:6db8:320d with SMTP id go11-20020a17090b03cb00b002216db8320dmr5871835pjb.38.1670947558594; Tue, 13 Dec 2022 08:05:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670947558; cv=none; d=google.com; s=arc-20160816; b=I5uAaEPxjZbLoMNSoBQpftVdEsyOSTOodGrCxoLPiuicE6wweN8PqHyOzN7044hYtE EoMT9oL67upPutr8ggWxvOrMb7Ruyh/X96R9pd8OcSzKO/2Qnzsl5Yo0Bp9iE69bdT4L TA/TO445jAxlUTTrSdqnMw7OxDiibXsspDWLNIB+fZ0onBuXFZV6DL8w2juTRNhZmLAj HVifnwj+ojqIpwfXheXkkbMDsAmW5ZeAAJE4hFH7uLsM7thwIfiZbrelNf4daxgZnwEL 7EbJrD1NBACsRr+zoCUqmljgxK/eSbjJrXjG8MGCuIbptaH3hzuFkuG4kq5a1bcLv+ni 5wtQ== 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=TDTummWpVHLBTOI1ESXdr5O5IWYx/wuq8cEUFeith0Q=; b=QjxKDWqdZXLKkDtjdIixkEvDvZ38sqASeCPcBFDmSiCX7+1qROMd91GfIF8fpi0cKC BPQfWAaA/qtJcDwNBWXW9sSIs/Bgpvr+A3uGqEw1hXRXqVvFLy5mYSWgCV2He26M3CC3 xwtC8kqCiHoa7NffPiU84N3P4CErtkEcs/FmKbVZobhunLx3DufSftIxVHMPvSxihrwx 11BTX7G1leb1xc+yIz54nAv0lYQ29GdJlwzI0hJ1GqhjbXy902WJdHbqSUhF8+bsLl3D DbKFi9RqnOEEIhXLIhWXcbalkN3bF0nRB1JzQQIi5ZIW5g7fb2mA/3wjvbMDw2AtrvSW 3LFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="A/9WWTTf"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f67-20020a636a46000000b0046ffe3fea86si12634129pgc.97.2022.12.13.08.05.47; Tue, 13 Dec 2022 08:05:58 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b="A/9WWTTf"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235216AbiLMOrB (ORCPT + 72 others); Tue, 13 Dec 2022 09:47:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235646AbiLMOqv (ORCPT ); Tue, 13 Dec 2022 09:46:51 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D746144 for ; Tue, 13 Dec 2022 06:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670942766; 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: in-reply-to:in-reply-to:references:references; bh=TDTummWpVHLBTOI1ESXdr5O5IWYx/wuq8cEUFeith0Q=; b=A/9WWTTfN6/s29tzGhZM/be0c7jpfK9Re49PHr88/zqhiM3jFjiecOf+4Jn3/5j79od8pE H9DwvumoZMY1DglQ3chTfyCKt5EGzciOhcgp8jHYAC1N1b3Adm7Ei5YvU+gEd3QR+Ku6Ar a3TZ12VsVNrnlT7GrSIy3VJNn8aNSCc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-532-ERimchgWPFC2iEtMqYqjZg-1; Tue, 13 Dec 2022 09:46:05 -0500 X-MC-Unique: ERimchgWPFC2iEtMqYqjZg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 786E13815D28; Tue, 13 Dec 2022 14:46:03 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.17.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCAE9C15BA0; Tue, 13 Dec 2022 14:46:02 +0000 (UTC) Date: Tue, 13 Dec 2022 09:45:58 -0500 From: Phil Auld To: Greg Kroah-Hartman Cc: Vishal Chourasia , 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-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Tue, Dec 13, 2022 at 03:31:06PM +0100 Greg Kroah-Hartman wrote: > On Tue, Dec 13, 2022 at 08:22:58AM -0500, Phil Auld wrote: > > On Tue, Dec 13, 2022 at 07:23:54AM +0100 Greg Kroah-Hartman wrote: > > > On Mon, Dec 12, 2022 at 02:17:58PM -0500, Phil Auld wrote: > > > > Hi, > > > > > > > > On Tue, Nov 08, 2022 at 01:24:39PM +0100 Greg Kroah-Hartman wrote: > > > > > On Tue, Nov 08, 2022 at 03:30:46PM +0530, Vishal Chourasia wrote: > > > > > > > > > > > > Thanks Greg & Peter for your direction. > > > > > > > > > > > > While we pursue the idea of having debugfs based on kernfs, we thought about > > > > > > having a boot time parameter which would disable creating and updating of the > > > > > > sched_domain debugfs files and this would also be useful even when the kernfs > > > > > > solution kicks in, as users who may not care about these debugfs files would > > > > > > benefit from a faster CPU hotplug operation. > > > > > > > > > > Ick, no, you would be adding a new user/kernel api that you will be > > > > > required to support for the next 20+ years. Just to get over a > > > > > short-term issue before you solve the problem properly. > > > > > > > > I'm not convinced moving these files from debugfs to kernfs is the right > > > > fix. That will take it from ~50 back to ~20 _minutes_ on these systems. > > > > I don't think either of those numbers is reasonable. > > > > > > > > The issue as I see it is the full rebuild for every change with no way to > > > > batch the changes. How about something like the below? > > > > > > > > This puts the domains/* files under the sched_verbose flag. About the only > > > > thing under that flag now are the detailed topology discovery printks anyway > > > > so this fits together nicely. > > > > > > > > This way the files would be off by default (assuming you don't boot with > > > > sched_verbose) and can be created at runtime by enabling verbose. Multiple > > > > changes could also be batched by disabling/makeing changes/re-enabling. > > > > > > > > It does not create a new API, uses one that is already there. > > > > > > The idea seems good, the implementation might need a bit of work :) > > > > More than the one comment below? Let me know. > > No idea, resubmit a working patch and I'll review it properly :) > Will do. Thanks, Phil --