[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] posix-aio-compat: fix latency issues
From: |
Avi Kivity |
Subject: |
Re: [Qemu-devel] [PATCH] posix-aio-compat: fix latency issues |
Date: |
Mon, 08 Aug 2011 16:26:25 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 |
On 08/08/2011 04:21 PM, Frediano Ziglio wrote:
>
> The entire qemu process may be affined to a subset of the host cpus; we
> don't want to break that.
>
> For example:
>
> taskset 0xf0 qemu ....
> (qemu) info cpus
> <pin individual vcpu threads to host cpus>
>
>
Just call sched_getaffinity at program start, save to a global
variable and then set this affinity for io threads.
This affinity may change later on.
I didn't use affinity that much but from manual it seems that if you
own process you can set affinity as you like.
IMHO this patch introduce a delay in io thread creation due to posting
thread creation to another thread just to set different affinity.
It does. But aio threads have a long life, so this happens very rarely.
--
error compiling committee.c: too many arguments to function