workhorsy / py-cpuinfo

A module for getting CPU info with pure Python
MIT License
312 stars 59 forks source link

SMBIOS tables should be preferred source of brand for ARM via lscpu #199

Open mp15 opened 1 year ago

mp15 commented 1 year ago

On ARM chips such as AWS's Graviton the information given in the raw model and vendor name is rather generic and thus meaningless. However if we and thus lscpu has been run as root the SMBIOS information is exposed which is much more descriptive and we should use it.

Vendor ID:              ARM
  BIOS Vendor ID:       Amazon EC2
  Model name:           Neoverse-N1
    BIOS Model name:    AWS Graviton2