Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWVTC-00066f-KU for qemu-devel@nongnu.org; Thu, 30 Jul 2009 09:14:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWVT7-0005z0-Kx for qemu-devel@nongnu.org; Thu, 30 Jul 2009 09:14:53 -0400 Received: from [199.232.76.173] (port=46608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWVT7-0005yl-FS for qemu-devel@nongnu.org; Thu, 30 Jul 2009 09:14:49 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:35439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWVT7-00059w-46 for qemu-devel@nongnu.org; Thu, 30 Jul 2009 09:14:49 -0400 Date: Thu, 30 Jul 2009 14:15:36 +0100 From: Stefano Stabellini Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: [Qemu-devel] [PATCH 0 of 4] vnc performance improvements v2 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, this small patch series introduces few important performance improvements in the vnc server: - the first patch is now the copyrect fix by Gerd; - the second patch adds a single timer to refresh the screen and update all the vnc clients, this way we call vga_hw_update only once in the timer handler instead of once per client connected; - the third patch removes the malloc'ed server surface from VncState and moves it to VncDisplay: this way we don't allocate a secondary surface per client connected but only one for all the possible clients; each vnc client still maintains its own dirty bitmap; - the forth patch introduces variable update intervals for the timer so that if there is small activity in the guest, or few framebuffer updates are requested by clients, we can slow down the refresh rate in the server and save precious resources. Compared to the previous version I added Gerd's CopyRect fix at the beginning of the series, and I updated the "single vnc server surface" patch to better handle CopyRect as well. My tests show that CopyRect is working now, but please let me know if you keep having problems. Cheers, Stefano Stabellini