lkml.org 
[lkml]   [2009]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] add "VmUsers: N" to /proc/$PID/status
From
Date
On Wed, 15 Jul 2009 03:22:18 +0200, Denys Vlasenko said:

> It can be nice to know how many such CLONE_VM'ed processes
> share VM with given /proc/PID. Then it would be possible to do
> more accurate accounting of memory usage. Say, by dividing
> all memory usage numbers of this process by this number.

Process A clones a process A1. Process B clones a process B1. Now
all 4 of them have 'VmUsers: 2' on them, but there's no clean way to tell
whether A1 or B1 is the one sharing with A, or with B.

The patch is probably sufficient if all you want is some N to divide by, but
not if you care *which* processes are sharing how much.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2009-07-16 21:49    [W:0.059 / U:1.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site