[libvirt] [PATCH 10/10] nodeinfo: Calculate present and online CPUs only once

Peter Krempa pkrempa at redhat.com
Mon Jul 20 14:13:05 UTC 2015


On Mon, Jul 20, 2015 at 15:59:02 +0200, Andrea Bolognani wrote:
> Move the calls to the respective functions from virNodeParseNode(),
> which is executed once for every NUMA node, to
> linuxNodeInfoCPUPopulate(), which is executed just once per host.
> ---
>  src/nodeinfo.c | 49 +++++++++++++++++++++++++++++--------------------
>  1 file changed, 29 insertions(+), 20 deletions(-)
> 

ACK, although rather than patching up nodeinfo.c we should really
refactor it since it's a terrible mess.

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150720/fa7d204b/attachment-0001.sig>


More information about the libvir-list mailing list