DragonFly submit List (threaded) for 2008-05
DragonFly BSD
DragonFly submit List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: spinlock random exponential backoff


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 3 May 2008 21:01:26 -0700 (PDT)

:Hi,
:
:I have problem under specific test case, if I use spinlock on ifq (got
:many "indefinite wait" logging).  With following patch things improve
:greatly, there is almost no "indefinite wait"!.  Please review it:
:http://leaf.dragonflybsd.org/~sephe/kern_spinlock.c.diff1
:
:Best Regards,
:sephe

    Looks good.  We might want to also change that cpu_nop() into a
    cpu_pause(), or perhaps even call both.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]