From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kvyv7-00062P-3L for qemu-devel@nongnu.org; Fri, 31 Oct 2008 14:40:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kvyv5-000621-M5 for qemu-devel@nongnu.org; Fri, 31 Oct 2008 14:40:28 -0400 Received: from [199.232.76.173] (port=54895 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvyv5-00061y-Hc for qemu-devel@nongnu.org; Fri, 31 Oct 2008 14:40:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:57258 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kvyv5-0006uP-Fg for qemu-devel@nongnu.org; Fri, 31 Oct 2008 14:40:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kvyv4-0007bD-Nb for qemu-devel@nongnu.org; Fri, 31 Oct 2008 18:40:26 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kvyv4-0007b4-A3 for qemu-devel@nongnu.org; Fri, 31 Oct 2008 18:40:26 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 31 Oct 2008 18:40:26 +0000 Subject: [Qemu-devel] [5578] Increase default IO timeout from 10ms to 5s Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5578 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5578 Author: aliguori Date: 2008-10-31 18:40:25 +0000 (Fri, 31 Oct 2008) Log Message: ----------- Increase default IO timeout from 10ms to 5s With the recent changes to the main loop, we no longer have unconditional polling. This means we can now sleep in select() for much longer than we previously did. This patch increases our select() sleep time from 10ms to 5s which is effectively unlimited since we're going to wake up sooner than that in almost all circumstances. With this patch, I see the number of wake-ups with an idle dynamic ticks guest drop from 80 per second to about 15 times per second. Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/vl.c Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-31 18:07:17 UTC (rev 5577) +++ trunk/vl.c 2008-10-31 18:40:25 UTC (rev 5578) @@ -8182,7 +8182,7 @@ timeout = 0; } } else { - timeout = 10; + timeout = 5000; } } else { timeout = 0; @@ -8192,7 +8192,7 @@ ret = EXCP_INTERRUPT; break; } - timeout = 10; + timeout = 5000; } #ifdef CONFIG_PROFILER ti = profile_getclock();