Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751478AbbFNJaa (ORCPT ); Sun, 14 Jun 2015 05:30:30 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:42285 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750892AbbFNJaX (ORCPT ); Sun, 14 Jun 2015 05:30:23 -0400 X-Helo: d03dlp02.boulder.ibm.com X-MailFrom: preeti@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Message-ID: <557D49A4.2040201@linux.vnet.ibm.com> Date: Sun, 14 Jun 2015 15:00:12 +0530 From: Preeti U Murthy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Frederic Weisbecker , Peter Zijlstra CC: LKML , Thomas Gleixner , Christoph Lameter , Ingo Molnar , Viresh Kumar , Rik van Riel Subject: Re: [PATCH 5/8] nohz: Restart the tick from irq exit References: <1434044168-23173-1-git-send-email-fweisbec@gmail.com> <1434044168-23173-6-git-send-email-fweisbec@gmail.com> <20150612073245.GO3644@twins.programming.kicks-ass.net> <20150612123835.GA29736@lerouge> In-Reply-To: <20150612123835.GA29736@lerouge> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15061409-0009-0000-0000-00000BAD1AFE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1611 Lines: 35 On 06/12/2015 06:08 PM, Frederic Weisbecker wrote: > On Fri, Jun 12, 2015 at 09:32:45AM +0200, Peter Zijlstra wrote: >> On Thu, Jun 11, 2015 at 07:36:05PM +0200, Frederic Weisbecker wrote: >>> Restart the tick when necessary from the irq exit path. It makes nohz >>> full more flexible and allow it to piggyback the tick restart on the >>> scheduler IPI in the future instead of sending a dedicated IPI that >>> often doubles the scheduler IPI on task wakeup. This will require >>> careful review of resched_curr() callers. >> >> This seems to assume schedule_ipi() callers use irq_exit(), this is >> false. > > Indeed there will be that too. Note the current patch doesn't yet rely on > schedule_ipi(), we are still using the nohz ipis. But introducing the > tick restart on irq exit prepares for later piggybacking on scheduler_ipi(). > > I think this will involve changes on got_nohz_idle_kick(), renamed to > got_nohz_kick() and include nohz full related checks to trigger the > irq_enter()/exit() pair. I maybe saying something obvious here, nevertheless; I am not sure about other archs, but atleast on powerpc after handling an interrupt, we will call irq_exit() and reevaluate starting of ticks. So in our case even if scheduler_ipi() callers do not call irq_exit(), it will be called after handling the reschedule interrupt. Regards Preeti U Murthy > -- 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/