From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753588AbcBAKen (ORCPT ); Mon, 1 Feb 2016 05:34:43 -0500 Received: from casper.infradead.org ([85.118.1.10]:35225 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753528AbcBAKek (ORCPT ); Mon, 1 Feb 2016 05:34:40 -0500 Date: Mon, 1 Feb 2016 11:34:33 +0100 From: Peter Zijlstra To: Byungchul Park Cc: Frederic Weisbecker , LKML , Chris Metcalf , Thomas Gleixner , Luiz Capitulino , Christoph Lameter , "Paul E . McKenney" , Mike Galbraith , Rik van Riel Subject: Re: [PATCH 1/4] sched: Don't account tickless CPU load on tick Message-ID: <20160201103433.GP6357@twins.programming.kicks-ass.net> References: <1452700891-21807-2-git-send-email-fweisbec@gmail.com> <20160119130857.GC6344@twins.programming.kicks-ass.net> <20160119162210.GA5317@lerouge> <20160119185647.GA6357@twins.programming.kicks-ass.net> <20160119223320.GD5317@lerouge> <20160120054335.GE9882@X58A-UD3R> <20160120102614.GA5310@X58A-UD3R> <20160128160125.GB25866@lerouge> <20160129095016.GZ6356@twins.programming.kicks-ass.net> <20160201100513.GD29804@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160201100513.GD29804@X58A-UD3R> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2016 at 07:05:13PM +0900, Byungchul Park wrote: > On Fri, Jan 29, 2016 at 10:50:16AM +0100, Peter Zijlstra wrote: > > On Thu, Jan 28, 2016 at 05:01:26PM +0100, Frederic Weisbecker wrote: > > > So lets check all the things we call on scheduler_tick(): > > > > > > _ sched_clock_tick(): maybe it doesn't need to be called when idle. I'm not sure. > > > Some code in idle (timers, irqs, ...) might need to call sched_clock(). > > > > Only needed if you've got a shady TSC. > > Yeh.. IMO, this can be done without the tick handling during nohz, with the > patch I am attaching. Could you check the patch? Or we have to handle it > remotely, too. (for a crazy TSC) I think NOHZ_FULL already requires the TSC not to be wrecked.