Right now we still have uses of os.cpu_count() in scripts, while that function returns the number of cores that may be inflated by SMT technologies (Intel Hyper-Threading and friends). In some places it's compensated for by dividing the number by two — that means machines with SMT disabled in the firmware settings appear to have only half as many cores as they actually do.
Description
Description
Details
Details
- Version
- -
- Is it a breaking change?
- Perfectly compatible
- Issue type
- Performance optimization
Related Objects
Related Objects
- Mentioned In
- rVYOSONEX9edf1e7c23f1: Merge pull request #3220 from vyos/mergify/bp/sagitta/pr-3218
rVYOSONEX92d44fb6aef6: accel-ppp: T6187: use correct CPU counts adjusted for SMT
rVYOSONEX6927c0b622c8: accel-ppp: T6187: use correct CPU counts adjusted for SMT
rVYOSONEX89a6299156b8: Merge pull request #3218 from dmbaturin/half-cpus