Impressions of Gutsy (Was: First impressions of dolphin)

Derek Broughton news at pointerstop.ca
Tue Oct 9 17:06:59 UTC 2007


Steve Lamb wrote:

> Derek Broughton wrote:
>> Steve Lamb wrote:
>>>     Er, ps auwx says otherwise:
> 
>>> 107       4746  0.0  0.4   3260  1188 ?        S    19:03   0:00
>>> hald-addon-storage: polling /dev/scd0 (every 2 sec)
> 
>> OK, you seem to be right that hal really _is_ watching, but if you just
>> grep the hald lines, you'll see that hald-addon-storage is watching far
>> more
>> than /dev/scd0 with that 2100kb (on my system).  You can't look at ps and
>> add up the memory fields and come up with the number of bytes actually
>> being used.  If memory is shared by multiple processes it gets reported
>> for every process.
> 
>     Er, yes, you can.  Top line of ps is this and lines up with the line
>     in
> question like so:
> 
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> 107       5020  0.0  0.1   3260  1188 ?        S    08:47   0:00
> hald-addon-storage: polling /dev/hdc (every 2 sec)
> 
>     From the ps man page:
> 
> vsz       VSZ    virtual memory size of the process in KiB
> rss       RSS    resident set size, the non-swapped physical memory that a
>                         task has used (in kiloBytes). (alias rssize, rsz).
> 
>     So my figure if 1.1Mb is from the "resident set size, the non-swapped
> physical memory that a task has used".  The VSZ is the portion which is
> shared
> with other processes through libraries.  You'll note I always was citing
> the RSS figure, never the VSZ or the aggregate of both.

I give up.  That is NOT solely owned by that task, RSS or FSZ.  ANY memory
can be shared.
-- 
derek





More information about the kubuntu-users mailing list