LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2010, 11:57 AM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Rep: Reputation: 16
Processor Utilization during peak period


Hello,

how i can know processor utilization during peak period in rhel 5.3.

Abhi
 
Old 07-02-2010, 04:49 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
sar - if 10 minutes is not sufficient granularity adjust accordingly.
 
Old 07-02-2010, 05:48 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...and if SAR isn't your cup of $BEVERAGE then see Dstat, Atop, Atsar, Collectl?
 
Old 07-02-2010, 06:31 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
On RHEL, one would hope sysstat is installed and running - some simple scripting should be sufficient.
 
Old 07-03-2010, 01:20 PM   #5
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
sar -u 10 8640 >> /tmp/sar-cpu-stats &

It will collect the CPU stats for 24 hours (every 10 seconds), then you can sort out the peak time.
 
Old 08-10-2010, 01:30 PM   #6
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
hmm, just tried sar with a 1 second sample just to see what it does since I always use collectl

Look at this from sar:


sar -u 1 8640
Linux 2.6.18-128.el5 (hpdc3dmgt1) 08/10/2010

06:24:43 PM CPU %user %nice %system %iowait %steal %idle
06:24:44 PM all 0.75 0.00 1.00 0.00 0.00 98.25
06:24:45 PM all 0.12 0.00 0.37 0.50 0.00 99.00
06:24:46 PM all 0.12 0.00 0.12 0.50 0.00 99.25
06:24:47 PM all 0.38 0.00 0.00 0.00 0.00 99.62

and then this from collectl
collectl -sc --verbose -oT

# CPU SUMMARY (INTR, CTXSW & PROC /sec)
# User Nice Sys Wait IRQ Soft Steal Idle Intr Ctxsw Proc RunQ Run Avg1 Avg5 Avg15
18:25:07 1 0 0 0 0 0 0 98 1048 363 2 588 0 1.54 1.27 1.17
18:25:08 0 0 0 1 0 0 0 98 1032 295 2 588 0 1.50 1.27 1.17

collectl reports CPU consumed for IRQ processing which is pretty important if you want the complete picture. The other thing about collectl is you can look at the summary data level like I showed above and if there is a particular time of interest play the data back again and show utilization by individual CPU since averages can be misleading! You might have a cpu summary that says 25% when in fact you have 1 cpu pegged at 100% processing interrupts and the other 3 sitting idle.

also, I always suggest looking at a lot more than just cpu because maybe something else is contributing to the problem. What if some device is generating a ton if interrupts and you want to know which device?

-mark
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit processor utilization Kardell Linux - Hardware 2 08-06-2009 07:37 AM
Peak tv card, how get it to work? lugoteehalt Linux - Hardware 9 08-01-2008 01:08 PM
Linux desktop GUI tool for CPU utilization and bandwidth utilization karimasif Linux - Software 4 03-03-2008 01:09 PM
Sneak Peak Parley VectorLinux 2 04-01-2005 03:32 PM
xinetd 100% utilization on one processor on a two processor system red hat 9 garnold Linux - General 0 02-02-2004 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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