From: Christoph Lameter <clameter@engr.sgi.com>
To: Andrew Morton <akpm@osdl.org>
Cc: ak@suse.de, hugh@veritas.com, linux-mm@kvack.org, mtk-manpages@gmx.net
Subject: Re: numa_maps update
Date: Mon, 6 Mar 2006 09:37:29 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0603060935300.24016@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20060304122618.7867267a.akpm@osdl.org>
1. Remove pagelocked display. Worked only sporadically for page
migration.
2. Add writeback display as requested by Andrew
3. Escape some more characters when displaying filenames so that a program
can parse or skip the filename in a reasonable way.
Andi: will try to get you a manpage later today to be included in the
numactl package.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Index: linux-2.6.16-rc5-mm2/mm/mempolicy.c
===================================================================
--- linux-2.6.16-rc5-mm2.orig/mm/mempolicy.c 2006-03-06 09:10:13.000000000 -0800
+++ linux-2.6.16-rc5-mm2/mm/mempolicy.c 2006-03-06 09:12:50.000000000 -0800
@@ -1786,7 +1786,7 @@ struct numa_maps {
unsigned long pages;
unsigned long anon;
unsigned long active;
- unsigned long locked;
+ unsigned long writeback;
unsigned long mapcount_max;
unsigned long dirty;
unsigned long swapcache;
@@ -1808,8 +1808,8 @@ static void gather_stats(struct page *pa
if (PageActive(page))
md->active++;
- if (PageLocked(page))
- md->locked++;
+ if (PageWriteback(page))
+ md->writeback++;
if (PageAnon(page))
md->anon++;
@@ -1871,7 +1871,7 @@ int show_numa_map(struct seq_file *m, vo
if (file) {
seq_printf(m, " file=");
- seq_path(m, file->f_vfsmnt, file->f_dentry, "\n\t");
+ seq_path(m, file->f_vfsmnt, file->f_dentry, "\n\t= ");
} else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) {
seq_printf(m, " heap");
} else if (vma->vm_start <= mm->start_stack &&
@@ -1908,8 +1908,8 @@ int show_numa_map(struct seq_file *m, vo
if (md->active < md->pages && !is_vm_hugetlb_page(vma))
seq_printf(m," active=%lu", md->active);
- if (md->locked)
- seq_printf(m," locked=%lu", md->locked);
+ if (md->writeback)
+ seq_printf(m," writeback=%lu", md->writeback);
for_each_online_node(n)
if (md->node[n])
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2006-03-06 17:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-03 16:58 Christoph Lameter
2006-03-04 9:07 ` Andrew Morton
2006-03-04 4:59 ` Andi Kleen
2006-03-04 20:08 ` Christoph Lameter
2006-03-04 20:26 ` Andrew Morton
2006-03-06 16:19 ` Christoph Lameter
2006-03-06 17:37 ` Christoph Lameter [this message]
2006-03-15 0:01 ` Inconsistent capabilites associated with MPOL_MOVE_ALL Michael Kerrisk
2006-03-15 0:09 ` Christoph Lameter
2006-03-15 0:25 ` Michael Kerrisk
2006-03-15 0:33 ` Christoph Lameter
2006-03-15 0:40 ` Michael Kerrisk
2006-03-15 0:41 ` Andrew Morton
2006-03-15 0:53 ` Christoph Lameter
2006-03-15 1:01 ` Andrew Morton
2006-03-15 1:07 ` Michael Kerrisk
2006-03-15 1:12 ` Michael Kerrisk
2006-03-15 1:16 ` Christoph Lameter
2006-03-15 1:08 ` Christoph Lameter
2006-03-15 0:59 ` Michael Kerrisk
2006-03-15 1:16 ` Andrew Morton
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=Pine.LNX.4.64.0603060935300.24016@schroedinger.engr.sgi.com \
--to=clameter@engr.sgi.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=hugh@veritas.com \
--cc=linux-mm@kvack.org \
--cc=mtk-manpages@gmx.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox