qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Chris Lalancette <clalance@redhat.com>
To: Pierre Riteau <Pierre.Riteau@irisa.fr>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [BUG] Regression of exec migration
Date: Thu, 27 Aug 2009 15:31:12 +0200	[thread overview]
Message-ID: <4A968AA0.50708@redhat.com> (raw)
In-Reply-To: <B2D4B7D8-CF34-4E6D-9772-266E5B1A75C8@irisa.fr>

Pierre Riteau wrote:
> Commit 907500095851230a480b14bc852c4e49d32cb16d makes exec migration  
> much slower than before.
> I'm running the latest HEAD of qemu, on Debian Lenny 5.0.2.
> 
> I'm migrating a fully booted Linux VM (also running Lenny) with 128MB  
> of RAM to a file, using the following command: migrate "exec: cat >  
> vmimage". The resulting file has a size of 57MB (because we save only  
> what is allocated from the 128MB).
> With the current HEAD, it takes from 15 to 40 seconds (it's variable)  
> to perform the migration to the file.
> With commit 907500095851230a480b14bc852c4e49d32cb16d reverted (or just  
> commenting the "socket_set_nonblock(s->fd);" statement), it takes  
> about 3 seconds.
> 
> I did a little debugging and it appears that, when in non-blocking  
> mode, a write to the popen'ed process which fails with EAGAIN (because  
> cat is busy writing data on disk) will only be retried after 100 ms  
> (the next timer tick?).
> 
> Attached are two traces of qemu's output with DEBUG_BUFFERED_FILE  
> defined.
> I modified the dprintf macro to print the result of  
> qemu_get_clock(rt_clock) before the message.
> nonblock.log is with an unmodified HEAD while block.log has the  
> "socket_set_nonblock(s->fd);" statement commented.
> Notice the "backend not ready, freezing" messages when nonblock is used.

Hm, interesting, thanks for the report.  Let me try out a few things and get
back to you.

-- 
Chris Lalancette

       reply	other threads:[~2009-08-27 13:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <B2D4B7D8-CF34-4E6D-9772-266E5B1A75C8@irisa.fr>
2009-08-27 13:31 ` Chris Lalancette [this message]
2009-08-27  9:19 [Qemu-devel] [BUG] Regression of exec migration Pierre Riteau
2009-08-27 14:13 ` Anthony Liguori
2009-08-27 16:16   ` Pierre Riteau
2009-08-27 16:24     ` Anthony Liguori
2009-08-28 13:04       ` Pierre Riteau
2009-08-28 15:41         ` Anthony Liguori
2009-08-31 22:55           ` [Qemu-devel] " Charles Duffy
2009-09-01 11:57             ` Pierre Riteau
2009-09-01 20:37               ` Charles Duffy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A968AA0.50708@redhat.com \
    --to=clalance@redhat.com \
    --cc=Pierre.Riteau@irisa.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).