From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIE7U-0006ch-6X for qemu-devel@nongnu.org; Wed, 20 Mar 2013 04:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIE7S-0004ip-FF for qemu-devel@nongnu.org; Wed, 20 Mar 2013 04:11:36 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:52764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIE7S-0004ii-8d for qemu-devel@nongnu.org; Wed, 20 Mar 2013 04:11:34 -0400 Received: by mail-we0-f170.google.com with SMTP id z53so1130592wey.29 for ; Wed, 20 Mar 2013 01:11:33 -0700 (PDT) Date: Wed, 20 Mar 2013 09:11:30 +0100 From: Stefan Hajnoczi Message-ID: <20130320081130.GA5953@stefanha-thinkpad.muc.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] kvm suspend performance List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Knauth Cc: qemu-devel@nongnu.org On Tue, Mar 19, 2013 at 05:24:59PM +0100, Thomas Knauth wrote: > lately I've been playing around with qemu's/kvm's suspend (to disk) and > resume. My initial expectation was that both operations are I/O bound. So > it surprised me to see that suspend to disk seems to be CPU-bound. > Suspending a VM with 1.5 GB memory takes 55 seconds. This works out to less > than 30 MB/s. Again, I was expecting to be I/O bound and reach 100 MB/s > (and more). I am talking to qemu/kvm via libvirt. Not sure if this matters. > > I am looking for a hint what the issue could be here. Hopefully with > pointers to the (offending) code. Hi Thomas, Please provide more details about the issue: Which QEMU or libvirt command are you using to suspend the guest to disk? Why do you say it is CPU-bound? Did you use a tool like vmstat or simply because it does 30 MB/s instead of the expected 100 MB/s? Which versions of libvirt and QEMU are you using? Stefan