Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3041441ybd; Fri, 28 Jun 2019 01:45:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFABxH4BZItME+RScY7E3yL+fECP5sjbJFzFyDl8kL/75F248VUqzzFdO8Pc9RUq2WrIGx X-Received: by 2002:a17:902:724:: with SMTP id 33mr9922956pli.49.1561711521044; Fri, 28 Jun 2019 01:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561711521; cv=none; d=google.com; s=arc-20160816; b=THFFDdzsxWEVqRLR8YhG6XCl2ytjhHvuGze8/zCqEI+C/7QRIKLnTrAg600gEFHLfV clAXOqy5pPhPQreT5O3mj1SpUQKgkcIRw/ZO/+UHoUgIC2NGD8Q3QAYdYlG7M9TC/9I6 72RM3I9UNYHlLlJaw91jmQug5LuuQwvNaO0ZkouUcKJHdkEhknrM7iJ/NoN+QbEJrBTx wKGCpFFe+0JdZMU08Y0qFdjA2alnRxoZWX/FTA+2tVyZ/4AKFSwgXsvS/WHG+jR7kbte korWjwtswlA1iOiS69NtId/dvzkgyWqxiLmCa+0XhxNzqJGEFGi6XKNfNu7jSvI3/iZ7 9cTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=DbP2ePNH18DmtRSTYHIxzbImXFWTBwFT/8OfNRS1xmY=; b=Sz/JORSp4c1vIMwy/OaOIyx/KC4CV23t2K5ztW9eZpa3/9i4U2PUbyqPRiN94WIolD gSYb7X/it598zYPVmud+hsBixPg3/23pUrLkXsnqJjnOLQ7Y525pMPyTfsyBQjyy6kfL 0DNNjmlhjQZS3VRsaFod8kB9GJeZIthQMdAf/chBwzJeCEb3bUk4jLpgbrAK6mUjhqRU qA82xY8SztPJIPCgzilrq1h8Z0rilNBfL3qmWyNa1CqsY79Flbvvm0of2pXwVWJk16Mv Hv+aZSkll1awTehxjBcw9M2RhrHOeAqpFKpQFksvot7s9HicO9x+Dd7M95aSWlYUvlcj 2m7g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s80si1710965pgs.468.2019.06.28.01.45.05; Fri, 28 Jun 2019 01:45:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbfF1Ios (ORCPT + 99 others); Fri, 28 Jun 2019 04:44:48 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54464 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfF1Ios (ORCPT ); Fri, 28 Jun 2019 04:44:48 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5S8gYod012220 for ; Fri, 28 Jun 2019 04:44:47 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tdduxcfpc-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Jun 2019 04:44:46 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Jun 2019 09:44:44 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 28 Jun 2019 09:44:41 +0100 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x5S8ifEg49938448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Jun 2019 08:44:41 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EE0C6A4054; Fri, 28 Jun 2019 08:44:40 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D084A4060; Fri, 28 Jun 2019 08:44:39 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with SMTP; Fri, 28 Jun 2019 08:44:39 +0000 (GMT) Date: Fri, 28 Jun 2019 08:44:38 +0000 From: Srikar Dronamraju To: Wanpeng Li Cc: LKML , Ingo Molnar , Peter Zijlstra , Ingo Molnar , Frederic Weisbecker , Thomas Gleixner Subject: Re: [PATCH RESEND v3] sched/isolation: Prefer housekeeping cpu in local node Reply-To: Srikar Dronamraju References: <1561682593-12071-1-git-send-email-wanpengli@tencent.com> <1561682593-12071-2-git-send-email-wanpengli@tencent.com> <20190628065802.GA27699@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-TM-AS-GCONF: 00 x-cbid: 19062808-4275-0000-0000-000003472E69 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19062808-4276-0000-0000-0000385739BE Message-Id: <20190628084438.GA22550@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-28_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906280102 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > -#endif /* CONFIG_NUMA */ > - > /* > * sched_numa_find_closest() - given the NUMA topology, find the cpu > * closest to @cpu from @cpumask. > * cpumask: cpumask to find a cpu from > * cpu: cpu to be close to > * > - * returns: cpu, or >= nr_cpu_ids when nothing found (or !NUMA). > + * returns: cpu, or nr_cpu_ids when nothing found. > */ > int sched_numa_find_closest(const struct cpumask *cpus, int cpu) > { > -#ifdef CONFIG_NUMA > int i, j = cpu_to_node(cpu); > > for (i = 0; i < sched_domains_numa_levels; i++) { > @@ -1754,10 +1751,11 @@ int sched_numa_find_closest(const struct > cpumask *cpus, int cpu) > if (cpu < nr_cpu_ids) > return cpu; > } > -#endif > return nr_cpu_ids; > } > > +#endif /* CONFIG_NUMA */ > + > static int __sdt_alloc(const struct cpumask *cpu_map) > { > struct sched_domain_topology_level *tl; > Looks good to me. Reviewed-by: Srikar Dronamraju -- Thanks and Regards Srikar Dronamraju