From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Paul E. McKenney" Subject: Re: [PATCH v4 1/5] nohz_full: add support for "cpu_isolated" mode Date: Wed, 22 Jul 2015 12:28:34 -0700 Message-ID: <20150722192834.GA32511@linux.vnet.ibm.com> References: <1436817481-8732-1-git-send-email-cmetcalf@ezchip.com> <1436817481-8732-2-git-send-email-cmetcalf@ezchip.com> <55A4271B.9040506@ezchip.com> <55AE993E.6040501@ezchip.com> <20150721203622.GX3717@linux.vnet.ibm.com> Reply-To: paulmck-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Christoph Lameter Cc: Andy Lutomirski , Chris Metcalf , Gilad Ben Yossef , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , Thomas Gleixner , Viresh Kumar , "linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Linux API , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-api@vger.kernel.org On Wed, Jul 22, 2015 at 08:57:45AM -0500, Christoph Lameter wrote: > On Tue, 21 Jul 2015, Paul E. McKenney wrote: > > > > > In the current version, there's also the vmstat_update() that > > > > may schedule delayed work and interrupt the core again > > > > shortly before realizing that there are no more counter updates > > > > happening, at which point it quiesces. Currently we handle > > > > this in cpu_isolated mode simply by spinning and waiting for > > > > the timer interrupts to complete. > > > > > > Perhaps we should fix that? > > > > Didn't Christoph Lameter fix this? Or is this an additional problem? > > Well the vmstat update must realize first that there are no outstanding > updates before switching itself off. So typically there is one extra tick. > But we could add another function that will simply fold the differential > immediately and turn the kworker task in the expectation that the > processor will stay quiet. Got it, thank you! Thanx, Paul