[PATCH] BSD: implement nodeGetCPUStats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I had doubts how to implement that. Looks like the current
implementation is tied to Linux CPU metrics:

  user nice system idle iowait

That list is hardcoded into virsh-host.c. FreeBSD has a slightly
different set of metrics:

  user nice system intr idle

I.e. it's interrupt time instead of i/o time. I decided to go without
virsh-host.c modification and used VIR_NODE_CPU_STATS_UTILIZATION.

If you know better way of doing that, I'm open for suggestions.

Roman Bogorodskiy (1):
  BSD: implement nodeGetCPUStats

 src/nodeinfo.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

-- 
1.8.4.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]