LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 02-25-2013, 01:43 PM   #1
wwinay
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
How to display cpu load in % format..


Hello Tuxers... I have one problem that how to display cpu load in % format like 56%...
Thanking you..
 
Old 02-25-2013, 02:15 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Have you looked at the top utility yet?
 
Old 02-25-2013, 02:28 PM   #3
wwinay
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yep I know top utility and also ps but I only wanted to display cpu load in % format... THis is in my Linux Project so please help me out......
 
Old 02-25-2013, 02:29 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Dude use top and its infront of your face. put a little effort in here.
 
Old 02-26-2013, 01:42 AM   #5
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 265
Blog Entries: 2

Rep: Reputation: 48
Install sysstat & try following command
Code:
$ mpstat
As well as you can see CPU usage in percentage using
Code:
$ sar
as well as you can use
Code:
$iostat
If you want to know who is eating cpu
Code:
$ ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
 
Old 02-26-2013, 11:23 AM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,285

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
htop if you dont like top
 
Old 02-26-2013, 12:09 PM   #7
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,725
Blog Entries: 3

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
vmstat
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
CPU load yaximik Linux - Newbie 1 02-11-2013 02:23 AM
AMD CPU Generating Way More System Load Than Intel Xeon CPU? kresyzig Programming 1 10-11-2010 09:35 AM
cpu utilization and cpu load soltanloo Linux - General 1 06-07-2009 02:19 AM
CPU utilization and partition format paulsiu Linux - Hardware 2 04-25-2006 08:59 PM


All times are GMT -5. The time now is 09:40 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