The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
output of command rup kiranrasane UNIX for Advanced & Expert Users 1 03-27-2008 07:31 AM
ls command output arsheshadri AIX 1 08-20-2007 03:23 AM
if command not having the right output filthymonk Shell Programming and Scripting 9 05-22-2007 10:11 PM
Output of ps command ls1429 UNIX for Dummies Questions & Answers 1 02-03-2003 07:40 AM
Output command berty007 Shell Programming and Scripting 4 11-29-2002 02:27 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2005
Registered User
 

Join Date: Jan 2002
Posts: 60
Output of ps -ef command

Can someone tell me the meaning of the column 'C' contained in the output of the ps -ef command?

UID PID PPID C STIME TTY TIME COMMAND

I was once told that if the value was higher then 0 and the process showed to be in a state of sleep when running a top then the command had timed out and can be killed?!!

Thanks in advance
Reply With Quote
Forum Sponsor
  #2  
Old 01-06-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Found this here You should probably visit to see this text in context with the example given....

Quote:
The C column is the processor utilization. With the exception of the ps command, all of the other processes listed are waiting for some event, such as another process to exit or (as in the case of shell processes) are waiting for user input. Note that in this example all of the entries have a 0 (zero) in the C column. This does not mean they have used no CPU time, but rather it is so low that it is reported as zero
Cheers
ZB
Reply With Quote
  #3  
Old 01-06-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
man says .....


C
(-f, l, and -l flags) CPU utilization of process or thread, incremented each
time the system clock ticks and the process or thread is found to be running.
The value is decayed by the scheduler by dividing it by 2 once per second. For
the sched_other policy, CPU utilization is used in determining process
scheduling priority. Large values indicate a CPU intensive process and result
in lower process priority whereas small values indicate an I/O intensive
process and result in a more favorable priority.
Reply With Quote
  #4  
Old 01-06-2005
Registered User
 

Join Date: Jan 2002
Posts: 60
Thanks BZ. Am I right in thinking that if the process has 254 in the C column and is in a state of sleep, that it is no longer running but in a continual loop or a process it's relying on has died?

Thanks again
Reply With Quote
  #5  
Old 01-06-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
bhargav - out of interest which *nix are you using? The HP-UX 10.20 and SUSE 8.2 man pages have nothing on this....

Cheers
ZB
Reply With Quote
  #6  
Old 01-06-2005
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
$ uname -a | cut -d" " -f 1,3-
AIX 3 4 000936434C00
Reply With Quote
  #7  
Old 01-06-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Quote:
Originally posted by dbrundrett
Thanks BZ. Am I right in thinking that if the process has 254 in the C column and is in a state of sleep, that it is no longer running but in a continual loop or a process it's relying on has died?

Thanks again
You can't all of that stuff from the value 254. If it's in a state a sleep, it recently arrived at a state of sleep and the C value should continue to decay all the way to zero. "no longer running but in a continual loop" is not even self-consistant. A process that is in a loop would be running. You can't tell if the process is relying on another process from this number.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0