From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtDEQ-0003dT-Ov for qemu-devel@nongnu.org; Mon, 05 May 2008 22:48:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtDEL-0003dG-CP for qemu-devel@nongnu.org; Mon, 05 May 2008 22:48:41 -0400 Received: from [199.232.76.173] (port=46724 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtDEL-0003dD-7q for qemu-devel@nongnu.org; Mon, 05 May 2008 22:48:37 -0400 Received: from wx-out-0506.google.com ([66.249.82.232]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JtDEL-0000e1-Dr for qemu-devel@nongnu.org; Mon, 05 May 2008 22:48:37 -0400 Received: by wx-out-0506.google.com with SMTP id h29so367725wxd.4 for ; Mon, 05 May 2008 19:48:34 -0700 (PDT) Message-ID: <481FC6FF.3060802@codemonkey.ws> Date: Mon, 05 May 2008 21:48:31 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [4341] qemu: generate signals on tap I/O References: <481F84F3.6060505@flac.kalibalik.dk> <481F86F3.4080007@aurel32.net> <481F8D57.40500@flac.kalibalik.dk> <481F8DE5.9040905@codemonkey.ws> <481F9449.6040602@flac.kalibalik.dk> In-Reply-To: <481F9449.6040602@flac.kalibalik.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anders Cc: qemu-devel@nongnu.org Anders wrote: > Anthony Liguori wrote: >> You're seeing improvement with normal QEMU? Can you please post a >> description of what you're seeing improve with SIGIO. SIGIO should >> really only slow things down. >> > > I found this issue in KVM. I have not timed in QEMU, but the issue > seemed generic, so I posted it upstream. Right, this was an artifact of how KVM handled select. It's not generic at all. > My usecase was a new VNC connection delaying until the next timer tick > (which is a really long time in some KVM configurations). > > The improvement is from running the select() immediately, rather than > waiting around for a timer to expire. In KVM today, select() is in it's own thread so it will service IO immediately. This makes SIGIO unnecessary (not quite correct yet but will be very soon). Regards, Anthony Liguori > Thanks, > Anders. >