Bug 609261 - Exec outgoing migration is too slow
Summary: Exec outgoing migration is too slow
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
(Show other bugs)
Version: 6.0
Hardware: All Linux
Target Milestone: rc
: ---
Assignee: Karen Noel
QA Contact: Virtualization Bugs
: 591366 (view as bug list)
Depends On:
Blocks: 580953
TreeView+ depends on / blocked
Reported: 2010-06-29 19:18 UTC by Juan Quintela
Modified: 2013-01-09 22:47 UTC (History)
6 users (show)

Fixed In Version: qemu-kvm-
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-20 10:31:15 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Juan Quintela 2010-06-29 19:18:26 UTC
Description of problem:

Exec migration is very slow (writes at the speed of 1.5MB/s on my hardware).

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. start qemu
2. migrate in command line with something like:
   migrate -d "exec: dd of=/tmp/kkk"
Actual results:

very low write speed (~1MB/s)

Expected results:

fastest write (~30MB/s at least)

Additional info:

Comment 1 Juan Quintela 2010-06-29 19:20:50 UTC
Problem is that code is using double buffering (using FILE on top of QEMUFile abstraction).  With a hack to change fwrite() to write() speeds got back to normal.  Will fix things properly.

Comment 3 Avi Kivity 2010-07-07 17:08:45 UTC
Real problem is that the small pipe buffers fill up easily, and QEMUFileBuffered clams up until 100 ms pass.

Fix is to let migration know we're ready when the pipes come back.

Comment 8 Mike Cao 2010-07-20 10:29:29 UTC
Verified in qemu-kvm- ,Reproduced in Reproduce in qemu-kvm-

1. start qemu-kvm
2. {"execute":"migrate","arguments":{"uri":"dd of=/home/tt"}}

Actual Results:
the write speed is 18MB/s ,the read speed is 91Mb/s

The bug has already been fixed.

Comment 9 Mike Cao 2010-07-20 10:30:50 UTC
According to comment #8 ,close this issue.

Comment 10 Avi Kivity 2010-11-18 10:25:21 UTC
*** Bug 591366 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.