Re: [PATCH] node_memory: Improve the docs

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

 



On 24.09.2012 17:10, Osier Yang wrote:
> To declare that it's not recommended to use the tuning API while
> the outside tuning program (such as ksmtuned under Linux) is running.
> ---
>  src/libvirt.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index 0cbcfbf..43591c0 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -6794,6 +6794,12 @@ error:
>   * @flags: extra flags; not used yet, so callers should always pass 0
>   *
>   * Change all or a subset of the node memory tunables.
> + *
> + * Note that it's not recommended to use this function while the
> + * outside tuning program is running (such as ksmtuned under Linux),
> + * as they could change the tunables in parallel, which could cause
> + * conflicts.
> + *
>   * This function may require privileged access to the hypervisor.
>   *
>   * Returns 0 in case of success, -1 in case of failure.
> 

ACK.

Is there something we can do to protect such behavior meanwhile?

Michal

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