Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp971667ybt; Tue, 7 Jul 2020 04:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypIGb6D/t0yUBNKdFBLWu37Bx8J41VtuKVJpLn5Br9xL6EDUAkpDpiXeuZbXN9IDh5zEDC X-Received: by 2002:a17:906:f2c4:: with SMTP id gz4mr46337194ejb.484.1594122943561; Tue, 07 Jul 2020 04:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594122943; cv=none; d=google.com; s=arc-20160816; b=UISyZRz8R6RhB4sAsaUVZwnLFI8svYDcPn58Mag3RxafQNMi2GXNDwVRY8s6IAwMQw qoM74FwMaBCBgDCX4wezijyyOj3Rag+7sz39Ouq5P0YeBtVg2MWgPUgAKw8sPbIh0aDm rYEaR1hl5io0t4nacUHP577lsebHpJRo+I+Y8z7c7XH4mzFlGxpCvXZO7ofAsBO5t5aJ SJLFYKj/6EyiYwGn+pjeAwemxcofrmo+e3KKpKL4kHY4pIAWuGXOUV1R+9fcuA4D1JyB ljm+Rzai2PRE3PMhVIk5qMXq8M0n3b+5jgZTmBE1lA+DbnbHYBc03PnqdcoLYz2kROT0 nk4Q== 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=KkJX46I2mEj9L1uU7cKxt8XkS/GRY/mLCAz1YoBaQuI=; b=Q7Q8oDeSii/dYQ/dQ0w988b+EFjpt1VwwF9RijEKUQI8bLenP26FTiT1ho55TQH5yy MhXq19L7AjThezgD10lvTflFnL8vW+oLVvdAsIAEbI6UzuSmGkIE2OkcnjGHWuheaK/0 E57asJJ9EMLjQIO4MiA7TkaacluQScZqDr13xHteWex1OcrTST9G5k26G/yHOa2eHz7Q Z9omPbbnxW2aaNwVB2dlgf5Ck8ld+tI44nX1nCnWJNuHuhbiV/85HV7dVreoOf7nTiRg IbsW7h62UuwB1TQ6XLjbzSiAXWQ8dmEm6Y+CAnzRqfRsqZ5drS8HHro87Rh7sM+aVmsB ZL8Q== 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 i23si14511434ejx.438.2020.07.07.04.55.20; Tue, 07 Jul 2020 04:55:43 -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 S1727003AbgGGLy6 (ORCPT + 99 others); Tue, 7 Jul 2020 07:54:58 -0400 Received: from mga01.intel.com ([192.55.52.88]:18420 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbgGGLy5 (ORCPT ); Tue, 7 Jul 2020 07:54:57 -0400 IronPort-SDR: khKurL59450+/kibfTom+kxOIYT4/Kdtu02upNX8GT8WkWQXPGgbTAtyGgcgOyZKtyezeIsz/1 Qr1ZDyvyFQlw== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="165653233" X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="165653233" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 04:54:57 -0700 IronPort-SDR: Q0XzBKzpLoC00gIXad7+vF1LH2FPQ7aV7UOLCWh9gfLBTzfkGKg8kftxLgX0Ju0fnrF7MBy4rR Ite9FIYltpUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="457073880" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga005.jf.intel.com with ESMTP; 07 Jul 2020 04:54:55 -0700 Date: Tue, 7 Jul 2020 19:56:21 +0800 From: Chen Yu To: Valentin Schneider Cc: Peter Zijlstra , 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: <20200707115621.GB25765@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: 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 Valentin, On Mon, Jul 06, 2020 at 11:11:32PM +0100, Valentin Schneider wrote: > > On 06/07/20 21:00, 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. > > Also, while the update_top_cache_domain() call on sysctl write may work, > you're back to square one as soon as you go through a hotplug cycle, which > is icky. Do you mean, after the hotplug, all the settings of flags are lost? Yes, it is, but in our testing environment we do not do hotplug offen : ) > > That said, I second Peter in that I'm curious as to what you're really > using this interface for. Manually hacking the default / arch topology > flags is a bit tedious, but it's doable. Agree, but since we do monitor performance testings automatically, it might save more time for us to not have to reboot everytime we change the flags. So I guess we can hack the code to make that flags field temporarily writable. I guess the concern here is that it looks a little overkilled for us to invoke update_top_cache_domain(), I'm okay with current read-only attribute. Thanks, Chenyu