Messages in this thread | | | Date | Wed, 14 Jan 2009 12:41:07 +0100 | From | Folkert van Heusden <> | Subject | Re: [PATCH -v8][RFC] mutex: implement adaptive spinning |
| |
> The key criteria for the busy wait is that the lock owner has to be running on > a (different) cpu. The idea is that as long as the owner is running, there is a > fair chance it'll release the lock soon, and thus we'll be better off spinning > instead of blocking/scheduling.
Won't this make Linux less "green"? (-> use more power since busy loops use more power than idle loops) If so, maybe it should be make configurable somewhere?
Folkert van Heusden
-- MultiTail is een flexibele tool voor het volgen van logfiles en uitvoer van commando's. Filteren, van kleur voorzien, mergen, 'diff-view', etc. http://www.vanheusden.com/multitail/ ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
| |