[patch 2/3] smaps: add pages referenced count to smaps

2007-02-09 Thread David Rientjes
Adds an additional unsigned long field to struct mem_size_stats called 'referenced'. For each pte walked in the smaps code, this field is incremented by PAGE_SIZE if it has pte-reference bits. An additional line was added to the /proc/pid/smaps output for each VMA to indicate how many pages withi

Re: [patch 2/3] smaps: add pages referenced count to smaps

2007-02-06 Thread Andrew Morton
On Tue, 6 Feb 2007 21:56:23 -0800 (PST) David Rientjes <[EMAIL PROTECTED]> wrote: > On Tue, 6 Feb 2007, Andrew Morton wrote: > > > > @@ -190,18 +191,20 @@ static int show_map_internal(struct seq_file *m, > > > void *v, struct mem_size_stats > > > > > > if (mss) > > > seq_printf(m,

Re: [patch 2/3] smaps: add pages referenced count to smaps

2007-02-06 Thread David Rientjes
On Tue, 6 Feb 2007, Andrew Morton wrote: > > @@ -190,18 +191,20 @@ static int show_map_internal(struct seq_file *m, void > > *v, struct mem_size_stats > > > > if (mss) > > seq_printf(m, > > - "Size: %8lu kB\n" > > - "Rss:

Re: [patch 2/3] smaps: add pages referenced count to smaps

2007-02-06 Thread Andrew Morton
On Tue, 6 Feb 2007 21:27:03 -0800 (PST) David Rientjes <[EMAIL PROTECTED]> wrote: > @@ -190,18 +191,20 @@ static int show_map_internal(struct seq_file *m, void > *v, struct mem_size_stats > > if (mss) > seq_printf(m, > -"Size: %8lu kB\n" > -

[patch 2/3] smaps: add pages referenced count to smaps

2007-02-06 Thread David Rientjes
Adds an additional unsigned long field to struct mem_size_stats: referenced. For each page table entry that is walked for the VMA in the smaps code, this field is incremented if PG_referenced is set. An additional line was added to the /proc/pid/smaps output for each VMA to indicate how many page