On Mon, Nov 20, 2000 at 04:40:33PM +1100, Alister Waller wrote:
> Whats a good way/tool for monitoring memory usage and the processes that are
> using it?

Beats me. I would like to know more about this sort of
stuff, though.

Top can sort processes by memory usage rather than cpu,
press "M" while in top, man top will explain what all the
fields mean.

I also use ps, ie

ps -A -o pid,majflt,minflt,trs,drs,rss,sz,%mem,start,comm --sort majflt

I normally sort by majflt, because thats the number of times
a process has needed to load a page of memory in from swap.
(Thats my wording, I could be wrong)
And swapping slows the whole system down, so I want to know whos
swapping the most.

Be careful if you're comparing majflt's of different processes,
one process may have been running for an hour, and the other
one a month.

Also look at procinfo and procinfo(8)
proc(5),ps(1),top(1)

ps, and to some extent top, only tells you about process that
are running right now, those are the processes that normally hang 
around for a long time, they don't normally record short lived 
processes. And they don't tell you about a process that died
sometime ago.
I have no idea how to record those, but I would like to know. 
Perhaps acct is the answer, but I haven't looked at it.

-- 
        chesty



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to