From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH 2/10] Allow the monitor to be suspended during non-blocking op Date: Thu, 11 Sep 2008 12:59:56 +0100 Message-ID: <20080911115956.GB16427@shareable.org> References: <1220989802-13706-1-git-send-email-aliguori@us.ibm.com> <1220989802-13706-3-git-send-email-aliguori@us.ibm.com> <48C76EB1.6040906@qumranet.com> <20080910100520.GE2662@redhat.com> <48C7AB7C.30407@qumranet.com> <20080910155831.GA30342@shareable.org> <48C8F00A.90900@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Chris Wright , Uri Lublin , Anthony Liguori , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from mail2.shareable.org ([80.68.89.115]:34429 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850AbYIKMAL (ORCPT ); Thu, 11 Sep 2008 08:00:11 -0400 Content-Disposition: inline In-Reply-To: <48C8F00A.90900@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > Jamie Lokier wrote: > > Avi Kivity wrote: > > > >> (logically we would copy all of the data of all block devices, but > >> that's not very practical, so we assume shared storage). > >> > > > > Speaking of that, if the guest RAM were a memory-mapped file, couldn't > > that use shared storage too? > > You would need a clustered filesystem that supports coherent mmap()s. Yes, something like GFS. > > You'd have to be careful: it would need a distributed filesystem with > > coherent mappings (i.e. not NFS), but they do exist. > > > > I'm guessing that the bulk of time spent in migration/checkpointing is > > saving the RAM image. Using a memory-mapped file on shared storage > > for RAM might make that faster. (Or slower!). > > > The memory needs to be transferred anyway, so total time would not > change. You could start running on the target sooner, though. Actually the memory doesn't need to be tranferred. Only actively used pages need to be. If you have an 8GB guest, 7.75GB of which is the guest's filesystem cache from something you did earlier and is no longer used, you just need to transfer 250MB and it can continue running on the target. -- Jamie