Article View: comp.unix.admin
Article #4092Re: CPU Utilization
From: Doug Hughes
Date: Thu, 07 Aug 1997 00:00
Date: Thu, 07 Aug 1997 00:00
39 lines
2579 bytes
2579 bytes
In article <MPG.e53b8d2256cc2ed989686@192.168.200.2>, real@name.here.com (Real Name) writes: > Running Solaris 2.4, I keep an eye on perfmeter. Sometimes, the CPU > utilization tops out and the system bogs down. How can I determine what > is causing this? How can I see what users or processes are hitting the > CPU so hard? I've tried every variant of ps I could see in the man pages, > but not what I'm needing. I very new at this, that may be obvious, but > any help would be GREATLY appreciated. > > Scott > Have you tried top? qps? Top is available just about every major free software archive that supplies unix tools. I wrote qps to give me the things that I wanted out of ps. It uses /proc to get the information. It gives user, pid, tty, %cpu, %mem, and process name. Optionally, it will supply pages and bytes of RSS and SIZE, or environment variables, or command arguments. It can sort pid, username, %cpuusage and %memory in forward or reverse order. Best of all, it's very very fast. Works on 2.4 and above. (2.6 redoes /proc, so it probably won't work there - until I get the release version of 2.6 installed here and do the porting) available: http://www.eng.auburn.edu/users/doug/second.html or ftp://ftp.eng.auburn.edu/users/doug/qps (or qps.c for small source file) Top, of course, is much more portable, and has more bells and whistles, but qps gets the job done, and is useful for getting a process listing when ps won't (e.g. when there is a process that is hung on some kind of device I/O operation and hangs ps) -- ____________________________________________________________________________ Doug Hughes Engineering Network Services System/Net Admin Auburn University doug@eng.auburn.edu
Technical Details
Message-ID:
<1997Aug7.152940@netman.eng.auburn.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.e53b8d2256cc2ed989686@192.168.200.2>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,e9cabb5fd4fa6126,start X-Google-Attributes: gid1020c6,public X-Google-Thread: 11035d,e9cabb5fd4fa6126,start X-Google-Attributes: gid11035d,public X-Google-Thread: 10158f,e9cabb5fd4fa6126,start X-Google-Attributes: gid10158f,public From: doug@eng.auburn.edu (Doug Hughes) Subject: Re: CPU Utilization Date: 1997/08/07 Message-ID: <1997Aug7.152940@netman.eng.auburn.edu> X-Deja-AN: 262750709 Sender: doug@netman.eng.auburn.edu (Doug Hughes) References: <MPG.e53b8d2256cc2ed989686@192.168.200.2> Followup-To: comp.unix.admin,comp.unix.solaris,git.unix.solaris Distribution: inet To: real@name.here.com (Real Name) Organization: Auburn Univeristy Engineering Newsgroups: comp.unix.admin,comp.unix.solaris,git.unix.solaris