> is there a command or utility which would show
> which processes are using how much of which parts of memory?
top is useful in determining which applications are using the most
CPU or memory resources, but most of what is out there are basically
graphical enhancements of 'top'; ksysguard for instance.
I'm not sure what you mean by 'which parts' of memory. There is only
really one part of memory, well, two, if you count swap space. Three,
maybe, if you count buffere or cache... excuse me, I'll start again,
I'm Cardinal Fang from the Spanish Inquisition ... :)
The point - as far as linux is concerned, there's only one uniform
segment of memory, and even if a process is using a bunch of different
"pieces" as far as the kernel and the process is concerned, it's all
one piece starting at logical location 0 in memory. That's what we
really mean by 'virtual' memory, not simply the idea that disk areas
can be used to add memory, although that's a side effect.
If you look at output from ps -aux you will see some fields that are
useful, however:
root 1 0.0 0.0 1288 84 ? S Oct25 0:06 init
root 2 0.0 0.0 0 0 ? SW Oct25 0:04 [keventd]
root 3 0.0 0.0 0 0 ? SW Oct25 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN Oct25 0:04 [ksoftirqd_CPU0]
** **
These two fields are virtual size and resident size. The first is a
measure of how much RAM the process thinks it needs, and the second is
the actual amount of RAM that's actually used by the process. Anything
else, presumably, is swapped out. Other indicators are 'SW' for
swapped.
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com