LWN.net Logo

What about separating locks and data?

What about separating locks and data?

Posted Jan 5, 2013 10:38 UTC (Sat) by renox (subscriber, #23785)
In reply to: What about separating locks and data? by daney
Parent article: Improving ticket spinlocks

Thanks for this informative reply.

For the second issue, what you're describing (having the spinlock occupying an entire cache line) isn't always necessary: in some cases you could put 'cold' data in the same cache line as the lock to get the best performance without using too much memory.


(Log in to post comments)

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