All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry Woodman <lwoodman@redhat.com>
To: linux-kernel@vger.kernel.org
Subject: [Patch] Include count of pagecache pages in show_mem() output.
Date: Mon, 07 Jan 2008 14:12:36 -0500	[thread overview]
Message-ID: <478279A4.3030903@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

The show_mem() output does not include the total number of
pagecache pages.  This would be helpful when analyzing the
debug information in the /var/log/messages file after OOM kills
occur.

This patch includes the total pagecache pages in that output:

Signed-off-by: Larry Woodman <lwoodman@redhat.com>



[-- Attachment #2: linux-2.6.23-showmem.patch --]
[-- Type: text/plain, Size: 340 bytes --]

--- linux-2.6.23/mm/page_alloc.c.orig	2008-01-07 13:26:00.228823000 -0500
+++ linux-2.6.23/mm/page_alloc.c	2008-01-07 13:33:18.105448000 -0500
@@ -1644,6 +1644,8 @@ void show_free_areas(void)
 		printk("= %lukB\n", K(total));
 	}
 
+	printk("%ld total pagecache pages\n", global_page_state(NR_FILE_PAGES));
+
 	show_swap_cache_info();
 }
 

             reply	other threads:[~2008-01-07 19:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-07 19:12 Larry Woodman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-04 12:43 [PATCH] Include count of pagecache pages in show_mem() output Larry Woodman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478279A4.3030903@redhat.com \
    --to=lwoodman@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.