Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1468041ybd; Wed, 26 Jun 2019 18:35:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqycbXKzyuE4dHcNRCdton0Ct4RFrus+Al+bP3cFcy0WB9GqiUWhyolIj7FZVa+4xeY9fjrx X-Received: by 2002:a63:c03:: with SMTP id b3mr1077766pgl.68.1561599347238; Wed, 26 Jun 2019 18:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561599347; cv=none; d=google.com; s=arc-20160816; b=JK8gK5DNnIGMGRFpQ3KqiFvtMkFgon1ABYYAu3g5ZuLbtOLVihPBPB0QVl65hKy1MF rQC+61BY+Pb11EAbd44kyGVCZkeFwAG87o3k4YOfegXOyIMQuD3YKPuk0FgdpFfK7cHN cshCQ7e+JScH2lS6jcUAavDQ/FjoqbUbJaBLDof5E2M4bo4fOKGeCQxh7OtelRWOJJx9 mYi1oJ6FL/HKEHA1dYXrP+ZFFT/Iqf2nFfWUln1PzP3McBgQ8+Qr0fLalOhxGBMcIeJ1 IgIqh1U90Nc6IbHtWJ70/LLHZAylZ8ISBoSnx2P9AIXOAI8/wYZnHaXKU+AEyMi7o1zP I3iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=twmTY486w6zmLVqDXQq5pqHb47ZM2OA1CcI/8SOEK6Y=; b=bb1d5ls/afl1QuOflW1GZyDwuq81fyMDM2qnzzPEy6Gl6Lv1210jsrf1RBMm70vqnX TyRvRckvea7SUxiOeS3aiTedJBNZUBUGrmUeVWW/D9g1Tr2uCDmA919Sa4FPkzRqz25e hnlY5Pnf36Sr3Lv0Z4TTQ1uKwoqylWw8gDmbfs+NIopxl3bT1iEK1rsru1JRum+D1NtH 9nswAFxBPJ+21aYUwlJE8gpjUaqLhxktuiIqf+vIOAcMbbHLnFIxh+/h1cl9ghNCp9m1 c17n+Wo47ge3zgLh5NAiygVVjDzcizohF3bq3n25DjiXxd12MvqRcnN/McRRvg7lNZHB sFIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=L34snDMa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k69si659801pgc.85.2019.06.26.18.35.30; Wed, 26 Jun 2019 18:35:47 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=L34snDMa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbfF0BfT (ORCPT + 99 others); Wed, 26 Jun 2019 21:35:19 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:56468 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726631AbfF0BfS (ORCPT ); Wed, 26 Jun 2019 21:35:18 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5R1Y5xk126661; Thu, 27 Jun 2019 01:34:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=twmTY486w6zmLVqDXQq5pqHb47ZM2OA1CcI/8SOEK6Y=; b=L34snDMamCCylVGpLr6H0Qeyg7Bd691eUCRIqzxlrxrD3rZyr9mir5b71W5Vl8N025Yi vbCK1B9n3ezZqhrIBW+bCAwgwnMHuxx3JdRB9/QiiTWp3VdJBVezk7DnLMMG45NGpbwP AtptfR2vxQkuayc+blodGohgPcd564SBWcAHbmg75cXHeXdqYqDknYFd6zxyln1ZrM/P X+4xHs9+rpqslzVZc3+dD/nU0CkL/fs/c3XaEKwsBrknb1F1eEnR2QuWCFIZDsJH5KRG 13DFrO8xrvY3SBZffBXEfPjOH6OqqEBYOm0p7udOud35hTqJ94GrJItBaKwIw/NmBz/W ZQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2t9c9pwdkw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Jun 2019 01:34:30 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5R1XXr3095805; Thu, 27 Jun 2019 01:34:30 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2t9acd07ne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Jun 2019 01:34:29 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5R1YTae030941; Thu, 27 Jun 2019 01:34:29 GMT Received: from smazumda-Precision-T1600.us.oracle.com (/10.132.91.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 26 Jun 2019 18:34:29 -0700 From: subhra mazumdar To: linux-kernel@vger.kernel.org Cc: 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 Subject: [PATCH v3 5/7] sched: SIS_CORE to disable idle core search Date: Wed, 26 Jun 2019 18:29:17 -0700 Message-Id: <20190627012919.4341-6-subhra.mazumdar@oracle.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20190627012919.4341-1-subhra.mazumdar@oracle.com> References: <20190627012919.4341-1-subhra.mazumdar@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9300 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=661 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906270016 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9300 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=707 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906270017 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 c1ca88e..6a74808 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6280,9 +6280,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) -- 2.9.3