On Fri, Jun 25, 2004 at 04:34:21PM -0300, Alexander Belck wrote:
> >From my running httpd using top I got:
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
> 9169 nobody 14 0 14504 9,9M 7936 S 1,7 8,2 0:14 httpd
> 8773 nobody 9 0 14164 9976 6004 S 0,0 8,1 0:11 httpd
> 9155 nobody 9 0 13992 9828 9220 S 0,0 7,9 0:10 httpd
>
> What does this means ?
> Is the size in Kb, so that my biggest httpd process is using 14Mb ?
> What means RSS (it seams confusing to me since the first says 9,9M and the
> second only 9976 about 1000 times smaler)
SIZE is the amount of virtual memory used.
RSS is the resident set size, which is some kind of average of
the real memory used.
Since both values include shared memory (i.e. the shared code and
also shared system libraries) you cannot just add up the values of
several processes to get a total. The SHARE value gives some hints
about what part is shared, but it is still not enough information.
You also see that the processes do not use the same amount of memory,
not even the same virtual memory because each did handle different
requests (and one is probably the master process).
Finally you don't see how much memory the system uses to support
these processes. In particular, the amount of memory used up
for caching files accessed by the httpd processes.
Greetings,
--
Michael van Elst
Internet: [EMAIL PROTECTED]
"A potential Snark may lurk in every tree."
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]