LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2010, 11:17 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
CPU Queue vs CPU % Busy


Am wondering if looking at the CPU process queues, vs CPU% busy, are a better indication of whether an upgrade is needed.

Afterall, processes can still queue up to be processed even if "top" doesn't shown CPU 100%. Say if it's indicating 50% busy within the top output, it's only saying that 5 out of 10 times sampled, the CPU was busy. But a process may arrive to be processed at any time, and if it arrives just when the CPU is processing something it needs to wait in the queue. Am I making senses?

Any guidelines of how many processes queued up would suggest an upgrade is required of the CPU? I've read online (believe it's Microsoft) that 2 is the figure.
 
Old 12-29-2010, 01:31 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You're correct - both CPU utilization (% CPU) and runlength queue (e.g. from "uptime" or "top") are both extremely useful measures.

And you're also correct that, in general, "two's a crowd" (from basic queueing theory, not just Microsoft ).

But there are no easy answers. You need to benchmark your system, determine if you're CPU bound (often the case with high %CPU), memory bound or I/O bound (high runlength queue often indicates either/both) and take appropriate steps.

In general, purchasing more RAM is often the first hardware you'd upgrade; purchasing more/better CPUs is often the last hardware you'd upgrade. But always:

a) establish a reliable baseline,
b) determine the specific problem(s), and
c) try to determine the root cause first.

IMHO ...
 
Old 12-29-2010, 01:40 PM   #3
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Rep: Reputation: 27
i think that you can't tell if your system needs an upgrade based on the cpu utilisation.
and try to install ATOP it's way better than top

Code:
ATOP - benchabane               2010/12/29  20:39:09               10 seconds elapsed
PRC | sys   8.27s | user   6.34s | #proc    203 | #zombie    1 | #exit      9 |
CPU | sys     82% | user     64% | irq       1% | idle     54% | wait      0% |
cpu | sys     42% | user     33% | irq       0% | idle     26% | cpu001 w  0% |
cpu | sys     40% | user     31% | irq       1% | idle     28% | cpu000 w  0% |
CPL | avg1   2.18 | avg5    4.75 | avg15   8.05 | csw    10620 | intr    5108 |
MEM | tot    2.8G | free   56.9M | cache   1.9G | buff   45.8M | slab   82.4M |
SWP | tot    3.9G | free    3.9G |              | vmcom   2.1G | vmlim   5.3G |
DSK |         sda | busy      0% | read       1 | write     87 | avio    0 ms |
NET | transport   | tcpi    1469 | tcpo    1719 | udpi     238 | udpo     249 |
NET | network     | ipi     1721 | ipo     2282 | ipfrw      0 | deliv   1707 |
NET | eth0     1% | pcki    1749 | pcko    2282 | si  139 Kbps | so 1906 Kbps |
 
  


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
CPU utilization on a busy traffic shaping router robel Linux - Networking 8 09-28-2010 03:25 AM
Cpu fan stuck to the cpu, how do I get the cpu out? abefroman Linux - Hardware 16 09-04-2009 12:47 AM
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 08:29 AM
My load average is 7.00, but my cpu is idle. What's in the queue? BrianK Linux - General 3 03-27-2007 07:10 PM
CPU gets busy after sometimes. mir_sheely Linux - Software 4 01-03-2005 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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