LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Closed Thread
 
Search this Thread
Old 05-19-2005, 06:39 AM   #1
rajesht
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
Process System cpu


I need to find out the following for a particular process on RHEL 4.

1. Process system cpu (percent).
2. Process user cpu (percent).
3. Cumulative process system cpu (percent).
4. Cumulative process user cpu (percent).

I was told that I need to get those details from /proc/<pid>/stat file. I would be happy if anyone could give me the method for calculating the above. I also need to know whether /proc/<pid>/stat will give correct values for all processes.

Thanks.
 
Old 05-19-2005, 09:16 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Original thread can be found here: http://www.linuxquestions.org/questi...hreadid=324383
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"stealth" system process slamming cpu 360 Linux - General 4 11-24-2004 12:04 PM
Process scheduling (CPU) kiwi_bloke *BSD 1 08-29-2004 09:07 PM
Multithreaded System On 4 Cpu Linux Machine, process stuck on certain thread eyalzm Programming 1 05-10-2004 11:46 AM
gtop process using 20% of CPU? defa0009 Linux - General 4 03-23-2004 10:40 AM
CPU usage of a process asharma Solaris / OpenSolaris 7 03-29-2003 02:17 PM


All times are GMT -5. The time now is 04:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration