Page MenuHomeVyOS Platform

Use correct CPU counts adjusted for SMT when necessary
Closed, ResolvedPublic

Description

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.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Performance optimization

Event Timeline

dmbaturin triaged this task as Normal priority.
dmbaturin changed Issue type from Internal change (not visible to end users) to Performance optimization.