News for hackers. Stuff that matters.
Re:Forcing the CPU affinity can make a monothreaded process ... by ybaumes on Sunday December 09, 2012 @05:55AM (#4894422)
AFAIK the Linux scheduler tries to be completely fair regarding every execution units.
Re:Forcing the CPU affinity can make a monothreaded process ... by flatline on Sunday December 09, 2012 @11:08AM (#4894999)
This is the Completely Fair Scheduler (CFS) that was introduced in the 2.6 Kernel. It basically does round-robin scheduling with variable time quanta based on niceness/priority. Here is a good overview of the RBTree implementation it uses:

http://www.kernel.org/doc/Documentation/scheduler/sched-desi...

I don't know how this deals with distributing tasks across multiple processors however; the basic idea was to improve on the fairly naive runqueue implementation in 2.4 and prior.

Re:Forcing the CPU affinity can make a monothreaded process ... by sp332 on Sunday December 09, 2012 @10:17AM (#4894906)
The kernel will try to keep each process running on the same CPU. If one process is using a lot of CPU, it won't (shouldn't) generally switch it around just to keep the CPUs evenly busy.
Re:Forcing the CPU affinity can make a monothreaded process ... by bnegreve on Sunday December 09, 2012 @09:10AM (#4894772)
Why is this downvoted ? Is it false ?