Solved

PRSTAT Info in Solaris 8

Posted on 2006-11-12
6
3,342 Views
Last Modified: 2013-12-21
How do i read prstat information in Solaris 8?

The information like CPU usage memory are given for particular user and the usage and CPU usage cannot be for a specific user. Is it not overall for the system or for processes.
0
Comment
Question by:rharivenkatesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 17926557
Most people use top as it gives you additional information over prstat, such as system CPU utilisation.

Grab top from http://sunfreeware.com/
0
 

Author Comment

by:rharivenkatesh
ID: 17927726
In our organization we do not have access to install these and we are using "prstat". Please help me in this.

PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP

With respect to specific user what does the value say for CPU. Is it is the usage for that user?

In the below list for "prstat -a" some times MEMORY goes to 100%.
How can it go for a specific user? Is it cumulative?
What is NPROC?
What is RSS and how do i interpret for Solaris machine user say "maestro"?

NPROC USERNAME  SIZE   RSS MEMORY      TIME  CPU
     4 maestro    22M   14M   0.2%   0:06.53 0.3%
    64 root      272M  175M   2.1%   1:11.41 0.2%
     3 rxfrapp1 9240K 5744K   0.1%   0:00.00 0.0%
     3 mqm        15M 8472K   0.1%   0:00.00 0.0%
     1 patrol   7592K 5456K   0.1%   0:00.01 0.0%

Thanks.

Regards.
Hari.

0
 
LVL 48

Accepted Solution

by:
Tintin earned 25 total points
ID: 17927806
man prstat

is a good place to start.

CPU - The percentage of recent CPU time used by  the  process.
NPROC - number of processes (admittedly, this doesn't appear in the man page)
RSS - Resident Size Set, ie: the current amount of resident memory.  In the case of the maestro user, it has 4 processes which total 22MB of memory or which 14MB is resident.

If a user/process is reporting 100% of memory, the system is most likely doing swaping/paging.





0
 
LVL 78

Assisted Solution

by:arnold
arnold earned 25 total points
ID: 18022345
you can also use vmstat, iostat, memstat provided those are installed/available on your system.  You need not install top, you could compile and run it from your home dir.  Certain functionality might not be present, but give that a try.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question