weka / wekachecker

Validates hosts are ready to run Weka
GNU General Public License v3.0
2 stars 0 forks source link

Simplify the test for Hyperthreading / SMT #113

Closed jackchallen closed 3 months ago

jackchallen commented 3 months ago

Issue reported via Slack about parsing the output of cpuinfo, so... Rather than relying on the existence and output of dmidecode and /proc/cpuinfo, it actually makes more sense to read /sys/devices/system/cpu/smt/active, which is old, simple, and widely available. I think it exists everywhere on kernel >2.6.

Fixed (assumed) typo about AMT -> SMT.