From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx113.postini.com [74.125.245.113]) by kanga.kvack.org (Postfix) with SMTP id AB3CC6B002B for ; Thu, 11 Oct 2012 07:01:41 -0400 (EDT) Date: Thu, 11 Oct 2012 12:01:37 +0100 From: Mel Gorman Subject: Re: [PATCH 04/33] autonuma: define _PAGE_NUMA Message-ID: <20121011110137.GQ3317@csn.ul.ie> References: <1349308275-2174-1-git-send-email-aarcange@redhat.com> <1349308275-2174-5-git-send-email-aarcange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1349308275-2174-5-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Arcangeli Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andrew Morton , Peter Zijlstra , Ingo Molnar , Hugh Dickins , Rik van Riel , Johannes Weiner , Hillf Danton , Andrew Jones , Dan Smith , Thomas Gleixner , Paul Turner , Christoph Lameter , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Srivatsa Vaddagiri , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt On Thu, Oct 04, 2012 at 01:50:46AM +0200, Andrea Arcangeli wrote: > The objective of _PAGE_NUMA is to be able to trigger NUMA hinting page > faults to identify the per NUMA node working set of the thread at > runtime. > > Arming the NUMA hinting page fault mechanism works similarly to > setting up a mprotect(PROT_NONE) virtual range: the present bit is > cleared at the same time that _PAGE_NUMA is set, so when the fault > triggers we can identify it as a NUMA hinting page fault. > That implies that there is an atomic update requirement or at least an ordering requirement -- present bit must be cleared before setting NUMA bit. No doubt it'll be clear later in the series how this is accomplished. What you propose seems ok but it all depends how it's implemented so I'm leaving my ack off this particular patch for now. -- Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org