Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp964530ybt; Tue, 7 Jul 2020 04:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNVgmg60HuEWHexvk4zfwar/6M9gdGRVlCywJzCV71smXF+C6AumuZSAfwtcD4ZRGseGYA X-Received: by 2002:a17:906:f98e:: with SMTP id li14mr46916454ejb.174.1594122248490; Tue, 07 Jul 2020 04:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594122248; cv=none; d=google.com; s=arc-20160816; b=YIawCMWzmAwpbmY5xLVVVP14ED1Pe2iiGckc4WPEulHE4Zbeht8CDJDa5GlqbKOF81 7ZphDwqzN0KiX6xr/UTdQMsE4ujJ7VpVEQ1ZHGZ9kNWUG4sfoibtlHX05Ud1/CN0BiwC HO3Ug5moyEp9SThyuNQHYZhz3GuLKKYYDdDvt4PPHhMn4DP/F+mAhHrfz0QRzQQDOeOV 6T8zJPcnKGt5Rco0y15dcltYwTQ9H5JsdLi/126G1fJpaLHibUD/rHrct6t/Tr2asc8W oRDkgdSQL4VPi57kRBCNMnqhqakRojBvQZ74cLgb+IJRI5SyGn1B7Mcry2KExYW5LxML SJAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=46qqwdm4flRUbKiMjrL5dba7rN2VXbx6tU8eijvIRYs=; b=E1epgWXLX/sNCau0+WB/xXe3ZS7mLBcZpMOmXn+tf+w9L/W4KFRDUZ6uycAAmTCBF/ 2FQ7UjXLSwifu54A0K3HM2YDK4zD0oEGZsCSmllZ/gQS/wzPb8w5CmBgIkjVOI9acAnq ztbk/2Jz9yrr5NMbl6LKtsxa8LQw4xNhNi9935/zGYoicWQGnfrU7UTlm731QCKhc0nd ONjUy+VK+22H4mvUfqOVSvLEJjN5B7n0/sEuWZgcTa8a3M5E1N8r/Hiapg72O7xeOq05 4EAsk5dETTBLLIZ0/vEni1sHnQOlQMTRqVhjRvt36NW2XW8+4RaQgYj7Q6D9LPO8CFGg B15g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz40si15382665ejb.432.2020.07.07.04.43.45; Tue, 07 Jul 2020 04:44:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728110AbgGGLnX (ORCPT + 99 others); Tue, 7 Jul 2020 07:43:23 -0400 Received: from mga03.intel.com ([134.134.136.65]:30778 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727044AbgGGLnX (ORCPT ); Tue, 7 Jul 2020 07:43:23 -0400 IronPort-SDR: cAUUrvW/l+t5jssCsQujWvaimEdGWug7nCaXb2DT9NW+oginVxZCKGkRqd/XPQWl/xsIv1SV6d wBTAfBee3tNQ== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="147591448" X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="147591448" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 04:43:22 -0700 IronPort-SDR: GCuC/FORKkR4Jxrfb3KiRRGaDII+yAnyEk1Dbl1/bBv/VtBTukqSmssBxbnrWxmRXWR4ZL+sxm 5sx3H641rS0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="388489360" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga001.fm.intel.com with ESMTP; 07 Jul 2020 04:43:19 -0700 Date: Tue, 7 Jul 2020 19:44:45 +0800 From: Chen Yu To: Peter Zijlstra Cc: Valentin Schneider , Vincent Guittot , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2][RFC] Makes sd->flags sysctl writable Message-ID: <20200707114445.GA25765@chenyu-office.sh.intel.com> References: <20200706200049.GB5523@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200706200049.GB5523@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Mon, Jul 06, 2020 at 10:00:49PM +0200, Peter Zijlstra wrote: > On Tue, Jul 07, 2020 at 03:36:13AM +0800, Chen Yu wrote: > > It was found that recently the flags of sched domain could > > not be customized via sysctl, which might make it a little > > inconenient for performance tuning/debugging. > > What specific goals do you have? This is a debug interface. The origin motivation is for debugging purpose during daily work, I was trying to evaluate the load balance behavior on some specific platforms. Another motivation was inspired by a previous lkp performance regression report that, after the rework of load balance, some workloads might get performance downgrading. And it is suspected that the system after the rework is more likely to spread tasks onto more CPUs, which brings more idle time -> and deeper cstate -> lower performance. So in order to evaluate which flag might help mitigate the spreading(disable PREFER_SIBLING?), it might be an applicable option to make the flags writable, so lkp could launch the workload with different flags settings so we can gather more clues. But yes, I'm ok if the flags are kept read-only, and we can hack into the code temporarily to turn it into writable for debugging. thx, Chenyu