News for hackers. Stuff that matters.
Re:Optimizing for Fan Noise by wmf on Wednesday February 10, 2010 @10:54PM (#1116845)
Doubling the speed of a program by moving from one to four cores is a win if you're looking at the raw benchmark numbers, but an overall loss in terms of computation per watt.

The first time I read this I didn't understand it, but the author has laid a trap here for the unwary reader in the word "doubling". If you can get 4x the performance using 4 cores the energy efficiency is the same or better, but if your program scales poorly and only gets 2x performance from 4 cores the energy efficiency is worse.

Re:Optimizing for Fan Noise by m_eiman on Thursday February 11, 2010 @01:38AM (#1117087)
That depends on how much power the rest of the system uses. If the CPU is a small enough part of total system power, using four cores to cut time in half might be worth it.
Re:Optimizing for Fan Noise by cschneid on Wednesday February 10, 2010 @11:05PM (#1116866)
http://en.wikipedia.org/wiki/Parallel_computing#Amdahl.27s_l...

Basically, you will never get a linear increase with parallel computing, especially on consumer type apps that are much more synchronous. So running multiple cores, with requisite context switches will get less computing per watt, even if it isn't as bad as the 2x number.

Re:Optimizing for Fan Noise by chadaustin on Wednesday February 10, 2010 @11:23PM (#1116891)
Sort of. Herb Sutter shows some examples where executing programs in parallel gives superlinear speed-ups: http://herbsutter.wordpress.com/2008/01/30/effective-concurr...
Re:Optimizing for Fan Noise by anamax on Thursday February 11, 2010 @12:20PM (#1118090)
> Herb Sutter shows some examples where executing programs in parallel gives superlinear speed-ups

His definition of "superlinear" is a bit tricky. As he explains, you can only get superlinear by "Do disproportionately less work." and/or "Harness disproportionately more resources.". However, his example of the former is actually a subtle instance of the latter.

Superlinear speedups are always due to more effective caching. Sutter uses "disproportionatly more resources" when the added effectiveness comes from larger caches. However, his "do less work" examples are "just" better cache behavior.

Re:Optimizing for Fan Noise by sparky on Wednesday February 10, 2010 @11:23PM (#1116890)
"with requisite context switches"

Can you explain this part?

Re:Optimizing for Fan Noise by cschneid on Thursday February 11, 2010 @03:48PM (#1118714)
A generic catchall for OS level crap that multi-core requires. Interrupts / memory management / ... other stuff.... I'm only really aware that there's overhead, and not the specifics of what it ends up being.