From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753963AbdKFPis (ORCPT ); Mon, 6 Nov 2017 10:38:48 -0500 Received: from resqmta-ch2-10v.sys.comcast.net ([69.252.207.42]:39988 "EHLO resqmta-ch2-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753670AbdKFPiq (ORCPT ); Mon, 6 Nov 2017 10:38:46 -0500 Date: Mon, 6 Nov 2017 09:38:44 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Chris Metcalf cc: Steven Rostedt , Ingo Molnar , Peter Zijlstra , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , Thomas Gleixner , "Paul E. McKenney" , Viresh Kumar , Catalin Marinas , Will Deacon , Andy Lutomirski , Daniel Lezcano , Francis Giraldeau , linux-mm@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v16 00/13] support "task_isolation" mode In-Reply-To: <1509728692-10460-1-git-send-email-cmetcalf@mellanox.com> Message-ID: References: <1509728692-10460-1-git-send-email-cmetcalf@mellanox.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfA/+BnEpPnxLKzCLpJv/CbzgX1ZPpHb0gp98bd8socMHRkFS5bspIUlW7NTKMhszBnTn7/AmtOKDi7THhF9qNIVBnyFi4eQiy1HGEAPME3ECBXBnSUV/ u8pl9UqpMm64twoaHK5K+usM2jdFsCAfY6L94JKwWIrgbcCZQpA6y295W9FkESsPPC6xxWUyoWbTLQjDXlT3wNgwc0A/L8ARO21yXiiM1keYJNwZSL3RfV/+ W++RJXD0nqEopuM2cLDzylmR+ahvfw5b/Gk/3CIA0mMph5JbHB22R/IwcBv/+RdlQc2bcCveyrzpT0sx7zLqRrUIwIPrNUNs1fBCQJIFMe4s9KG+moFjIM/G 871bmAu02FxSilGbTWozU9VysAwMhTlwekE7aklte8jsoOztHzFrx6Jm+/cOmB3fV0vl5WNUnB4TaSElhk/C2CVMrG7pkhjkWxbIlTOm3wwXTJnv0ZLh7FrV FaUsjCi7ywlzQas47yqikF1IriVkzJq6Loq8L0R0MMhZQXu7NFO5wMZTGspVbOQNNEu4wI15DPMb/tMMqpJsjJhVVDrRzF2sP439J2N9I1W2R6msNRDcOG7p KeHaP6jSvNlzUW88zj1s6w33hERYp/RlJj1wghi99xBPP/aOM/cquQd2/weOPfpcoZlZ3Q56xm8ydKkNYyHh9U8t+/UlLy9dSE2CJ9R36r6t0KUU7rjyAP4W ROG3OgGynhfnm8vxt4NM/OHnq0KEEDzj0wWa5JEAZAhUAPGpL0BrqySTL+mfwZYyzELDLuL2B3KdMgSaYYH/IEflt8sgzxrG Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Nov 2017, Chris Metcalf wrote: > However, it doesn't seem possible to do the synchronous cancellation of > the vmstat deferred work with irqs disabled, though if there's a way, > it would be a little cleaner to do that; Christoph? We can certainly > update the statistics with interrupts disabled via > refresh_cpu_vm_stats(false), but that's not sufficient. For now, I Callig quiet_vmstat() gives you the folding of the statistics without the numa page allocator page cleanup. Leaving some pages in the queues should not be that much of an issue. > What about that d*mn 1 Hz clock? > > It's still there, so this code still requires some further work before > it can actually get a process into long-term task isolation (without > the obvious one-line kernel hack). Frederic suggested a while ago > forcing updates on cpustats was required as the last gating factor; do > we think that is still true? Christoph was working on this at one > point - any progress from your point of view? Well if you still have the 1 HZ clock then you can simply defer the numa remote page cleanup of the page allocator to that the time you execute that tick.