]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: document correct cpu shares limits with both cgroups v1 and v2
authorPavel Hrdina <phrdina@redhat.com>
Tue, 17 Jan 2023 09:33:22 +0000 (10:33 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 17 Jan 2023 09:58:07 +0000 (10:58 +0100)
The limits are different with cgroups v1 and v2 but our XML
documentation and virsh manpage mentioned only cgroups v1 limits without
explicitly saying it only applies to cgroups v1.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
docs/formatdomain.rst
docs/manpages/virsh.rst

index 490a954745304719ba535c59474fafffdb3ed9c3..8fc8aeb928fd16861b4918091fd639b035f69bc2 100644 (file)
@@ -849,7 +849,7 @@ CPU Tuning
    There is no unit for the value, it's a relative measure based on the setting
    of other VM, e.g. A VM configured with value 2048 will get twice as much CPU
    time as a VM configured with value 1024. The value should be in range
-   [2, 262144]. :since:`Since 0.9.0`
+   [2, 262144] using cgroups v1, [1, 10000] using cgroups v2. :since:`Since 0.9.0`
 ``period``
    The optional ``period`` element specifies the enforcement interval (unit:
    microseconds). Within ``period``, each vCPU of the domain will not be allowed
index 88b7fa1da825088a944abf89fe974eeffc548f52..d5b614dc0398776a30cfc1d100da997b5efd2745 100644 (file)
@@ -4054,7 +4054,8 @@ If *--config* is specified, affect the next start of a persistent guest.
 If *--current* is specified, it is equivalent to either *--live* or
 *--config*, depending on the current state of the guest.
 
-``Note``: The cpu_shares parameter has a valid value range of 2-262144.
+``Note``: The cpu_shares parameter has a valid value range of 2-262144
+with cgroups v1, 1-10000 with cgroups v2.
 
 ``Note``: The weight and cap parameters are defined only for the
 XEN_CREDIT scheduler.