prstat equivalent

Latest response

Hi,

We are currently migrating to RHEL from Solaris. When tuning performance of an application on solaris we are used to prstat command which provides the following output (from prstat -Lmv on solaris)
PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID
The fields of most interest for us are USR SYS DFL LCK SLP and LAT for monitoring CPU usage.

I was unable to find a suitable RHEL equivalent which can provide me an equivalent command where we get a break up of each

I explored pidstat, ps and top. Each gives CPU usage details at varying degrees. Does anyone know of a command line utility that provides enough detail as prstat?

Thank you,
Sam Rao

Responses

Hi Sam,

Here's a few possibilities:
- This link shows the use of top -H with some specifics as compared for use to Solaris' prstat command.
- The example at this link is in this example was to identify high CPU java VM threads.
- This link has an example in a script (that should be tested for sanity first). (I have not tried this script)

The funny thing being that top predates prstat.

Unfortunately there is no prstat equivalent in Linux.
I also used to use Solaris and I am constantly missing prstat (and DTrace and a few other tools ...)

As said above, various option of ps, top , pstree utilities will show needed details.

Checking on google, I see below link which could be useful :
http://www.zorranlabs.com/blog/?p=59