Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqWxV-0001M8-Ct for qemu-devel@nongnu.org; Wed, 23 Sep 2009 14:52:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqWxQ-0001Gq-Br for qemu-devel@nongnu.org; Wed, 23 Sep 2009 14:52:57 -0400 Received: from [199.232.76.173] (port=58721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqWxQ-0001Gg-7E for qemu-devel@nongnu.org; Wed, 23 Sep 2009 14:52:52 -0400 Received: from mail.corp.accelance.fr ([213.162.48.15]:52011) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqWxP-0006Zy-OJ for qemu-devel@nongnu.org; Wed, 23 Sep 2009 14:52:51 -0400 References: <1253267801.9686.159.camel@bcm-portable> <1253721904.16114.101.camel@bcm-portable> <20090923181945.GB23822@shareable.org> Message-Id: <7F8DD534-BEFE-4D77-B1AC-A24A0403CCAF@accelance.fr> From: Ben Accelance In-Reply-To: <20090923181945.GB23822@shareable.org> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 7A341) Subject: Re: [Qemu-devel] Qemu savevm and CPU soft lockup Date: Wed, 23 Sep 2009 20:52:40 +0200 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: "qemu-devel@nongnu.org" Le 23 sept. 2009 =C3=A0 20:19, Jamie Lokier a = =C3=A9crit : > Benjamin Cleyet-Marrel wrote: >> >> Hi, >> After further investigation, I figured out that when issuing a =20 >> savevm >> command >> the entire qemu process gets stuck on IO wait. >> I can't issue any other commands on the monitor the process is =20 >> shown >> as D and the guest is in softlockup state. >> Looking at the way migrate (and the -d for detach I presume) is >> working I suppose the same behaviour would be expected from the =20 >> savevm >> function. >> A savevm -d so that the qemu process would not be freezed while =20 >> saving >> the data. >> Sorry if I am just talking non sense but my snapshot on iscsi =20 >> storage >> takes about 1 minutes. >> which means that my guest are down for a minute or so which is not >> ideal. > > This is normal savevm behaviour, and it is exactly the reason why > migrate-to-file is useful. I would not be surprised if savevm is > changed to use migrate-to-file internally at some point, but it does > not look like happening soon. > > You might avoid the guest softlockup state by stopping the guest > ("stop" command) before savevm, and "cont" afterwards? > > Or the guest might get just as confused, as the clock still advances. > > -- Jamie > > Thanks for this, at least it clarifies things. Now sorry for the =20 pain , but how do you migrate to a file and then how do you restore =20 from the file ? Thanks Cheers Benjamin Cleyet-Marrel=