]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Increase default task limit for libvirtd
authorJim Fehlig <jfehlig@suse.com>
Wed, 19 Apr 2017 18:54:33 +0000 (12:54 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 20 Apr 2017 15:13:34 +0000 (09:13 -0600)
commit6b3fb86b391da731d1a0667c35a8e9f8b5c1d6c5
treead4627cd30fd3a5f6199d2a84c2c9a3675fcb833
parent234ac4e18db3a3acb7d8e792260ec0dabed7c36d
Increase default task limit for libvirtd

libvirtd can spawn threads/tasks when creating new domains for
some hypervisors such as Xen's libxl driver, quickly reaching
the cgroups pids controller default TasksMax setting of 512. When
the limit is reached, attempting to create additional domains
results in an error from the cgroups pids controller, e.g.

kernel: [71282.213347] cgroup: fork rejected by pids controller in
/system.slice/libvirtd.service

Depending on domain type and configuration, anywhere from 4-7
threads/tasks may be created by libxl when starting a domain.
In order to support 4096 domains, similar to commit 27cd763500,
increase the TasksMax setting in libvirtd.service to
4096 * 8 = 32768 tasks.
daemon/libvirtd.service.in