linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* zoned-vm-stats-add-nr_anon.patch
@ 2006-06-20 20:46 Martin Bligh
  2006-06-20 20:49 ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Bligh @ 2006-06-20 20:46 UTC (permalink / raw)
  To: Christoph Lameter, Andrew Morton, Linux Memory Management

Could we rename nr_mapped to something else if we're going to change
it's meaning? Perhaps split nr_mapped into nr_mapped_file and
nr_mapped_anon or something?

Otherwise any poor schmuck (eg me) who has to work across different
kernel versions is going to get rather confused in the future.

In my mind, "nr_mapped" is a good name for the number of pages which
are mapped, so excluding the anon pages from that seems to make
the naming non-obvious. similarly, I presume we can have anon pages
on transition to or from swap that are not mapped, and yet will
not be reflected here, so nr_anon doesn't seem like a wholly
accurate name to me either?

M.

--
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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zoned-vm-stats-add-nr_anon.patch
  2006-06-20 20:46 zoned-vm-stats-add-nr_anon.patch Martin Bligh
@ 2006-06-20 20:49 ` Christoph Lameter
  2006-06-20 20:53   ` zoned-vm-stats-add-nr_anon.patch Martin Bligh
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Lameter @ 2006-06-20 20:49 UTC (permalink / raw)
  To: Martin Bligh; +Cc: Andrew Morton, Linux Memory Management

On Tue, 20 Jun 2006, Martin Bligh wrote:

> Could we rename nr_mapped to something else if we're going to change
> it's meaning? Perhaps split nr_mapped into nr_mapped_file and
> nr_mapped_anon or something?

Yes we did that. nr_mapped was split into NR_MAPPED and NR_ANON. Please 
read the description for V4 if this patchset that was posted last week.

> In my mind, "nr_mapped" is a good name for the number of pages which
> are mapped, so excluding the anon pages from that seems to make
> the naming non-obvious. similarly, I presume we can have anon pages
> on transition to or from swap that are not mapped, and yet will
> not be reflected here, so nr_anon doesn't seem like a wholly

The same confusion exist for nr_dirty. Should we also rename nr_dirty to 
nr_dirty_file?

--
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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zoned-vm-stats-add-nr_anon.patch
  2006-06-20 20:49 ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
@ 2006-06-20 20:53   ` Martin Bligh
  2006-06-20 20:57     ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Bligh @ 2006-06-20 20:53 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: Andrew Morton, Linux Memory Management

Christoph Lameter wrote:
> On Tue, 20 Jun 2006, Martin Bligh wrote:
> 
> 
>>Could we rename nr_mapped to something else if we're going to change
>>it's meaning? Perhaps split nr_mapped into nr_mapped_file and
>>nr_mapped_anon or something?
> 
> 
> Yes we did that. nr_mapped was split into NR_MAPPED and NR_ANON. Please 
> read the description for V4 if this patchset that was posted last week.

Yeah, but ... that's what I'm concerned about, the naming of it.
Splitting it makes sense, just needs to be renamed something else, I think.

>>In my mind, "nr_mapped" is a good name for the number of pages which
>>are mapped, so excluding the anon pages from that seems to make
>>the naming non-obvious. similarly, I presume we can have anon pages
>>on transition to or from swap that are not mapped, and yet will
>>not be reflected here, so nr_anon doesn't seem like a wholly
> 
> The same confusion exist for nr_dirty. Should we also rename nr_dirty to 
> nr_dirty_file?

Sure. Naming is important, IMHO. People reading code make involuntary
assumptions as they read code, it's inevitable.

M.

--
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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zoned-vm-stats-add-nr_anon.patch
  2006-06-20 20:53   ` zoned-vm-stats-add-nr_anon.patch Martin Bligh
@ 2006-06-20 20:57     ` Christoph Lameter
  2006-06-20 20:58       ` zoned-vm-stats-add-nr_anon.patch Martin Bligh
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Lameter @ 2006-06-20 20:57 UTC (permalink / raw)
  To: Martin Bligh; +Cc: Andrew Morton, Linux Memory Management

On Tue, 20 Jun 2006, Martin Bligh wrote:

> Sure. Naming is important, IMHO. People reading code make involuntary
> assumptions as they read code, it's inevitable.

Ok. I will make a pass over all the counter before sending the next 
patchset to Andrew and make sure that they get a proper suffix if their 
role is restricted.

--
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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: zoned-vm-stats-add-nr_anon.patch
  2006-06-20 20:57     ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
@ 2006-06-20 20:58       ` Martin Bligh
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Bligh @ 2006-06-20 20:58 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: Andrew Morton, Linux Memory Management

Christoph Lameter wrote:
> On Tue, 20 Jun 2006, Martin Bligh wrote:
> 
> 
>>Sure. Naming is important, IMHO. People reading code make involuntary
>>assumptions as they read code, it's inevitable.
> 
> 
> Ok. I will make a pass over all the counter before sending the next 
> patchset to Andrew and make sure that they get a proper suffix if their 
> role is restricted.

Awesome - thanks very much.

M.

--
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>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-20 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-20 20:46 zoned-vm-stats-add-nr_anon.patch Martin Bligh
2006-06-20 20:49 ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
2006-06-20 20:53   ` zoned-vm-stats-add-nr_anon.patch Martin Bligh
2006-06-20 20:57     ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
2006-06-20 20:58       ` zoned-vm-stats-add-nr_anon.patch Martin Bligh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox