[libvirt] [PATCHv3 2/4] qemu, lxc: Change host CPU number detection logic.

Eric Blake eblake at redhat.com
Thu Nov 15 15:54:15 UTC 2012


On 11/13/2012 05:54 AM, Viktor Mihajlovski wrote:
> The drivers for QEMU and LXC use virNodeGetInfo only to determine
> the number of host CPUs. On Linux hosts nodeGetCPUCount has less
> overhead.
> ---
> V3 Changes:
> Commit message wording, since Peter's fix, nodeGetInfo will return
> correct/consistent topology. Still, this here is more efficient.

Indeed - parsing cpu/present (when available) is much faster than
parsing each of cpu/cpuNN/online.

ACK and pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121115/6559a2b8/attachment-0001.sig>


More information about the libvir-list mailing list