SLUG Mailing List Archives
Re: [SLUG] memory usage monitoring
- To: Slug <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] memory usage monitoring
- From: chesty <chesty@xxxxxxxxxx>
- Date: Mon Nov 20 18:26:41 2000
- User-agent: Mutt/1.2.5i
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
Top can sort processes by memory usage rather than cpu,
press "M" while in top, man top will explain what all the
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)
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
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.