On Tue, 2005-03-08 at 23:51 +0000, J.A. Magallon wrote: > Ahh, damn, that explains it. I use a main thread that does nothing but > wait for the worker threads. So it sure gets moved to CPU0, but as it > does not waste CPU time, I do not see it... > > Thanks. Will see what can I do with my threads. cpusets, perhaps...
Affinity is inherited. Start the threads in a shell script that runs taskset on itself. Or just modify this program to have the main thread do sched_setaffinity() on itself. Robert Love - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/