From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754654AbcK2Ra6 (ORCPT ); Tue, 29 Nov 2016 12:30:58 -0500 Received: from mga03.intel.com ([134.134.136.65]:49133 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbcK2Rav (ORCPT ); Tue, 29 Nov 2016 12:30:51 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,717,1473145200"; d="scan'208";a="11142671" Message-ID: <1480440649.3064.39.camel@linux.intel.com> Subject: Re: [PATCH v8 4/8] x86/sysctl: Add sysctl for ITMT scheduling feature From: Tim Chen To: Borislav Petkov Cc: rjw@rjwysocki.net, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, peterz@infradead.org, jolsa@redhat.com, Srinivas Pandruvada Date: Tue, 29 Nov 2016 09:30:49 -0800 In-Reply-To: <20161128085608.v7ujy5j2iftn6qs5@pd.tnic> References: <07cc62426a28bad57b01ab16bb903a9c84fa5421.1479844244.git.tim.c.chen@linux.intel.com> <20161128085608.v7ujy5j2iftn6qs5@pd.tnic> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 (3.18.5.2-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2016-11-28 at 09:56 +0100, Borislav Petkov wrote: > On Tue, Nov 22, 2016 at 12:23:56PM -0800, Tim Chen wrote: > > > > Intel Turbo Boost Max Technology 3.0 (ITMT) feature > > allows some cores to be boosted to higher turbo > > frequency than others. > > > > Add /proc/sys/kernel/sched_itmt_enabled so operator > > can enable/disable scheduling of tasks that favor cores > > with higher turbo boost frequency potential. > > > > By default, system that is ITMT capable and single > > socket has this feature turned on.  It is more likely > > to be lightly loaded and operates in Turbo range. > > > > When there is a change in the ITMT scheduling operation > > desired, a rebuild of the sched domain is initiated > > so the scheduler can set up sched domains with appropriate > > flag to enable/disable ITMT scheduling operations. > > > > Co-developed-by: Peter Zijlstra (Intel) > > Co-developed-by: Srinivas Pandruvada > > Signed-off-by: Tim Chen > > --- > >  arch/x86/include/asm/topology.h |   7 ++- > >  arch/x86/kernel/itmt.c          | 108 +++++++++++++++++++++++++++++++++++++++- > >  2 files changed, 112 insertions(+), 3 deletions(-) > ... > > > > > +/* > > + * Boolean to control whether we want to move processes to cpu capable > > + * of higher turbo frequency for cpus supporting Intel Turbo Boost Max > > + * Technology 3.0. > > + * > > + * It can be set via /proc/sys/kernel/sched_itmt_enabled > > + */sched_autogroup_enabled > > +unsigned int __read_mostly sysctl_sched_itmt_enabled; > Err, can we not have the boolean in the name itself? > > I.e., have it called sysctl_sched_itmt and 1 means enabled and 0 > disabled? I.e., the classic thing. :) > > Ditto for the sysctl name? I am following the convention in /proc/sys/kernel/sched_autogroup_enabled and sysctl_sched_autogroup_enabled that's also in /proc/sys/kernel. Thanks. Tim