News for hackers. Stuff that matters.
Re:Understanding CPU port contention by titzer on Thursday March 22, 2018 @12:54PM (#16650398)
Out-of-order execution doesn't help if you saturate the functional units. Hyperthreading also doesn't help; in fact, it hurts even more, since now the other hyperthread(s) are competing for the contended resource.
Re:Understanding CPU port contention by BeeOnRope on Thursday March 22, 2018 @01:42PM (#16650849)
Well hyperthreading can help in the sense that the execution "slots" may not be wasted if the other hyperthread can use the ports that would be otherwise unused if only a single thread were running. That mostly only works if the workloads of each thread have very different port usage.

Consider one workload which saturates on p1, doing integer multiplication, and another one which is load/store heavy. Those two loads run on sibling hyperthreads could perhaps approach the best possible speedup of 2x since they use different ports.