qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [BUG] Regression of exec migration
@ 2009-08-27  9:19 Pierre Riteau
  2009-08-27 14:13 ` Anthony Liguori
  0 siblings, 1 reply; 10+ messages in thread
From: Pierre Riteau @ 2009-08-27  9:19 UTC (permalink / raw)
  To: qemu-devel, Chris Lalancette

[Sorry Chris, resending without the giant attachments.]

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?).

Linked below 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.

http://dl.getdropbox.com/u/1389459/qemu-devel/block.log
http://dl.getdropbox.com/u/1389459/qemu-devel/nonblock.log

-- 
Pierre Riteau -- http://perso.univ-rennes1.fr/pierre.riteau/

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <B2D4B7D8-CF34-4E6D-9772-266E5B1A75C8@irisa.fr>]

end of thread, other threads:[~2009-09-01 20:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [not found] <B2D4B7D8-CF34-4E6D-9772-266E5B1A75C8@irisa.fr>
2009-08-27 13:31 ` Chris Lalancette

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).