Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934105AbbENUzw (ORCPT ); Thu, 14 May 2015 16:55:52 -0400 Received: from mail-db3on0096.outbound.protection.outlook.com ([157.55.234.96]:53760 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933339AbbENUzv (ORCPT ); Thu, 14 May 2015 16:55:51 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; Message-ID: <55550BC5.4060906@ezchip.com> Date: Thu, 14 May 2015 16:55:33 -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: Gilad Ben Yossef , Steven Rostedt , Ingo Molnar , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , Thomas Gleixner , Christoph Lameter , Subject: Re: [PATCH 2/6] nohz: dataplane: allow tick to be fully disabled for dataplane References: <1431107927-13998-1-git-send-email-cmetcalf@ezchip.com> <1431107927-13998-3-git-send-email-cmetcalf@ezchip.com> <20150512092607.GE21418@twins.programming.kicks-ass.net> <20150512131250.GJ6776@linux.vnet.ibm.com> In-Reply-To: <20150512131250.GJ6776@linux.vnet.ibm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [12.216.194.146] X-ClientProxiedBy: BLUPR11CA0058.namprd11.prod.outlook.com (10.141.30.26) To AM2PR02MB0772.eurprd02.prod.outlook.com (25.163.146.16) X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR02MB0772; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:AM2PR02MB0772;BCL:0;PCL:0;RULEID:;SRVR:AM2PR02MB0772; X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(6009001)(24454002)(51704005)(377454003)(479174004)(77096005)(59896002)(83506001)(15975445007)(33656002)(5001960100002)(65956001)(46102003)(66066001)(65816999)(50986999)(87266999)(76176999)(54356999)(42186005)(189998001)(47776003)(5001770100001)(122386002)(4001350100001)(92566002)(93886004)(36756003)(50466002)(62966003)(77156002)(2950100001)(40100003)(19580395003)(23746002)(87976001)(86362001)(80316001)(99136001)(18886065003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR02MB0772;H:[10.7.0.41];FPR:;SPF:None;MLV:sfv;LANG:en; X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2015 20:55:47.7249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR02MB0772 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2247 Lines: 47 On 05/12/2015 09:12 AM, Paul E. McKenney wrote: > On Tue, May 12, 2015 at 11:26:07AM +0200, Peter Zijlstra wrote: >> On Fri, May 08, 2015 at 01:58:43PM -0400, Chris Metcalf wrote: >>> While the current fallback to 1-second tick is still helpful for >>> maintaining completely correct kernel semantics, processes using >>> prctl(PR_SET_DATAPLANE) semantics place a higher priority on running >>> completely tickless, so don't bound the time_delta for such processes. >>> >>> This was previously discussed in >>> >>> https://lkml.org/lkml/2014/10/31/364 >>> >>> and Thomas Gleixner observed that vruntime, load balancing data, >>> load accounting, and other things might be impacted. Frederic >>> Weisbecker similarly observed that allowing the tick to be indefinitely >>> deferred just meant that no one would ever fix the underlying bugs. >>> However it's at least true that the mode proposed in this patch can >>> only be enabled on an isolcpus core, which may limit how important >>> it is to maintain scheduler data correctly, for example. >> So how is making this available going to help people fix the actual >> problem? > It will at least provide an environment where adding more of this > problem might get punished. This would be an improvement over what > we have today, namely that the 1HZ fallback timer silently forgives > adding more problems of this sort. So I guess the obvious question to ask is whether there is a mode that can be dynamically enabled (/proc/sys/kernel/nohz_experimental or whatever) where we allow turning off this tick - perhaps to make it more likely tick-dependent code isn't added to the kernel as Paul suggests, or perhaps to enable applications that want to avoid the tick conservativeness and are willing to do sufficient QA that they are comfortable exploring possible issues with the 1Hz tick being disabled? Paul, PeterZ, any thoughts on something along these lines? Or another suggestion? -- 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/