Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp174683pxy; Wed, 28 Apr 2021 01:49:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhNF1K8uoGIpi9mWXoxHWI70UJ1SLWPU+tPwRMQR10ig4N0iW3opVFwGT/QlQewIAH+GXN X-Received: by 2002:a17:906:9381:: with SMTP id l1mr20386364ejx.45.1619599787337; Wed, 28 Apr 2021 01:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619599787; cv=none; d=google.com; s=arc-20160816; b=E9YrPRxLXEI7hECZalfDicgtdxk8I9Ts9LLax5lZJICHWCEFAzPJO4il0dtGmA9kyT fbMYdiqqNHBUtioIV/Q3Ka10lPHd3FK2UJMBNE7FZtyIaZuvcubMTJ9Lyr6hdp/fmuVV OAIFS6W7KVorjur6t2fQgTRHWxbF2i4sywM9u9rzyFEgGjJBe9t2mvV+6w4zWO1yy6Ed 7vicxrQ3iI0ghypZITWPZ221AA+qlnJhk8htp2ZSLvO3fzB3yLnAfb2NNod374TbcewA pVkTsIga1ClV5BApPSGDi4U9jIUHjDBAfNQ5wiNHMUMZxphAidaqLfhItnI7UYyyGsNq oDnQ== 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=kfPSQurt6Bc5u58DqRYZKABmqX9iTn1lw4a/TJR3JbA=; b=YxfW1L2TJV0rttUC2IZQjvr8fDS7tPUWM6DKKGL2gP+E972B/ZjG7QL5XZMeuYrx+r ZxYJtBphs4udHuTttSkoVibJg1l3FPQqxFx+EDgh/MHjlMihc8FyxmTP1oDIXsPCsJEA Abdt1EgqT4qM0FsDv5qK4MbRqfTxsNSqpgXrcOD3UnZrTkbgWe9JQ4jSPka1ySEfct4f C6W2M27yIWOd1pRSBK8VK2zwRswk+usXgBVJeutvaXDt+T1mEjVLajXrf/vkPTU/1vHX 2YOILG5Sn+vfNh40OGVcDAMkAzO79LjlvHHvsGe6i0UnJJKezWaAMqq5kcnF14k067Zg yd6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="SSirg/Lu"; 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 jj1si158497ejc.236.2021.04.28.01.49.24; Wed, 28 Apr 2021 01:49:47 -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=@infradead.org header.s=casper.20170209 header.b="SSirg/Lu"; 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 S237793AbhD1Isn (ORCPT + 99 others); Wed, 28 Apr 2021 04:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237552AbhD1Isl (ORCPT ); Wed, 28 Apr 2021 04:48:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A68E9C061574; Wed, 28 Apr 2021 01:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kfPSQurt6Bc5u58DqRYZKABmqX9iTn1lw4a/TJR3JbA=; b=SSirg/LuehTe26W+39fkeZ5BFj sV2rVItwkO092ybCX0GnQhdT39OdTIyzQGeKnfgFpdlAcwQ/oJsJ1Jhcfd89qJMkl7k0Oxjq07XnG MOgMBnxBIolWP+T49UWyn76C32aaCeB1BB3FkWeiwewInYJywjEM7+R26QAPTzv5eAgYp9ifnifQz 0d1+1a1QogoINM8sJfmWcearn7cwHkdx/wGfUOi2FIXoOAEIPQXNaHt+LeVoJNh1bbWmVizOpwd7d JHHfuVSVXOyjSTotGN2i05dAq6dmBJJVhkUXttuT2v1bTAia//7uRctaOphcgVQ+xFIu1fd7QJeU5 DFddzqMg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lbfpf-0083bX-1Q; Wed, 28 Apr 2021 08:46:16 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8448830003A; Wed, 28 Apr 2021 10:46:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5B2102BF7B844; Wed, 28 Apr 2021 10:46:05 +0200 (CEST) Date: Wed, 28 Apr 2021 10:46:05 +0200 From: Peter Zijlstra To: Christian Borntraeger Cc: bristot@redhat.com, bsegall@google.com, dietmar.eggemann@arm.com, greg@kroah.com, gregkh@linuxfoundation.org, joshdon@google.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org, linux@rasmusvillemoes.dk, mgorman@suse.de, mingo@kernel.org, rostedt@goodmis.org, valentin.schneider@arm.com, vincent.guittot@linaro.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org Subject: Re: sched: Move SCHED_DEBUG sysctl to debugfs Message-ID: References: <20210412102001.287610138@infradead.org> <20210427145925.5246-1-borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210427145925.5246-1-borntraeger@de.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 04:59:25PM +0200, Christian Borntraeger wrote: > Peter, > > I just realized that we moved away sysctl tunabled to debugfs in next. > We have seen several cases where it was benefitial to set > sched_migration_cost_ns to a lower value. For example with KVM I can > easily get 50% more transactions with 50000 instead of 500000. > Until now it was possible to use tuned or /etc/sysctl.conf to set > these things permanently. > > Given that some people do not want to have debugfs mounted all the time > I would consider this a regression. The sysctl tunable was always > available. > > I am ok with the "informational" things being in debugfs, but not > the tunables. So how do we proceed here? It's all SCHED_DEBUG; IOW you're relying on DEBUG infrastructure for production performance, and that's your fail. I very explicitly do not care to support people that poke random values into those 'tunables'. If people wants to do that, they get to keep any and all pieces. The right thing to do here is to analyze the situation and determine why migration_cost needs changing; is that an architectural thing, does s390 benefit from less sticky tasks due to its cache setup (the book caches could be absorbing some of the penalties here for example). Or is it something that's workload related, does KVM intrinsically not care about migrating so much, or is it something else. Basically, you get to figure out what the actual performance issue is, and then we can look at what to do about it so that everyone benefits, and not grow some random tweaks on the interweb that might or might not actually work for someone else.