From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by kanga.kvack.org (Postfix) with ESMTP id AC4946B0069 for ; Thu, 29 Dec 2016 06:46:05 -0500 (EST) Received: by mail-wm0-f72.google.com with SMTP id i131so62866950wmf.3 for ; Thu, 29 Dec 2016 03:46:05 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id o203si54035364wma.113.2016.12.29.03.46.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 29 Dec 2016 03:46:04 -0800 (PST) Date: Thu, 29 Dec 2016 11:46:01 +0000 From: Mel Gorman Subject: Re: [PATCH 1/2] mm: fix remote numa hits statistics Message-ID: <20161229114601.wuadp2l6xwzdxv6s@suse.de> References: <20161221075711.GF16502@dhcp22.suse.cz> <20161221080653.29437-1-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20161221080653.29437-1-mhocko@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: linux-mm@kvack.org, Vlastimil Babka , Andrew Morton , Joonsoo Kim , Jia He , Taku Izumi , Johannes Weiner , Michal Hocko On Wed, Dec 21, 2016 at 09:06:52AM +0100, Michal Hocko wrote: > From: Michal Hocko > > Jia He has noticed that b9f00e147f27 ("mm, page_alloc: reduce branches > in zone_statistics") has an unintentional side effect that remote node > allocation requests are accounted as NUMA_MISS rathat than NUMA_HIT and > NUMA_OTHER if such a request doesn't use __GFP_OTHER_NODE. There are > many of these potentially because the flag is used very rarely while > we have many users of __alloc_pages_node. > > Fix this by simply ignoring __GFP_OTHER_NODE (it can be removed in a > follow up patch) and treat all allocations that were satisfied from the > preferred zone's node as NUMA_HITS because this is the same node we > requested the allocation from in most cases. If this is not the local > node then we just account it as NUMA_OTHER rather than NUMA_LOCAL. > > One downsize would be that an allocation request for a node which is > outside of the mempolicy nodemask would be reported as a hit which is a > bit weird but that was the case before b9f00e147f27 already. > > Reported-by: Jia He > Fixes: b9f00e147f27 ("mm, page_alloc: reduce branches in zone_statistics") > Signed-off-by: Michal Hocko For both patches; Acked-by: Mel Gorman -- 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