| ▲ | pjmlp an hour ago | |||||||
Based on my experience, hyper threading was anyway a workaround until multicore became widely available, not sure how much it is still worthwhile, given the impact in shared units across the CPU. Usually having hyperthreads killing each other's cache entries, is much worse that splitting the work across multiple real cores, with a few synchronisation points. | ||||||||
| ▲ | swiftcoder an hour ago | parent | next [-] | |||||||
Hyperthreading was also a workaround for software that did all its networking by leaving hundreds (or even thousands) of OS threads blocked on IO. As epoll/kqueue/iocp/io_uring et al have become more widely adopted, and we offload a lot more of this IO multiplexing into userspace, the value proposition gets hazier. | ||||||||
| ▲ | gsliepen 34 minutes ago | parent | prev [-] | |||||||
Hyper-threading is a way to make better use of the execution engines of a CPU core. Some instructions stall (for example, because they need to wait for memory), so you want to run something else in the mean time. Instruction reordering and speculative execution only goes so far. If you have a completely separate thread available that can do some useful work, then you improve the overal efficiency. Note that GPUs basically are hyper-threaded CPUs that not have just 2 or 4 threads per core, but thousands. This approach avoids needing all the complicated out-of-order circuitry, but it only works if you really have thousands of threads, which for a GPU is actually the case. | ||||||||
| ||||||||