[pve-devel] [PATCH common 1/1] Add cpu core count to /nodes/{id}/status API result

2020-05-29 Thread Mike Beattie
This is useful for when collecting data for Guest OS licensing (Microsoft) where physical core count matters, not socket or thread count. The "cpus" value counts threads when Hyperthreading is enabled. Signed-off-by: Mike Beattie --- src/PVE/ProcFSTools.pm | 9 - 1 file

[pve-devel] [PATCH common 0/1] Add cpu core count to node status API

2020-05-29 Thread Mike Beattie
ntry, but that would entail a cpu model map to threads/core. It is simpler to just sum the 'cpu cores' line from each unique physical cpu in /proc/cpuinfo, which this patch does (by slightly abusing the hash used to count sockets). Mike Beattie (1): Add cpu core count to /nodes/{i