The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-27-2005
senabhi senabhi is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 1
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
  #2 (permalink)  
Old 07-27-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Quote:
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 ?
Yes, it does mean 'running'. Running in the sense that the process is in the cpu and some processing is going on. Not 'running' in the sense the process is on the system. Think of it this way - if you logon to a server and don't touch the keyboard or run a command, your process is idle (not running in cpu) but it's still there. This is not the TIME that is showing in prstat. You could have a process that has been on the system for days but the TIME shown in prstat won't show that you have days of time. When you type a command and hit return, if there is a need for cpu time, then prstat will show what amount of TIME was in the cpu (for computations, etc). Prstat will show the user and system TIME in that output for each process.
  #3 (permalink)  
Old 05-13-2009
desertdenizen desertdenizen is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 5
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.
  #4 (permalink)  
Old 05-13-2009
jlliagre jlliagre is online now Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,465
It is indeed hours:minutes:seconds as the source code shows:
Cross Reference: /onnv/onnv-gate/usr/src/cmd/prstat/prutil.c
  #5 (permalink)  
Old 05-13-2009
seg seg is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2003
Posts: 260
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.
  #6 (permalink)  
Old 05-14-2009
sbk1972 sbk1972 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 114
Have you noticed that STIME of `ps -ef ` only shows hrs:mins for the same day, then moves on to dates ? E.g

root 518 1 0 Mar 30 ? 0:01 /usr/sbin/ssserver
ora10g_1 11112 1 0 12:18:58 ? 0:03 oracledataw03l (LOCAL=NO)

SBK
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0