libvirt/daemon
Eric Blake 3d0130cbcc cpumap: optimize for clients that don't need online count
It turns out that calling virNodeGetCPUMap(conn, NULL, NULL, 0)
is both useful, and with Viktor's patches, common enough to
optimize.  Since this interface hasn't been released yet, we
can change the RPC call.

A bit more background on the optimization - learning the cpu count
is a single file read (/sys/devices/system/cpu/possible), but
learning the number of online cpus can possibly trigger a file
read per cpu, depending on the age of the kernel, and all wasted
if the caller passed NULL for both arguments.

* src/nodeinfo.c (nodeGetCPUMap): Avoid bitmap when not needed.
* src/remote/remote_protocol.x (remote_node_get_cpu_map_args):
Supply two separate flags for needed arguments.
* src/remote/remote_driver.c (remoteNodeGetCPUMap): Update
caller.
* daemon/remote.c (remoteDispatchNodeGetCPUMap): Likewise.
* src/remote_protocol-structs: Regenerate.
2012-11-01 20:36:01 -06:00
..
libvirtd-config.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
libvirtd-config.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
libvirtd.aug Fix mistakes in augeas lens 2012-05-28 11:00:01 +01:00
libvirtd.c docs: libvirtd no longer uses abstract namespace 2012-10-31 10:12:53 -06:00
libvirtd.conf Various typos and misspellings 2012-10-12 00:03:43 +02:00
libvirtd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
libvirtd.init.in daemon: Remove deprecated HAL from init script dependencies 2012-03-02 16:32:37 +01:00
libvirtd.logrotate.in Add logrotate support for libvirtd.log 2011-03-04 22:43:55 +08:00
libvirtd.lxc.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.pod.in Update paths in man page to reflect libvirtd code 2012-08-15 21:40:39 +08:00
libvirtd.policy.in daemon: Make the default PolicyKit policy auth_admin_keep. 2012-11-01 13:17:26 +00:00
libvirtd.qemu.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.sasl daemon: Avoid 'Could not find keytab file' in syslog 2012-10-21 13:21:07 -04:00
libvirtd.service.in systemd: start libvirtd after network 2012-07-10 08:53:40 -06:00
libvirtd.sysconf daemon: Allow overriding NOFILES ulimit for the daemon as well 2012-02-01 16:04:30 +01:00
libvirtd.sysctl init: raise default system aio limits 2011-10-05 14:49:35 -06:00
libvirtd.uml.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.upstart daemon: Allow overriding NOFILES ulimit for the daemon as well 2012-02-01 16:04:30 +01:00
Makefile.am build: check for pod errors 2012-10-26 15:13:39 -06:00
remote.c cpumap: optimize for clients that don't need online count 2012-11-01 20:36:01 -06:00
remote.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
stream.c Various typos and misspellings 2012-10-12 00:03:43 +02:00
stream.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
test_libvirtd.aug.in Autogenerate augeas test case from default config files 2012-05-28 11:07:12 +01:00
THREADS.txt maint: use consistent file name for threading notes 2011-05-31 13:54:45 -06:00