tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Dynamically allocated locks
On Mar 24, 2008, at 10:10 AM, Matt Thomas wrote:
Yes. One / cacheline size is a dramatic waste of space. Some
systems have
128 bytes per cacheline. On systems with small caches or UP systems
it's
extremely expensive.
Two independent locks in a single cache line is guaranteed to crease a
false-sharing situation. It is best avoided, even if cache pressure
is the trade-off.
-- thorpej
Home |
Main Index |
Thread Index |
Old Index