Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753981AbbDHOFM (ORCPT ); Wed, 8 Apr 2015 10:05:12 -0400 Received: from mail-am1on0060.outbound.protection.outlook.com ([157.56.112.60]:62912 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753311AbbDHOFH (ORCPT ); Wed, 8 Apr 2015 10:05:07 -0400 Message-ID: <5525357B.2080205@ezchip.com> Date: Wed, 8 Apr 2015 10:04:43 -0400 From: Chris Metcalf User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Peter Zijlstra CC: Frederic Weisbecker , "Paul E. McKenney" , "Rafael J. Wysocki" , Martin Schwidefsky , Ingo Molnar , Subject: Re: [PATCH v2 2/2] nohz: make nohz_full imply isolcpus References: <5522BF1E.2040606@ezchip.com> <1428344205-27678-1-git-send-email-cmetcalf@ezchip.com> <1428344205-27678-2-git-send-email-cmetcalf@ezchip.com> <20150408094114.GX23123@twins.programming.kicks-ass.net> In-Reply-To: <20150408094114.GX23123@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [12.216.194.146] X-ClientProxiedBy: CO2PR11CA0019.namprd11.prod.outlook.com (10.141.242.157) To DB5PR02MB0773.eurprd02.prod.outlook.com (25.161.243.144) Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR02MB0773; X-Forefront-Antispam-Report: BMV:1;SFV:NSPM;SFS:(10009020)(6049001)(6009001)(51704005)(54534003)(377454003)(479174004)(24454002)(87266999)(76176999)(15975445007)(64126003)(62966003)(54356999)(50466002)(77156002)(66066001)(19580405001)(19580395003)(65956001)(93886004)(50986999)(110136001)(65816999)(92566002)(77096005)(47776003)(2950100001)(46102003)(122386002)(59896002)(40100003)(33656002)(23746002)(42186005)(87976001)(575784001)(86362001)(36756003)(4580500001)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR02MB0773;H:[10.7.0.41];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006);SRVR:DB5PR02MB0773;BCL:0;PCL:0;RULEID:;SRVR:DB5PR02MB0773; X-Forefront-PRVS: 0540846A1D X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2015 14:05:03.1608 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR02MB0773 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1899 Lines: 50 On 04/08/2015 05:41 AM, Peter Zijlstra wrote: > On Mon, Apr 06, 2015 at 02:16:45PM -0400, cmetcalf@ezchip.com wrote: >> From: Chris Metcalf >> >> It's not clear that nohz_full is useful without isolcpus also >> set, since otherwise the scheduler has to run periodically to >> try to determine whether to steal work from other cores. > So the Changelog and the patch don't seem to agree with one another. > > The Changelog states that nohz_full should depend on isolcpus. The git commit message says "make nohz_full imply isolcpus". That's consistent with the code. > The patch implies nohz_full for isolcpus. > > These are not the same; and I don't see the argument for the former make > sense for the latter. > > In specific isolcpus without nohz_full does make sense. > >> Signed-off-by: Chris Metcalf >> Acked-by: Mike Galbraith ["thumbs up!"] >> Acked-by: Rik van Riel >> --- >> kernel/sched/core.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >> index f0f831e8a345..275f12c608f2 100644 >> --- a/kernel/sched/core.c >> +++ b/kernel/sched/core.c >> @@ -6836,6 +6836,7 @@ static int init_sched_domains(const struct cpumask *cpu_map) >> doms_cur = alloc_sched_domains(ndoms_cur); >> if (!doms_cur) >> doms_cur = &fallback_doms; >> + tick_nohz_full_set_cpus(cpu_isolated_map); >> cpumask_andnot(doms_cur[0], cpu_map, cpu_isolated_map); >> err = build_sched_domains(doms_cur[0], NULL); >> register_sched_domain_sysctl(); -- Chris Metcalf, EZChip Semiconductor http://www.ezchip.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/