Re: [PATCH 5/7] qemu_cgroup: Introduce cgroup functions for IOThreads

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

 



On 09/03/2014 06:15 PM, John Ferlan wrote:
> In order to support cpuset setting, introduce qemuSetupCgroupIOThreadsPin
> and qemuSetupCgroupForIOThreads to mimic the existing Vcpu API's.
> 
> These will support having an 'iotrhreadpin' element in the 'cpuset' in
> order to pin named IOThreads to specific CPU's. The IOThread pin names
> will follow the IOThread naming scheme starting at 1 (eg "iothread1")
> up through an including the def->iothreads value.
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/qemu/qemu_cgroup.c | 104 +++++++++++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_cgroup.h |   5 +++
>  2 files changed, 109 insertions(+)
> 

>  
>  int
> +qemuSetupCgroupForIOThreads(virDomainObjPtr vm)
> +{

...

> +    }
> +
> +    for (i = 0; i < priv->niothreadpids; i++) {
> +        /* IOThreads are numbered 1..n, although the array is 0..n-1,
> +         * so we will laccount for that here

s/laccount/account/

> +         */
> +        if (virCgroupNewIOThread(priv->cgroup, i+1, true, &cgroup_iothread) < 0)
> +            goto cleanup;
> +
> +        /* move the thread for iothread to sub dir */

Jan


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]