Received: by 10.223.164.202 with SMTP id h10csp946115wrb; Tue, 7 Nov 2017 18:12:03 -0800 (PST) X-Google-Smtp-Source: ABhQp+T/HFqMWyqIi8wjBwlUmpkI8KElKpMVbp9SG/exqMzjxb0zL4Asb3M9bqKBRuI7RAijm/Ti X-Received: by 10.99.123.14 with SMTP id w14mr667499pgc.387.1510107123127; Tue, 07 Nov 2017 18:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510107123; cv=none; d=google.com; s=arc-20160816; b=MhNrJ+EwTErD4l1YeB3GMCHrNED1i03Ypr6ejpqu22Fmt3azfJHme+IQCKZ7sZ/TNZ /aB/uo8mecWbxbzbLp6p4gTvrKmim125nYMjCD8WcolIWiBU6z794m3fladucXLpTrHU 9UZPBOYxObt9EddkYHd6R6mvQ93z42hQyhF4yDuws853N/N+b3QpyL/ROyeWnk1SkCWe GmGGsDrAkyq531WmIwic5CIRq+g0xDsgZJNZAtaqgxXJsJNAEIvyLxXbFSjJSLH6Quqj 3kebWDNGnVTXPFTqSAyEXK48PNMMhgB18Rh0quLttzCcI1uyVClpuZ9ay9CW13eVkJBV /Ziw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Igyu+0bwb1xjw2ucCFtHEcevP5/J/Jpe8k1wTUlBzUA=; b=indmcV3Hwr2p14u1h0tfv+n4IzL7YeEOXe1GTVIaCmy6A66sI3667ewZUZyzlMkPxB 5uay4+gcLp7PYdE7MO63AOq3QdGHXnhIiOK3+4YwDQo2VxwdZZpDphba0cJZKnz/vEn/ cVhrBNAzVRz3pedEX2WvdOkNvFU/N0g9hlU7upPS7w9+NvDDn9uyhOun7wHyANwSECUq wseXQhP1yyCQoV2ZDCXliUWN8oDyjoEO0WkI7g+sPYi4hx0GegZKaZuIi4lwKy5i0f3r FVoK+13SAC0iIjL+JGajbDWNpujLywast7WitR+8pzfp1wVGyr6vqAwiVKTTqTUp/MBR UtIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n74si2622878pfi.253.2017.11.07.18.11.50; Tue, 07 Nov 2017 18:12:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753804AbdKGRyd (ORCPT + 91 others); 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 Received: from resomta-ch2-13v.sys.comcast.net ([69.252.207.109]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id C84qeoC0O0P8RC851en9tG; Tue, 07 Nov 2017 17:54:31 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-13v.sys.comcast.net with SMTP id C84ze51m5MuCTC850eH9SO; Tue, 07 Nov 2017 17:54:31 +0000 Received: by gentwo.org (Postfix, from userid 1001) id CBD3611602C5; Tue, 7 Nov 2017 11:54:29 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id C89411160140; Tue, 7 Nov 2017 11:54:29 -0600 (CST) 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 Precedence: bulk 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-- From 1583461326558979550@xxx Wed Nov 08 01:59:58 +0000 2017 X-GM-THRID: 1583065471526173767 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread