Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


Closed Thread
  Search this Thread
Old 05-19-2005, 07:39 AM   #1
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.

Old 05-19-2005, 10:16 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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.

Original thread can be found here:

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 01:04 PM
Process scheduling (CPU) kiwi_bloke *BSD 1 08-29-2004 10:07 PM
Multithreaded System On 4 Cpu Linux Machine, process stuck on certain thread eyalzm Programming 1 05-10-2004 12:46 PM
gtop process using 20% of CPU? defa0009 Linux - General 4 03-23-2004 11:40 AM
CPU usage of a process asharma Solaris / OpenSolaris 7 03-29-2003 03:17 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:47 AM.

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