Bug 609261

Summary: Exec outgoing migration is too slow
Product: Red Hat Enterprise Linux 6 Reporter: Juan Quintela <quintela>
Component: qemu-kvmAssignee: Karen Noel <knoel>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 6.0CC: bcao, charles_duffy, llim, mkenneth, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.95.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-20 10:31:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 580953    

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

All.

How reproducible:
Allways.

Steps to Reproduce:
1. start qemu
2. migrate in command line with something like:
   migrate -d "exec: dd of=/tmp/kkk"
3.
  
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-0.12.1.2-2.96.el6 ,Reproduced in Reproduce in qemu-kvm-0.12.1.2-2.94.el6

Steps:
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. ***