Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756568AbZGEJ01 (ORCPT ); Sun, 5 Jul 2009 05:26:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755784AbZGEJ0T (ORCPT ); Sun, 5 Jul 2009 05:26:19 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:53848 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754298AbZGEJ0S (ORCPT ); Sun, 5 Jul 2009 05:26:18 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: LKML , linux-mm , Andrew Morton , Wu Fengguang , Christoph Lameter , David Rientjes , Rik van Riel Subject: [PATCH 5/5] add NR_ANON_PAGES to OOM log Cc: kosaki.motohiro@jp.fujitsu.com In-Reply-To: <20090705181400.08F1.A69D9226@jp.fujitsu.com> References: <20090705181400.08F1.A69D9226@jp.fujitsu.com> Message-Id: <20090705182533.0902.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Sun, 5 Jul 2009 18:26:18 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 987 Lines: 33 Subject: [PATCH] add NR_ANON_PAGES to OOM log show_free_areas can display NR_FILE_PAGES, but it can't display NR_ANON_PAGES. this patch fix its inconsistency. Reported-by: Wu Fengguang Signed-off-by: KOSAKI Motohiro --- mm/page_alloc.c | 1 + 1 file changed, 1 insertion(+) Index: b/mm/page_alloc.c =================================================================== --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2216,6 +2216,7 @@ void show_free_areas(void) printk("= %lukB\n", K(total)); } + printk("%ld total anon pages\n", global_page_state(NR_ANON_PAGES)); printk("%ld total pagecache pages\n", global_page_state(NR_FILE_PAGES)); show_swap_cache_info(); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/