On Sun, 18 Jul 1999, Brian J. Beesley wrote:
> > Is there any way to set the affinity under NT automatically when a service
> > starts up?
> 
> Put "Affinity=n" into prime.ini (where n = 0, 1, 2, ...) This works 
> for both NTPrime and Prime95/NT.
> 
> If this line isn't there, the processes are scheduled on the first 
> available processor at each timeslice. This costs about 5% on an idle 
> system and next to nothing on a system which is very busy (because 
> idle priority processes don't see much CPU), but it is expensive on a 
> system which has just a little load from other applications.
> 
> I think "Affinity=n" may work with linux also.
There's no support for explicit processor affinity in stock Linux, so I'd
doubt that would work.
On the other hand, the affinity of a process to stay at the same processor
is very high, exactly to prevent that rescheduling performance hit seen in
NT, so I wouldn't expect it to be a big problem.

-- 
Henrik Olsen,  Dawn Solutions I/S       URL=http://www.iaeste.dk/~henrik/
Darth Vader: Luke, come to the dark side.
Luke: No.
Darth Vader: Your goodness has redeemed me. Die, emperor scum.
                           Return of the Jedi, the Movie-A-Minute version


_________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ      -- http://www.tasam.com/~lrwiman/FAQ-mers

Reply via email to