|
|
Log in / Subscribe / Register

Core scheduling lands in 5.14

Core scheduling lands in 5.14

Posted Jul 3, 2021 11:23 UTC (Sat) by Sesse (subscriber, #53779)
In reply to: Core scheduling lands in 5.14 by willy
Parent article: Core scheduling lands in 5.14

Yes. The best explanation I've heard came from an Intel engineer, saying something along the lines of: “Modern hardware has so many execution ports that in reality, the only way to use it fully is to write spaghetti code—code that does two unrelated things at the same time.” So HT/SMT is a way to feed the hardware with two execution streams at the same time, that don't have dependencies on each other's results.


to post comments

Core scheduling lands in 5.14

Posted Jul 5, 2021 18:53 UTC (Mon) by fratti (guest, #105722) [Link]

I believe the "extreme" version of this is what modern GPUs do: fine-grained multithreading. Instead of doing things like branch prediction to keep the pipeline saturated, they simply execute a different thread's instruction with each clock cycle, such that each thread only ever has one instruction at most in the pipeline. Naturally this trades off single-threaded performance and requires keeping as many register files as one has pipeline stages, but it's a pretty elegant solution for maximising throughput if one really does have that many independent threads.


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