From mboxrd@z Thu Jan 1 00:00:00 1970 From: Umesh Deshapnde Subject: [RFC PATCH 0/2] A separate thread for VM migration Date: Fri, 22 Jul 2011 15:58:14 -0400 Message-ID: Cc: Umesh Deshpande To: kvm@vger.kernel.org, qemu-devel@nongnu.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org From: Umesh Deshpande Following patch deals with VCPU and iothread starvation during the migration of a guest. Currently the iothread is responsible for performing the guest migration. It holds qemu_mutex during the migration and doesn't allow VCPU to enter the qemu mode and delays its return to the guest. The guest migration, executed as an iohandler also delays the execution of other iohandlers. In the following patch series, the migration has been moved to a separate thread to reduce the qemu_mutex contention and iohandler starvation. Umesh Deshpande (2): new clock for migration routine separate thread for VM migration arch_init.c | 14 ++++++++++-- buffered_file.c | 12 ++++++---- exec.c | 4 +++ migration-tcp.c | 18 ++++++++-------- migration-unix.c | 7 ++--- migration.c | 59 ++++++++++++++++++++++++++++++----------------------- migration.h | 4 +- qemu-timer.c | 29 ++++++++++++++++++++++++- qemu-timer.h | 3 ++ 9 files changed, 99 insertions(+), 51 deletions(-) -- 1.7.4.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkMJL-0007EF-DW for qemu-devel@nongnu.org; Fri, 22 Jul 2011 16:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkMJK-0001Lj-GE for qemu-devel@nongnu.org; Fri, 22 Jul 2011 16:27:03 -0400 Received: from osnet1.cs.binghamton.edu ([128.226.119.118]:50268 helo=localhost.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkMJK-0001LX-A6 for qemu-devel@nongnu.org; Fri, 22 Jul 2011 16:27:02 -0400 From: Umesh Deshapnde Date: Fri, 22 Jul 2011 15:58:14 -0400 Message-Id: Subject: [Qemu-devel] [RFC PATCH 0/2] A separate thread for VM migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: Umesh Deshpande From: Umesh Deshpande Following patch deals with VCPU and iothread starvation during the migration of a guest. Currently the iothread is responsible for performing the guest migration. It holds qemu_mutex during the migration and doesn't allow VCPU to enter the qemu mode and delays its return to the guest. The guest migration, executed as an iohandler also delays the execution of other iohandlers. In the following patch series, the migration has been moved to a separate thread to reduce the qemu_mutex contention and iohandler starvation. Umesh Deshpande (2): new clock for migration routine separate thread for VM migration arch_init.c | 14 ++++++++++-- buffered_file.c | 12 ++++++---- exec.c | 4 +++ migration-tcp.c | 18 ++++++++-------- migration-unix.c | 7 ++--- migration.c | 59 ++++++++++++++++++++++++++++++----------------------- migration.h | 4 +- qemu-timer.c | 29 ++++++++++++++++++++++++- qemu-timer.h | 3 ++ 9 files changed, 99 insertions(+), 51 deletions(-) -- 1.7.4.1