LWN.net Logo

What about separating locks and data?

What about separating locks and data?

Posted Jan 5, 2013 22:53 UTC (Sat) by dlang (✭ supporter ✭, #313)
In reply to: What about separating locks and data? by renox
Parent article: Improving ticket spinlocks

There will then be the problem of exactly how much space do you allocate for the spinlock

how do you know what the best cache size is to use on the processor that someone will buy next year and run the binary you compiled today on.


(Log in to post comments)

What about separating locks and data?

Posted Jan 5, 2013 23:50 UTC (Sat) by giraffedata (subscriber, #1954) [Link]

Aren't there runtime facilities in the kernel for tailoring behavior to the actual cache line size? Something like a cache line allocator?

That would make this kind of memory layout feasible until they invent a more complex form of caching.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds