]> git.ipfire.org Git - thirdparty/libvirt.git/commit
init: raise default system aio limits
authorEric Blake <eblake@redhat.com>
Tue, 4 Oct 2011 15:44:25 +0000 (09:44 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 5 Oct 2011 20:49:35 +0000 (14:49 -0600)
commit5298551e07a9839c046e0987b325e03f8ba801e5
tree469a895c295efb4213cc1340a0d3f78bf9f9fb2e
parent892719f6574aa153d78c43061bc8e303eb5fbc03
init: raise default system aio limits

https://bugzilla.redhat.com/show_bug.cgi?id=740899 documents that
if qemu uses aio=native for its disks, then it consumes 128 aio
requests per disk.  On a host with multiple guests, this can quickly
run out of kernel aio requests with the default aio-max-nr of
65536.  Kernel developers have confirmed that there is no up-front
cost to raising this limit (a larger limit merely implies that more
aio requests can be issued in parallel, which in turn will result
in more kernel memory allocation, only if the system really does use
that many requests).  Since the system default limit prevents 256
disks, which is well within libvirt's current scalability, this
patch installs a file to raise the limit and document it in case a
system administrator has further cause to tune the limit.  The
install only works on platforms new enough to source /etc/sysctl.d/*
alongside /etc/sysctl.conf (F14 and RHEL 6).

* daemon/libvirtd.sysctl: New file.
* daemon/Makefile.am (EXTRA_DIST): Ship it.
(install-init, uninstall-init): Install it.
* libvirt.spec.in (%files): Include it in rpm.
daemon/Makefile.am
daemon/libvirtd.sysctl [new file with mode: 0644]
libvirt.spec.in