From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f69.google.com (mail-wm0-f69.google.com [74.125.82.69]) by kanga.kvack.org (Postfix) with ESMTP id 6E5566B0069 for ; Thu, 12 Jan 2017 08:17:09 -0500 (EST) Received: by mail-wm0-f69.google.com with SMTP id c85so3658412wmi.6 for ; Thu, 12 Jan 2017 05:17:09 -0800 (PST) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com. [74.125.82.66]) by mx.google.com with ESMTPS id eh3si7425300wjd.247.2017.01.12.05.17.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 05:17:08 -0800 (PST) Received: by mail-wm0-f66.google.com with SMTP id l2so3630105wml.2 for ; Thu, 12 Jan 2017 05:17:08 -0800 (PST) From: Michal Hocko Subject: [PATCH 1/4] mm, page_alloc: do not report all nodes in show_mem Date: Thu, 12 Jan 2017 14:16:56 +0100 Message-Id: <20170112131659.23058-2-mhocko@kernel.org> In-Reply-To: <20170112131659.23058-1-mhocko@kernel.org> References: <20170112131659.23058-1-mhocko@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Andrew Morton , Johannes Weiner , Mel Gorman , David Rientjes , Michal Hocko From: Michal Hocko 599d0c954f91 ("mm, vmscan: move LRU lists to node") has added per numa node statistics to show_mem but it forgot to add skip_free_areas_node to fileter out nodes which are outside of the allocating task numa policy. Add this check to not pollute the output with the pointless information. Signed-off-by: Michal Hocko --- mm/page_alloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8ff25883c172..8f4f306d804c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4345,6 +4345,9 @@ void show_free_areas(unsigned int filter) global_page_state(NR_FREE_CMA_PAGES)); for_each_online_pgdat(pgdat) { + if (skip_free_areas_node(filter, pgdat->node_id)) + continue; + printk("Node %d" " active_anon:%lukB" " inactive_anon:%lukB" -- 2.11.0 -- 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