LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 06-03-2009, 07:33 AM   #1
soltanloo
Member
 
Registered: Jun 2009
Posts: 39

Rep: Reputation: 15
CPU instant load


Hi
I want to read CPU load on linux fedora 10. i know some bash command such as top,uptime, mpstat, or by "cat /proc/loadavg" . these commands are telling load average for 1 , 5 and 15 last minutes. but i need the instant load or at least the load average for 1 last second. i'm too confused about this.

could you please tell me what is the difference between " cpu load " and " cpu utilization " ?

by the top command , there are some other information about cpu states such as user , system , nice and ... . i need 1 number for cpu load.

please help me.
thank u.
 
Old 06-03-2009, 12:12 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The /proc filesystem is your friend:
Code:
man 5 proc
See, especially, the section describing /proc/stat.
In general, I would calculate the CPU load as (100 minus idle)%.
--- rod.
 
  


Reply



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
Generate alert with "CPU load average" "CPU utilization" viky Linux - Hardware 3 07-25-2007 04:24 AM
CPU Load Always at 100% freddie_leaf Debian 2 09-25-2005 06:59 AM
What command gives me CPU load? nodger Linux - Software 2 01-09-2005 08:28 AM
cpu load vs processor use six6 Linux - Newbie 1 11-20-2004 02:11 PM
Question about CPU load iceman47 Linux - Hardware 8 05-29-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration