![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| prstat problem | vivsiv | Shell Programming and Scripting | 6 | 02-15-2008 07:58 PM |
| prstat in shell | madmat | Shell Programming and Scripting | 4 | 02-07-2007 04:46 AM |
| Mem analyze / vmstat, prstat ... | unclefab | SUN Solaris | 2 | 01-24-2007 02:58 PM |
| Redirect the output of prstat | vastare | Shell Programming and Scripting | 2 | 03-14-2006 07:55 AM |
| Help with prstat | vibhor_agarwali | UNIX for Dummies Questions & Answers | 6 | 04-07-2005 09:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
prstat output
Can someone please explain me the "TIME" field of the output of "prstat -p<pid>" command ? The man page says it is "The cumulative execution time for the process". Does it mean how many hrs:min:sec the process is running ? If so then I'm not getting the desired output.
Can someone pls help me in this regard ? Thanks |
|
||||
|
prstat_output, deciphered
If I understand your response correctly, the values shown under TIME are in CPU time. But the other part of the poster's question was whether those values represented hours:minutes:seconds or what. That is my question, as well, since there is a dearth of information about this.
|
|
||||
|
It is indeed hours:minutes:seconds as the source code shows:
Cross Reference: /onnv/onnv-gate/usr/src/cmd/prstat/prutil.c |
|
||||
|
The output is hrs:min:sec. It does NOT indicate how long the process has been running, just the amount of CPU time it has used, that is- actual processing time. Apache can run for years but if there's no traffic then the CPU time will be low because it will not need to process much.
STIME output of `ps -ef` will tell you when it started. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|