Closed fuegas closed 1 month ago
This is due to a newer version of util-linux (>= 2.37.0) changing the formatting:
lscpu(1) has been reimplemented. Now it analyzes /sys for all CPUs and provides information for all CPU types used by the system (for example heterogeneous big.LITTLE ARMs, etc.). This command reads also SMBIOS tables to get CPU identifiers. Thanks to Masayoshi Mizuma from Fujitsu and Jeffrey Bastian from Red Hat. The default output on the terminal is more structured now to be more human-readable.
This is also breaking on RHEL >= 9 and Ubuntu >= 22.04. I am working on creating a PR to resolve this.
Description
Running
lscpu
on a Debian (or other linux) VM on an arm64 system (for example an Apple M2 system) does not output the lineCore(s) per socket
but outputsCore(s) per cluster
. BecauseCore(s) per socket
is not in the output the line calculating the number of cpus crashes:The output of a Debian 12 VM on an amd64 system gives (truncated to relevant part):
The output of
lscpu
on a Debian 12 VM on an arm64 system (in a Debian VM) gives (truncated to relevant part):Ohai Version
Platform Version
Debian 12 on a Apple M2 Macbook Pro.
Ohai Output
I've added some debug output at line 196 of the CPU plugin:
This results in: