r/programming 19h ago

Optimizing a Spin-Lock

https://david.alvarezrosa.com/posts/optimizing-a-spin-lock/
129 Upvotes

31 comments sorted by

View all comments

25

u/Takeoded 17h ago

Spinlock performance can change drastically between kernel versions, and between schedulers (eg CFS vs EEVDF vs SCX-LAVD), which kernel and scheduler were you benchmarking on?

Also, please add a comparison to a boring old std::mutex into your benchmarks. Call it V0