From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by kanga.kvack.org (Postfix) with ESMTP id E75E56B003D for ; Mon, 7 Oct 2013 10:02:25 -0400 (EDT) Received: by mail-pa0-f43.google.com with SMTP id hz1so7338837pad.16 for ; Mon, 07 Oct 2013 07:02:25 -0700 (PDT) Message-ID: <5252BEE4.20707@redhat.com> Date: Mon, 07 Oct 2013 10:02:12 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 07/63] mm: numa: Sanitize task_numa_fault() callsites References: <1381141781-10992-1-git-send-email-mgorman@suse.de> <1381141781-10992-8-git-send-email-mgorman@suse.de> In-Reply-To: <1381141781-10992-8-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Peter Zijlstra , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML On 10/07/2013 06:28 AM, Mel Gorman wrote: > There are three callers of task_numa_fault(): > > - do_huge_pmd_numa_page(): > Accounts against the current node, not the node where the > page resides, unless we migrated, in which case it accounts > against the node we migrated to. > > - do_numa_page(): > Accounts against the current node, not the node where the > page resides, unless we migrated, in which case it accounts > against the node we migrated to. > > - do_pmd_numa_page(): > Accounts not at all when the page isn't migrated, otherwise > accounts against the node we migrated towards. > > This seems wrong to me; all three sites should have the same > sementaics, furthermore we should accounts against where the page > really is, we already know where the task is. > > So modify all three sites to always account; we did after all receive > the fault; and always account to where the page is after migration, > regardless of success. > > They all still differ on when they clear the PTE/PMD; ideally that > would get sorted too. > > Cc: stable > Signed-off-by: Peter Zijlstra > Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel -- All rights reversed -- 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