Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753691AbbKQM5s (ORCPT ); Tue, 17 Nov 2015 07:57:48 -0500 Received: from mga11.intel.com ([192.55.52.93]:38542 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753549AbbKQM5q (ORCPT ); Tue, 17 Nov 2015 07:57:46 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,307,1444719600"; d="scan'208";a="822122734" Date: Tue, 17 Nov 2015 04:57:21 -0800 From: Jacob Pan To: Peter Zijlstra Cc: "Paul E. McKenney" , Arjan van de Ven , Josh Triplett , Thomas Gleixner , Ingo Molnar , John Stultz , LKML , Srinivas Pandruvada , Len Brown , Rafael Wysocki , Eduardo Valentin , Paul Turner , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 2/4] timer: relax tick stop in idle entry Message-ID: <20151117045721.2c565e42@yairi> In-Reply-To: <20151117102449.GR3816@twins.programming.kicks-ass.net> References: <20151113142438.3144d47d@icelake> <20151116135126.5a50e45d@icelake> <20151116223210.GA21522@cloud> <20151116232640.GM5184@linux.vnet.ibm.com> <20151117014103.GA6629@x> <20151117025342.GP5184@linux.vnet.ibm.com> <564A978A.8060905@linux.intel.com> <20151117050403.GQ5184@linux.vnet.ibm.com> <20151117102449.GR3816@twins.programming.kicks-ass.net> Organization: OTC X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 30 On Tue, 17 Nov 2015 11:24:49 +0100 Peter Zijlstra wrote: > On Mon, Nov 16, 2015 at 09:04:03PM -0800, Paul E. McKenney wrote: > > On Mon, Nov 16, 2015 at 06:57:14PM -0800, Arjan van de Ven wrote: > > > On 11/16/2015 6:53 PM, Paul E. McKenney wrote: > > > >Fair point. When in the five-jiffy throttling state, what can > > > >wake up a CPU? In an earlier version of this proposal, the > > > >answer was "nothing", but maybe that has changed. > > > > > > device interrupts are likely to wake the cpus. > > > > OK, that I cannot help you with. But presumably if the interrupt > > handler does a wakeup (or similar), that is deferred to the end of > > the throttling interval? Timers are also deferred, including > > hrtimers? > > This throttling thing only throttles 'normal' tasks, real-time tasks > will still run. As an optimization or option, it might be useful to further defer the next timer interrupt if it falls within the idle injection period. But I guess we don't know if that timer belongs to a normal task or rt. Also we there could be more than one 'next' timer interrupts fall into that injection idle period. -- 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/