<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>thank you Mr Rich.</span></div><div><span>I will try and give some feedbacks. :)<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Richard W.M. Jones <rjones@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> THO HUYNH <feeliwood@yahoo.com>; libguestfs@redhat.com <br><b><span style="font-weight: bold;">Cc:</span></b> libguestfs@redhat.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, 7 March 2012, 21:21<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: copy file from host to live guest
 (speed)<br> </font> </div> <br>On Wed, Mar 07, 2012 at 05:57:45AM -0800, THO HUYNH wrote:<br>> I tried to copy file from host to the running guest after I had<br>> mounted the guest but it`s seemed slow.  The speed is about 6-8<br>> MB/s. I thought it would be the same with real hard drive (about<br>> 20MB/s).<br><br>Is this using 'guestmount --live'?<br><br>Unfortunately FUSE is inefficient, particularly the way we implement<br>it in guestmount.<br><br>If you use 'guestfish --live' and the 'upload' command, you should be<br>able to get full disk speed easily.<br><br>> If I have more than one guest, will they share the 6-8 MB bandwidth ?<br><br>If the guest storage is on different spindles, then you should be able<br>to max out each spindle (using guestfish, not guestmount).  If they<br>all share the same disk spindle, then of course it will share the disk<br>bandwidth.<br><br>> Are there anyway to improve the performance
 ?<br><br>Definitely use guestfish, or the libguestfs API directly.<br><br>If you want to copy in large amounts of data, then *sometimes* it can<br>be advantageous to prepare an ISO containing the data in advance:<br><br><a href="http://libguestfs.org/guestfs.3.html#uploading" target="_blank">http://libguestfs.org/guestfs.3.html#uploading</a><br><br>but you should measure it because it might not actually be faster,<br>since uploads use virtio-serial which is very fast.<br><br>Rich.<br><br>-- <br>Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/%7Erjones" target="_blank">http://people.redhat.com/~rjones</a><br>virt-top is 'top' for virtual machines.  Tiny program with many<br>powerful monitoring features, net stats, disk stats, logging, etc.<br><a href="http://et.redhat.com/%7Erjones/virt-top" target="_blank">http://et.redhat.com/~rjones/virt-top</a><br><br><br> </div> </div>  </div></body></html>