LinuxQuestions.org
Help answer threads with 0 replies.
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 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,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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: 300
Blog Entries: 2

Rep: Reputation: 51
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/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
htop if you dont like top
 
Old 02-26-2013, 12:09 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
vmstat
 
  


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
[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

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

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