Re: [PATCH 1/11] maps3: add proportional set size accounting in smaps

2007-10-15 Thread David Rientjes
On Mon, 15 Oct 2007, Matt Mackall wrote: > > The pss is going to need accessor functions, preferably inlined, and the > > comment adjusted stating that all accesses should be through those > > functions and not directly to the mem_size_stats struct. > > > > static inline u64 pss_up(unsigned

Re: [PATCH 1/11] maps3: add proportional set size accounting in smaps

2007-10-15 Thread Matt Mackall
On Mon, Oct 15, 2007 at 04:36:38PM -0700, David Rientjes wrote: > On Mon, 15 Oct 2007, Matt Mackall wrote: > > > Index: l/fs/proc/task_mmu.c > > === > > --- l.orig/fs/proc/task_mmu.c 2007-10-14 13:35:31.0 -0500 > > +++ l

Re: [PATCH 1/11] maps3: add proportional set size accounting in smaps

2007-10-15 Thread David Rientjes
On Mon, 15 Oct 2007, Matt Mackall wrote: > Index: l/fs/proc/task_mmu.c > === > --- l.orig/fs/proc/task_mmu.c 2007-10-14 13:35:31.0 -0500 > +++ l/fs/proc/task_mmu.c 2007-10-14 13:36:56.0 -0500 > @@ -122,6 +122,27 @

[PATCH 1/11] maps3: add proportional set size accounting in smaps

2007-10-15 Thread Matt Mackall
From: Fengguang Wu <[EMAIL PROTECTED]> The "proportional set size" (PSS) of a process is the count of pages it has in memory, where each page is divided by the number of processes sharing it. So if a process has 1000 pages all to itself, and 1000 shared with one other process, its PSS will be 150