3 ms·
What about... single-core machines?
by Sesse__ 1y ago
What about... single-core machines?
- nerdsniper 1y agoSMT generally caused single-core CPU's to appear as 2 logical cores. I realize Anubis was probably never tested on a true single-core machine. They are actually somewhat difficult to find these days outside of microcontrollers.
- crote 1y agoEven in microcontrollers it is starting to become increasingly rare! We've progressed to a point where sub-$1 hobbyist chips like the RP2040 are multicore these days.
- john-h-k 1y agoThe line of code in the article is `Math.max(nproc / 2, 1)`. So 1 core yields 1 thread. Only CPUs with an odd number of cores, no SMT, and >1 core will hit this bug. Not very common
- jsheard 1y agoIn theory a CPU with SMT could still trigger this bug, because not every core necessarily has to have SMT. Intel made some chips that combined performance cores with SMT and efficiency cores without SMT, so if they had an odd number of E-cores they'd have ended up with an odd number of threads regardless.
- jeffbee 1y agoYou can also just boot linux with maxcpus=5 or any other number. Believing things about the parity of the number of CPUs is just nuts.
- deleted 1y ago[deleted]