From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753819AbdKGRyd (ORCPT ); Tue, 7 Nov 2017 12:54:33 -0500 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:49878 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbdKGRyb (ORCPT ); Tue, 7 Nov 2017 12:54:31 -0500 Date: Tue, 7 Nov 2017 11:54:29 -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: <41f63344-ff57-2474-d1ba-41d67ee4c8c4@mellanox.com> Message-ID: References: <1509728692-10460-1-git-send-email-cmetcalf@mellanox.com> <41f63344-ff57-2474-d1ba-41d67ee4c8c4@mellanox.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1671889168-1510077269=:19523" X-CMAE-Envelope: MS4wfD47Z9u2JZCL3MqNYNwM3Y34DDPpHsC180USztFeRv6s2aCAREoDr0Z1+88DZWDAgmIfqNyCI7GCM9eWAVccllDw3t3WwjtRFb5po9QuajaTS0yWY7n0 b6N2sTC1kmhQB8QBmz+ke2K40GUUKj35hFrWvBxndac48CU+6FXW/2t1M7F4JQ5+ApHBo9ANpaJ0avqjIjbdxlb1CyWvpKxQg0/X2zeeBbTqMfJ3/JC0MM/X /fiV1m4gRaIgXrtTqD97ehM01g0sEwrhrS92AUbVugFiYlfAkCBTLix/ulMfLLPEOyh8/TYO4ql5fvLKB6xElC5xlm90mdlso0/0NUi+VvijhjRdWiPWzv3n /YN3SVEyK5AoYPl5xulBFMxBUJudyFWtoMTSrQULWbjlVQjEWrz6bPpbSwyedSwJOq9AVEvKGU4vESG7YUzVC3/6tbBnfrAqtgnX+u9jfxPGH99U7ccCtOu8 i9+VtQeU/WafBaRGZJlRD1glZiGclyOtpBrVCn21hpZoFewP/7thehWqlave+lfrjxh9Q+8TcbMbHZPWggvLg/mQQ/I3aSEgBjOQyGFsKotm7UF4fpAoQY5F E4jmsoMAv79t0XuAmV2Ne0tpuIPIqe9Smp70qZhxwN2Ww7hXWzi2SAkvq4QDXECBW0ZQwKfGXn68gllMOS2AkRznvTm/h8/Hm8VfKxsiW1WFNHif6Y5TQSJt y5DzZaNrmuImEJavp4uRJmyiMmqRFFKO8UHFDWSoMkIPfIEMN3sf33X9KOlsq+x9culfQ14Rd/QwSHT0UV1nexmY1iACB+BY Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1671889168-1510077269=:19523 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Tue, 7 Nov 2017, Chris Metcalf wrote: > > Presumably we have another context there were we may be able to call into > > the cleanup code with interrupts enabled. > > Right now for task isolation we run with interrupts enabled during the > initial sys_prctl() call, and call quiet_vmstat_sync() there, which currently > calls refresh_cpu_vm_stats(false).  In fact we could certainly pass "true" > there instead (and probably should) since we can handle dealing with > the pagesets at this time.  As we return to userspace we will test that > nothing surprising happened with vmstat; if so we jam an EAGAIN into > the syscall result value, but if not, we will be in userspace and won't need > to touch the vmstat counters until we next go back into the kernel. If you do it too early and there is another page allocator action then it may potentially repopulate the caches. Since this is only draining the caches for remote node allocation it may be rare and not that important. --8323329-1671889168-1510077269=:19523--