LinuxQuestions.org
Review your favorite Linux distribution.
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 05-21-2012, 04:25 AM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 299

Rep: Reputation: Disabled
CPU at idle, never gets down to 0%


Just wondering why in Linux gui CPU usage never seems to get down to 0% even when just idling with nothing going on. Depending upon which desktop is being used it seems to hover around 15%-20%.

In windows CPU drops down to 0% when it is idling, why doesn't the same happen in Linux?
 
Old 05-21-2012, 04:52 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,059

Rep: Reputation: Disabled
The "top" command will show you which processes are running and their cpu usage.
 
Old 05-21-2012, 04:56 AM   #3
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Nick_C View Post
Just wondering why in Linux gui CPU usage never seems to get down to 0% even when just idling with nothing going on. Depending upon which desktop is being used it seems to hover around 15%-20%.
look at the number of background processes that you have, and try to identify the one that consumes lots of CPU time.
They may be sleeping most of the time, but once in a while they wake up and have a few milliseconds' work to do. Swap memory in and out, update the clock display, reply to a network request. That's summing up.

However, on my Linux machines, top shows about 99% idle most of the time, maybe 95% when I move the mouse fast (AMD X2 dual core at 2x2GHz, the Intel Atom based system currently not powered on).

Quote:
Originally Posted by Nick_C View Post
In windows CPU drops down to 0% when it is idling, why doesn't the same happen in Linux?
It drops down to 0, alright, but every other second it jumps to about 2% or so, or even around 4..5% when you move the mouse a bit (AMD Sempron 3100+ single core at 1.6GHz).

So the two systems aren't all that different.

[X] Doc CPU
 
Old 05-21-2012, 04:42 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Maybe linux and windows uses different means to measure.

A computer only really goes to 0 when it is fully powered off.

Last edited by jefro; 05-21-2012 at 04:43 PM.
 
Old 05-22-2012, 03:00 AM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by jefro View Post
Maybe linux and windows uses different means to measure.
I'm quite sure that's true. Plus, Windows only displays percent with no fractional part, so everything below 1% is displayed as 0, while Linux (the "top" tool) displays tenths of percent.

However, this rounding error isn't that obvious if you ignore the CPU load the Windows task manager displays, and instead look at the CPU% of the idle "process". You'll see that it never goes to 100%, but 99% at most. So the remaining 1% must be other processes taking up less than 1% each, being displayed as 0%.

Quote:
Originally Posted by jefro View Post
A computer only really goes to 0 when it is fully powered off.
Either that, or with the CPU in HALT state. :-)

[X] Doc CPU
 
  


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 idle pm support Pale Linux - Kernel 1 07-07-2010 01:39 PM
how to make CPU idle? asahlot Linux - Software 2 11-23-2006 05:21 AM
Cpu load at 59% when idle stubbe Linux - General 12 09-26-2006 01:15 PM
CPU idle binumvk Linux - Security 0 10-16-2004 04:19 AM

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

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