Dan Kenigsberg has posted comments on this change.
Change subject: sampling: HostSample always gets current cpus ......................................................................
Patch Set 16:
(1 comment)
https://gerrit.ovirt.org/#/c/42035/16/vdsm/virt/sampling.py File vdsm/virt/sampling.py:
Line 246: """ Line 247: super(HostSample, self).__init__() Line 248: self.interfaces = _get_interfaces_and_samples() Line 249: self.pidcpu = PidCpuSample(pid) Line 250: self.ncpus = max(os.sysconf('SC_NPROCESSORS_ONLN'), 1) can NPROCESSORS_ONLN ever be less than 1? Line 251: self.totcpu = TotalCpuSample() Line 252: meminfo = utils.readMemInfo() Line 253: freeOrCached = (meminfo['MemFree'] + Line 254: meminfo['Cached'] + meminfo['Buffers'])