News for hackers. Stuff that matters.
Re:Forcing the CPU affinity can make a monothreaded process ... by berkut on Sunday December 09, 2012 @04:40AM (#4894329)
It's not just the sleeping state which this improves, it's the reduction in cache-misses for Level2 (Core2) and Level3 (i7) that this helps.

In my experience writing high performance VFX software, the Linux kernel's scheduler has been the best of all major OSs in terms of balancing threads since around 2.6.35.

OS X is the worst, it bounces threads all over the place, and on top of that, thread_policy_set() on OS X is only a hint, so often OS X will ignore affinity settings anyway.

Re:Forcing the CPU affinity can make a monothreaded process ... by ikrima on Sunday December 09, 2012 @04:29PM (#4896202)
Just tried google stalking a way to reach you but came short. I'm in vfx r&d and wanted to ask you more about your performance optimization techniques. You mind sending your email to [email protected]?
Re:Forcing the CPU affinity can make a monothreaded process ... by btown on Sunday December 09, 2012 @01:53PM (#4895574)
Is there any way, then, to actually set the affinity on OS X?