Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp748061ybe; Thu, 5 Sep 2019 05:28:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmnx99w7JKyCSl1rzNQK/qYI1nuRSbMIA66xrLN5hKuairTWxZ6ooNzl9mJA03CKOKfcDw X-Received: by 2002:aa7:9688:: with SMTP id f8mr3341503pfk.77.1567686488037; Thu, 05 Sep 2019 05:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567686488; cv=none; d=google.com; s=arc-20160816; b=cvDLCB+1iI1pGrIKep1JJ8ma+OLfxWPlB78vazYGYOcSa1KY5wyIvKuCVOr+pM4Tdu Cfn38ZVxgslbYIgNJgNiVgoROesw2LiC6zoJd8diEb7AKM2qqEIXM6dxli3RTixDT5gD jWuwJM7SYMf8tUoLj+1i0VV5/n4cOYgYnCliC+xMwTNJSe088fZ9MnPpRW5sSvjIuJ1t TJI1Gk9GWiCUcQRNHQvpz0GlhHK7T7oJ6taoIK1XxUugbdY2OAmHmRtre99RxL7SWdpO MqwC1jNFg2tRMatHni2hcpWuQ72W3ececy43C0XDTsbjFVbcwwSOjwWANRAxUMo3y9fm L1SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=BWG2o052DBldO/DbibOkWGqxs8ESPg6d6AEf+w3MWF8=; b=t2RVAlhquu8mm+zbKUqR7ZOgvB3mTs7XsdnAr65mS1EsE3XZ9OunJdu/6DwIItocnE LqyfWIooVXfCKRl3LHFUwAx6ndsq3chWC53v+i9OyDQnLSDB1awOMyGUi+0009PbbdVQ AVc8cEthXvza+IdO5Ialu7kDVlbsgtvtmqXAmxzW3iL8i4d/U2IhOcetgb984Cj18uXP fO17vBJu+/6b23QlttTBfMdn24ipkoGRfZzKGXxy5tKdUS0WlVu9vqeLn5kY9z9x1agT YWCTHj65ZmEGSpy8rgvfAjbznAubL36aSyoAf2YqsBAlmlMeb9CDCt27oYzinLb8NOHJ DmXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si1940134pjo.79.2019.09.05.05.27.50; Thu, 05 Sep 2019 05:28:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732312AbfIEKUC (ORCPT + 99 others); Thu, 5 Sep 2019 06:20:02 -0400 Received: from foss.arm.com ([217.140.110.172]:41194 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfIEKUC (ORCPT ); Thu, 5 Sep 2019 06:20:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C02601576; Thu, 5 Sep 2019 03:20:01 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 16F353F718; Thu, 5 Sep 2019 03:19:59 -0700 (PDT) References: <20190830174944.21741-1-subhra.mazumdar@oracle.com> <20190830174944.21741-5-subhra.mazumdar@oracle.com> User-agent: mu4e 1.3.3; emacs 26.2 From: Patrick Bellasi To: subhra mazumdar Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, tglx@linutronix.de, steven.sistare@oracle.com, dhaval.giani@oracle.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, viresh.kumar@linaro.org, tim.c.chen@linux.intel.com, mgorman@techsingularity.net, parth@linux.ibm.com Subject: Re: [RFC PATCH 4/9] sched: SIS_CORE to disable idle core search In-reply-to: <20190830174944.21741-5-subhra.mazumdar@oracle.com> Date: Thu, 05 Sep 2019 11:19:57 +0100 Message-ID: <87lfv32gfm.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 18:49:39 +0100, subhra mazumdar wrote... > Use SIS_CORE to disable idle core search. For some workloads > select_idle_core becomes a scalability bottleneck, removing it improves > throughput. Also there are workloads where disabling it can hurt latency, > so need to have an option. > > Signed-off-by: subhra mazumdar > --- > kernel/sched/fair.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index c31082d..23ec9c6 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -6268,9 +6268,11 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target) > if (!sd) > return target; > > - i = select_idle_core(p, sd, target); > - if ((unsigned)i < nr_cpumask_bits) > - return i; > + if (sched_feat(SIS_CORE)) { > + i = select_idle_core(p, sd, target); > + if ((unsigned)i < nr_cpumask_bits) > + return i; > + } > > i = select_idle_cpu(p, sd, target); > if ((unsigned)i < nr_cpumask_bits) This looks like should be squashed with the previous one, or whatever code you'll add to define when this "biasing" is to be used or not. Best, Patrick -- #include Patrick Bellasi