> > note the extreme system time on the 16 processor machine
> 
> Could this be due to memory contention caused by spinlocks?
> While locks are spinning they eat up memory bandwidth which
> slows down everyone's memory accesses (including the one who
> is trying to finish its work while holding the spinlock).
> And the more processors contend, the worse it gets....

perhaps.

> How well does plan9 lock() scale with the number of processor?

i think the question is, are there any spin locks that can become
unreasonablly contended as conf.nmach goes up.  if so, i would
think that rather than finding the optimal solution to pessimal
use of spinlocks, we should look to optimize our use of spinlocks.

the underlying assumption is that the contended case is rare.
if this is not the case, then spin locks are not a good choice.

- erik

Reply via email to