<div dir="ltr">if I mount through guestfs library in python or guestfish, the same condition happenes?<div><br></div><div>I mean the insane number of layers and the performance</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-31 16:52 GMT+08:00 Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jul 31, 2017 at 09:49:00AM +0100, Richard W.M. Jones wrote:<br>
> On Mon, Jul 31, 2017 at 12:20:10PM +0800, lampahome wrote:<br>
> > I mount the disk.qcow2 on the /home/test/, and create a 50GB file.<br>
><br>
> Mount the disk how?<br>
<br>
</span>OK, subject says using guestmount.<br>
<br>
I'm surprised the slowdown isn't more than 95%.  It's using FUSE which<br>
goes through an insane number of layers, see the "Update" section in<br>
this post:<br>
<br>
  <a href="https://rwmj.wordpress.com/2009/10/30/fuse-support-for-libguestfs/" rel="noreferrer" target="_blank">https://rwmj.wordpress.com/<wbr>2009/10/30/fuse-support-for-<wbr>libguestfs/</a><br>
<span class=""><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~<wbr>rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
</span>libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" rel="noreferrer" target="_blank">http://libguestfs.org</a><br>
</blockquote></div><br></div>