Re: [PATCH 1/4] numatune: Define XML schema and add docs

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

 



于 2011年05月12日 18:22, Osier Yang 写道:
> Example of numatune XML:
> 
>    <numatune>
>      <memory model="interleave" nodeset="+0-4,8-12"/>
>    </numatune>
> ---
>   docs/formatdomain.html.in |   14 ++++++++++++++
>   docs/schemas/domain.rng   |   25 +++++++++++++++++++++++++
>   2 files changed, 39 insertions(+), 0 deletions(-)
> 
> diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
> index dcfcd94..f6ab621 100644
> --- a/docs/formatdomain.html.in
> +++ b/docs/formatdomain.html.in
> @@ -288,6 +288,9 @@
>       &lt;min_guarantee&gt;65536&lt;/min_guarantee&gt;
>     &lt;/memtune&gt;
>     &lt;vcpu cpuset="1-4,^3,6" current="1"&gt;2&lt;/vcpu&gt;
> +&lt;numatune&gt;
> +&lt;memory model="strict" nodeset="1,2,!3-6"&gt;
> +&lt;/numatune&gt;
>     ...</pre>
> 
>       <dl>
> @@ -366,6 +369,17 @@
>           the OS provided defaults. NB, 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.</dd>
> +<dt><code>numatune</code></dt>
> +<dd>  The optional<code>numatune</code>  element provides details of
> +        how to tune the performance of a NUMA host via controlling NUMA policy for
> +        domain process. NB, only supported by QEMU driver.
> +<dt><code>memory</code></dt>
> +<dd>  The optional<code>memory</code>  element specify how to allocate memory
> +        for the domain process on a NUMA host. It contains two attributes,
> +        attribute<code>model</code>  is either 'interleave', 'strict', or 'preferred'.
> +        attribute<code>nodeset</code>  specifies the NUMA nodes, it can be specified as
> +        25 or 12-15 or 1,3,5-7 or +6-10 or 1-7,!3-5 or !+6-10. NB, if<code>model</code>
> +        is "preferred",<code>nodeset</code>  only accepts single node.</dd>

As Igor pointed out, will add version information when do pushing once
the patch is fine.

Regards
Osier

--
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]