Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp288053pxf; Wed, 24 Mar 2021 05:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsjKCfYX6NVsTF8NEkfWM11cpsnqXuQhYYF+7f67Cp0ktgRV4wmFzN79i4lPr74PE8n+C+ X-Received: by 2002:a17:906:d291:: with SMTP id ay17mr3284487ejb.308.1616588354045; Wed, 24 Mar 2021 05:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616588354; cv=none; d=google.com; s=arc-20160816; b=YAuTNr61ngelWcEVGbjFQA8Ue7Oo1d0/SCdlR4DyRU9Jz9gwY5iH07kZpDIISpgeTz mQJmTrzm/bYgZrqYIYqOvYtiHdtxVMKmI/AhIs7JiBRWC92TxCIVcytaJvvKFaSvZhac f1BIwWVERkkWujeDd6dx7Ay1IQkzzUQR+O91l2AdcQwiAPFz3G2CulVV6ddi4DsSxm8I +WjoSjj6JexDW90180mwv+OxdzQyEGCV6PhVSkjoHJKEopQinaGLtV9nW+3O1hn+87iE HttN9z1IJzkCKsJ6vOYUHKHMuXJI4kiAlrrYQKhu+OKvKhZPwZSM1JlaYpl1S03fduq0 6/qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XDuwqurSP/YslgMoZHdMGYt+AKimbP878g8aIkDR2c0=; b=EOrUPcSKR/paZG7qG3XpjJPe+3I9nJaIcF4C03fkc5nrfWh+XMGlNAJGo1Mcpfj79W 8G5QO1uTdhGrp52kZpjur1wIMVWFgO2BarM1Ek81z70m3hYMtqftD8ZrtpUzLrU7yc0X 7NQsVezOs9ZLppukVoACdkc98lfa0wnYc3IjNRITwz0Fb1gqZTasIhEtbnAQjIQ2B8Q/ BYNmgAfrQ3lBojiq5LNXM5f6Tq2msA5WDtQ9yxMy48+BJN2uOyUoOwCeMswetM/SfzCV 2PkUsBr1+GYfFUiqiTjn00HpOGMkzHsvIsqLOCxauoKooxpK/gLBxzzEGl2zMOtYSlVl FQfg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z19si1909779ejl.54.2021.03.24.05.18.44; Wed, 24 Mar 2021 05:19:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232958AbhCXLmj (ORCPT + 99 others); Wed, 24 Mar 2021 07:42:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:47320 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230489AbhCXLmc (ORCPT ); Wed, 24 Mar 2021 07:42:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5E505AD38; Wed, 24 Mar 2021 11:42:27 +0000 (UTC) Date: Wed, 24 Mar 2021 11:42:24 +0000 From: Mel Gorman To: Peter Zijlstra Cc: Josh Don , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Luis Chamberlain , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, David Rientjes , Oleg Rombakh , linux-doc@vger.kernel.org, Paul Turner Subject: Re: [PATCH v2] sched: Warn on long periods of pending need_resched Message-ID: <20210324114224.GP15768@suse.de> References: <20210323035706.572953-1-joshdon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2021 at 11:54:24AM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 10:37:43AM +0100, Peter Zijlstra wrote: > > Should we perhaps take out all SCHED_DEBUG sysctls and move them to > > /debug/sched/ ? (along with the existing /debug/sched_{debug,features,preemp} > > files) > > > > Having all that in sysctl and documented gives them far too much sheen > > of ABI. > > ... a little something like this ... > I did not read this particularly carefully or boot it to check but some of the sysctls moved are expected to exist and should never should have been under SCHED_DEBUG. For example, I'm surprised that numa_balancing is under the SCHED_DEBUG sysctl because there are legimiate reasons to disable that at runtime. For example, HPC clusters running various workloads may disable NUMA balancing globally for particular jobs without wanting to reboot and reenable it when finished. Moving something like sched_min_granularity_ns will break a number of tuning guides as well as the "tuned" tool which ships by default with some distros and I believe some of the default profiles used for tuned tweak kernel.sched_min_granularity_ns Whether there are legimiate reasons to modify those values or not, removing them may generate fun bug reports. -- Mel Gorman SUSE Labs