Subject: Re: SMP & native threads...
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-smp
Date: 06/13/2003 14:08:47
On Wed, 11 Jun 2003 12:26:15 -0700, Jason Thorpe writes:
>> So two questions:
>> 1. Is it possible to add a scheduler hack to only allow threaded
>> apps to use one CPU? E.g. anything doing SA will be forced to cpu0,
>> while
>> regular processes can use any.
>
>Not really. But the short-term fix for the problem will likely be
>"make it so threaded apps can't run on more than one CPU concurrently".
If we had processor affinity - as someone just asked about,
it would be a simple addition to set said affinity when initializing
the threads - says he who has not looked at any of the code in
question ;-)
--sjg