cvs commit: src/sys/amd64/conf GENERIC

Maxime Henrion mux at freebsd.org
Mon Jun 14 19:40:29 GMT 2004


Alfred Perlstein wrote:
> * John Baldwin <jhb at FreeBSD.org> [040614 11:57] wrote:
> > 
> > I'm betting it is just triggering a race.  When I first did the adaptive 
> > mutexes I stress tested it (-j <bignum> buildworld loops) on an ultra60, an 
> > alpha ds20, and a quad pii-xeon w/o any lockups.
> 
> Just a side note, I think it's the Berkeley DB's recent code that
> will spin a number of times based on the number of CPUs present in
> the system.  Meaning, it might make sense to spin more on a quad
> than on a dual proc machine.  It might be worth checking this out.

What do you mean by spinning more?  As far as I know, with adaptive
mutexes, if some thread tries to lock a blocking mutex that is already
held by another thread currently running on another CPU, then it spins
instead of blocking, assuming the other thread will soon release the
mutex.  Obviously, this has more chances to happen if there are more
CPUs in the system but I don't get what you mean here.

Cheers,
Maxime


More information about the cvs-src mailing list