Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp182110pxy; Wed, 28 Apr 2021 02:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJRd7c5TgemaSVgJCHX7g0mwDrTz2mRBQy6KJ1Aa0IJrzBxg8f0/wljNHvZNQMMr2CbZRh X-Received: by 2002:a17:907:7baa:: with SMTP id ne42mr28347759ejc.357.1619600543395; Wed, 28 Apr 2021 02:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619600543; cv=none; d=google.com; s=arc-20160816; b=KxH17mx96c3wO7bXpL/CaofqmTtgCufyaX9P7k0+eiQqvqXHDsKq5tyoV/Bj2szpZR vaBjSrNvUCFwWs6j/rBq/n0kCEpw9u+Zte++UtkU7kvSz4C8H/0RJFOBmJE/qEFDJxhs MV1ayalhuPV0rL3/UFk88T0oiDMXHRYBWMYylP4IYLEyYTK0TGWl5zXC1mQnjizBcCcw J3A3ZP2OC4WKOCcrcYugG9jWCqdR5X5XTy96QWuExFJFINf9kYxwsiLVxZXeMf/FUWRV YSbBYkMHAVFL5gr8L5C07xDBxzrLlRNQbMAdmmfvnOOAqAg0VrezdB6gtLhbVmSgq93S j4Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=qKJo56W40shQp00TJMUiLJPvrl8LOCI1UuUyYNkoafM=; b=iww+l1pYRo6F3nCFP/t42mv+G2YNWbHkRowpHd4lwpvSO44//s202E/d98psZqxyzR yI/5aP14mZ3j4EJ/PZlOEWd6AI/rWJLO/4NPuDUOoMRip9TDSw4EsSUuAyrie9hs1H1a wLPDL85Bvc7XDLiGhnwEGAZkywgTs1CH+estda8HE3KJ38LXw0beZHGBa4cFWHg/Irpm PYCp8tMdXqT5DoID3UjCV8UwqIOWnRlVCImTx0m1F9vvfpTV+IkhNzJD0y8g0iOsp2oR z4GjbRZOQ8jhA0Vsii1oPUr4q2tPFk8Bb9j3JA/2nE1K6JLErfsZNL8yZHEkcID3h+Bv OwIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=EVG4msQy; 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=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si5193762edd.272.2021.04.28.02.02.00; Wed, 28 Apr 2021 02:02:23 -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=@ibm.com header.s=pp1 header.b=EVG4msQy; 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=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237748AbhD1I7t (ORCPT + 99 others); Wed, 28 Apr 2021 04:59:49 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:15922 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236343AbhD1I7s (ORCPT ); Wed, 28 Apr 2021 04:59:48 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13S8WgX0004375; Wed, 28 Apr 2021 04:58:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=qKJo56W40shQp00TJMUiLJPvrl8LOCI1UuUyYNkoafM=; b=EVG4msQyy0oMQRklyqyCGrAGcEhmVxLDyfLEwdhVayc2zhWc6SEs/AqfUs1Ww2Pljyii Ycys05Ni8MdD+LI2d0NJRx8Nr1x+X9XaX1wz8trKfN7sQCiR9RNWPlIkYjuIiGSkhMk+ +9ob08yD8iPdgthEdNTUr78usNcaTssA0Do+0QKo9bF8b/jISGfIjDQSc/82Z9c1s7Vo nzrQMmAag/XmwSxG9KgmMoDquzrF9g48JcvrCT/R2QRIKfkMXVv+OdYyI2pmOsYkQWhr dPFNMudKkkfN0InXpMyrG6PZ5pOhivKw/IEvZxPcs3M3KhcnN78VueyehYdmm6EsDHBR nw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3871tc4u3d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Apr 2021 04:58:37 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 13S8XucJ014303; Wed, 28 Apr 2021 04:58:36 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3871tc4u24-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Apr 2021 04:58:36 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 13S8vbsg022593; Wed, 28 Apr 2021 08:58:34 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06ams.nl.ibm.com with ESMTP id 384akh9s0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Apr 2021 08:58:33 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 13S8wVOo31785460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Apr 2021 08:58:31 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0794DA405B; Wed, 28 Apr 2021 08:58:31 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 258EAA4054; Wed, 28 Apr 2021 08:58:30 +0000 (GMT) Received: from oc7455500831.ibm.com (unknown [9.171.77.184]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 28 Apr 2021 08:58:30 +0000 (GMT) Subject: Re: sched: Move SCHED_DEBUG sysctl to debugfs From: Christian Borntraeger To: Peter Zijlstra 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 References: <20210412102001.287610138@infradead.org> <20210427145925.5246-1-borntraeger@de.ibm.com> Message-ID: <49af1ed4-26b1-071e-365e-f701edb0eaa7@de.ibm.com> Date: Wed, 28 Apr 2021 10:58:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: E0iWOp_TzVfk6sbhp_bBZP4Aub___Fe8 X-Proofpoint-ORIG-GUID: pfPkjigkQPyf-rjhr3fzYERBEs9-9qHU X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-28_03:2021-04-27,2021-04-28 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 clxscore=1015 suspectscore=0 spamscore=0 impostorscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104280057 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.04.21 10:54, Christian Borntraeger wrote: > > > On 28.04.21 10:46, Peter Zijlstra wrote: >> 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. > > No its not. sched_migration_cost_ns was NEVER protected by CONFIG_SCHED_DEBUG. > It was available on all kernels with CONFIG_SMP. Have to correct myself, it was SCHED_DEBUG in 3.0. > >> >> 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. > > Yes, I agree. We have seen the effect of this value recently and we want > look into that. Still that does not change the fact that you are removing > an interface that was there for ages.