Page MenuHomeVyOS Platform

Use correct CPU counts adjusted for SMT when necessary
Open, NormalPublic

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
Internal change (not visible to end users)

Event Timeline

dmbaturin triaged this task as Normal priority.Mar 30 2024, 3:25 PM
dmbaturin created this task.