Fix memory measurements for AMD Zen2
Created by: TomTheBear
Memory measurements on AMD Zen2 need to be scaled dependent on the NPS mode (4.0/num_numadomains
). This works well for single-socket servers but for multi-socket systems, the divisor needs to be the number of NUMA domains per socket. This patch fixes this by including the number of CPU sockets in the scaling factor: 4.0/(num_numadomains/num_sockets)
.