qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v4 00/10] main-loop: switch to g_poll(3) on POSI


From: Christian Borntraeger
Subject: Re: [Qemu-devel] [PATCH v4 00/10] main-loop: switch to g_poll(3) on POSIX hosts
Date: Thu, 21 Feb 2013 14:17:14 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 20/02/13 11:28, Stefan Hajnoczi wrote:
> Amos Kong <address@hidden> reported that file descriptors numbered higher
> than 1024 could crash QEMU.  This is due to the fixed size of the fd_set type
> used for select(2) event polling.
> 

Good to see somebody working on that.
We have just faced this problem on s390 after we have experimentally enabled 
ioeventfd
for virtio-ccw. We have several scenarios were we want > 600 devices for the 
guest
and the select loops then fails horribly because we exceed the 1024 fd barrier.

So this looks like it could become a bugfix for that problem.

In terms of scalability it is probably better to have multiple threads that 
poll on their 
fds, instead of having one i/o thread. 

Still this looks like a good thing to do.

Christian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]