Old Drepper paper on M:N vs 1:1 in Linux. NGPT is M:N, NPTL is 1:1. 1:1 threads beat M:N in every case. https://akkadia.org/drepper/nptl-design.pdf …
Dunno! Probably worth doing measurement! We’ve done measurements in Rust and M:N didn’t appreciably beat 1:1 on modern Linux. Even with cooperative scheduling and no signals.
-
-
My preference for 1:1 isn’t theoretical: it’s based on trying M:N in Rust. I was in fact one of the biggest M:N holdouts until it became clear, based on data, that 1:1 was the way to go.
-
And here’s something interesting about cooperative scheduling in Go:https://github.com/golang/proposal/blob/master/design/24543-non-cooperative-preemption.md …
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.