Re: [PATCH v2 2/3] docs, schema, conf: Add support for setting scheduler parameters of guest threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/10/2015 08:35 AM, Martin Kletzander wrote:
> In order for QEMU vCPU (and other) threads to run with RT scheduler,
> libvirt needs to take care of that so QEMU doesn't have to run privileged.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1178986
> 

Might be nice to also show a sample XML usage in the commit message.

> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---

> +++ b/docs/formatdomain.html.in
> @@ -550,6 +550,8 @@
>      &lt;quota&gt;-1&lt;/quota&gt;
>      &lt;emulator_period&gt;1000000&lt;/emulator_period&gt;
>      &lt;emulator_quota&gt;-1&lt;/emulator_quota&gt;
> +    &lt;vcpusched vcpus='0-4,^3' scheduler='fifo' priority='1'/&gt;
> +    &lt;iothreadsched iothreads='2' scheduler='batch'/&gt;
>    &lt;/cputune&gt;
>    ...
>  &lt;/domain&gt;
> @@ -652,6 +654,20 @@
>          <span class="since">Only QEMU driver support since 0.10.0</span>
>        </dd>
> 
> +      <dt><code>vcpusched</code> and <code>iothreadsched</code></dt>
> +      <dd>
> +        The optional <code>vcpusched</code> elements specifie the scheduler
> +        (values <code>batch</code>, <code>idle</code>, <code>fifo</code>,
> +        <code>rr</code>) for particular vCPU/IOThread threads (based on
> +        <code>vcpus</code> and <code>iothreads</code>, leaving out
> +        <code>vcpus</code>/<code>iothreads</code> sets the default).
> +        For real-time schedulers (<code>fifo</code>, <code>rr</code>),
> +        priority must be specified as well (and is ignored for
> +        non-real-time ones). The value range for the priority depends
> +        on the host kernel (usually 1-99).
> +        <span class="since">Since 1.2.12</span>

1.2.13, actually.

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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]