16 mutext lock/unlocks per query?
Paul A Vixie
vixie at vix.com
Wed Dec 5 19:43:38 UTC 2001
> Which platforms are considered as having lightweight mutexes?
bsd is what we had in our hands at the time we did the design.
it simply never occurred to us that there would ever be a thread
implementation without inline functions and without usermode TSI
that doesn't make us right, but it should explain why 15 mutexes
per transaction didn't seem like the worst thing in the world at
the time we did the design.
i suspect that a "big lock" design would be faster for most work
loads. or at least a bigger lock granularity than we have now.
mutexes are a LOT more expensive on non-bsd systems than we ever
More information about the bind-workers