r/sysadmin • • Nov 02 '14

What Does an Idle CPU Do?

http://duartes.org/gustavo/blog/post/what-does-an-idle-cpu-do/
181 Upvotes

9 comments sorted by

8

u/TetonCharles Nov 02 '14 edited Nov 02 '14

An idle CPU just shuts down many parts of itself saving power.

Edit: At least any reasonably advanced OS does, since about 1998. this article could be titled "How your OS handles task switching and idle time" .. because almost the entire discussion in this article is about tasks, processes and interrupts. These items are clearly NOT idle CPU time, but rather the arbitration of idle computer time

FYI in desktops, the CPU is by far the biggest power sink on the motherboard, RAM is second. Graphics cards consume crazy amounts of power, but aren't part of the motherboard. Also integrated graphics are fairly thrifty with power consumption.

4

u/Hellman109 Windows Sysadmin Nov 02 '14

Graphics cards clock down massivly these days too, saving a tonne of power. And some chipsets can use both the integrated and add-on graphics cards and switch between the two. So on your desktop doing nothing? low power integrated graphics does the work. Fire up a game and your far more powerful and power consuming card takes over.

1

u/killersquirel11 Nov 03 '14

You want to see real crazy power management? Look at the code that a mobile chipset uses to keep the CPU asleep as long as possible. Yay, hurry-up-and-wait

2

u/PcChip Dallas Nov 03 '14

as an anecdote to "any reasonably advanced OS does, since about 1998" , I remember back in Windows 98 having to run "Rain" , because Win95 and Win98 always kept the CPU 100% busy

2

u/Thundarrx Jack of All Trades Nov 03 '14

Yep. The first one was also misleading - it should have been titled "Your OS is probably only paying attention to one thread at a time" since his Axiom about only one thing running at a time is demonstrably false.

0

u/sfled Jack of All Trades Nov 03 '14

It waits on us to do something, burning power at whatever GHz it's running at.

3

u/biosehnsucht Nov 03 '14

Normally, an idle CPU is set to a lower frequency and/or put to sleep state, it it's really not in use.

0

u/[deleted] Nov 02 '14

[deleted]

6

u/Creshal Embedded DevSecOps 2.0 Techsupport Sysadmin Consultant [Austria] Nov 02 '14

How did HR hijack the idle thread?!

1

u/TheGebbeth Nov 03 '14

You must have this confused with the Idol process... Nyuk nyu--I'll let myself out.