Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp414422imm; Thu, 28 Jun 2018 23:25:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIOnHxpxL+KoKgH9EETu4e3DySgq1PH55UTlt1/B46A/S2Sh75GeFJZmgjI9Q3pUHAkXfEO X-Received: by 2002:a17:902:e3:: with SMTP id a90-v6mr13792819pla.227.1530253527241; Thu, 28 Jun 2018 23:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530253527; cv=none; d=google.com; s=arc-20160816; b=Vp4fQzvZLQjuf7qv9Dm6ltE7gBGP4QPZjAvYNoLTFzLP/E7nlAA79CMIllSchDBtB+ oZyLj6FFIkc37qKd6K+UBFAHxaYcpqkjM6Nbrd4WHUvytbSbH9Hqk5qrVCcfXLMavM5R 6ovSEBGe+IdHyNwXlMOhrZEeSFGivJzJ3V3iM+G+9KE6AM6vI1fpntiT9HJXpwYSp/Yu Xi00TyXoRXDSHd3EdH7yneRR4mDEMaR8vFdOnIj0o+WROheOlYurw2TGuGiY7o+eweaA kmGoHevon/16gCQgMDUdZi2AFMdhf5iajkfF/kd6py4WJYQ8HdKrMVXioieG6HirjE+x Qilg== 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:arc-authentication-results; bh=T0yaG9ciUukEyvK2f0cZ03RZkhvc+EAbx0OcpNZfKU4=; b=HgV2ocQ/2yWDrxYIgJjXNxOIn/Czh52N4BFuAw+57AmXwWR67Mo24AjpOLl4To/nXe RXWDrA43L2RSZ/DJPCeV4dA96tHCGK6cRDfvwItbaPrNT+rrnFWlTEIo8b664KRq77am KVvuQb3vN2JOpep9TqUFhYR+xC1iAVOu0tUJAoQliyUG5d1TdNhuJ8N2rdZnuNKq8o77 O3U0IY6T2Y1Vz3rSMcYyVDGl3ScO54PVkZ4txp8YurCrJO+thjzHbMBvhAXegLSmIUPI +T2vzxSuZ8v9p24tNLWF8Fbsya7IWp2Q1mhLOJAI7rwPDRtjFlufMZniqrVBkh7qsJ7Q 35YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=PjhfDh4u; 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 m70-v6si9881685pfa.45.2018.06.28.23.25.13; Thu, 28 Jun 2018 23:25:27 -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-2017-10-26 header.b=PjhfDh4u; 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 S966996AbeF1WoE (ORCPT + 99 others); Thu, 28 Jun 2018 18:44:04 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:49746 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964786AbeF1Wn5 (ORCPT ); Thu, 28 Jun 2018 18:43:57 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5SMcu9I071628; Thu, 28 Jun 2018 22:43:24 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-2017-10-26; bh=T0yaG9ciUukEyvK2f0cZ03RZkhvc+EAbx0OcpNZfKU4=; b=PjhfDh4u5D6US2ZNSih75qGWQ2mJYswh4ce9Q6QR86w8Wz6LGG7Qt17Zv+KQ/jy/C7q7 K8iLQ2dJHa2z5cEB4MG8IjN5k6dj01XQLdVyUlGz2wz0UWZ4KJIyW53dBYfWSkNm5GEd 2ltG2R3DwBLxgkGVCTW+Gmt7Mn4eTYixUbjw6sgUNAoyi8tpl1RkffhILfDt4te3QZmp KnzrYGCZx4WWC1hoGNy2Se7YWua583vNJ1KcrjBrslyblYV8aRh5QArML1tVsRYQM128 /BljigkBViswFAWO3d5F0UanMeFs6HD+/rb9bFai3utkLr7wHuYVXWt5qX/bhc16/0Jc Ow== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2jukmu49rv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Jun 2018 22:43:24 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5SMhNHA012773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Jun 2018 22:43:23 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5SMhNom023374; Thu, 28 Jun 2018 22:43:23 GMT Received: from smazumda-Precision-T1600.us.oracle.com (/10.132.91.87) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 28 Jun 2018 15:43:23 -0700 From: subhra mazumdar To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, mingo@redhat.com, steven.sistare@oracle.com, dhaval.giani@oracle.com, rohit.k.jain@oracle.com, daniel.lezcano@linaro.org Subject: [PATCH 5/5] sched: SIS_CORE to disable idle core search Date: Thu, 28 Jun 2018 15:44:56 -0700 Message-Id: <20180628224456.13548-6-subhra.mazumdar@oracle.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180628224456.13548-1-subhra.mazumdar@oracle.com> References: <20180628224456.13548-1-subhra.mazumdar@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8938 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=395 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806280249 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 574cb14..33fbc47 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6464,9 +6464,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