Re: [GIT PULL] adaptive spinning mutexes

From: Folkert van Heusden
Date: Fri Jan 16 2009 - 09:08:57 EST


> So I don't dispute at all that "mutex with spinning" performs better than
> a mutex, but I _do_ claim that it has some potentially huge downsides
> compared to a real spinlock. It may perform as well as a spinlock in the
> nice common case, but then when you hit the non-common case you see the
> difference between well-written code and badly written code.

Make it mount-point dependant. Then your mail-spool can use the spinlock
version and e.g. the /usr filesystem uses regular mutexes. Might be
tricky to implement I guess.


Folkert van Heusden

--
MultiTail cok yonlu kullanimli bir program, loglari okumak, verilen
kommandolari yerine getirebilen. Filter, renk verme, merge, 'diff-
view', vs. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/