<html><body><div style="font-family: Arial; font-size: 10pt; color: #000000"><div>Hey David,</div><div><br></div><div>Can you provide the qemu command to run each of them? What's your gluster/disk/network layout look like?</div><div><br></div><div>Depending on your disk and network setup you may be hitting a bottleneck there that would prevent gfapi from performing at capacity. &nbsp;Lots of options here that could impact things.</div><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Dave Christianson" &lt;davidchristianson3@gmail.com&gt;<br><b>To: </b>gluster-users@gluster.org<br><b>Sent: </b>Thursday, April 3, 2014 6:05:51 AM<br><b>Subject: </b>[Gluster-users] No performance difference using libgfapi?<br><div><br></div><div dir="ltr">Good Morning,<div><br></div><div>In my earlier experience invoking a VM using qemu/libgfapi, I reported that it was noticeably faster than the same VM invoked from libvirt using a FUSE mount; however, this was erroneous as the qemu/libgfapi-invoked image was created using 2x the RAM and cpu's...</div><div><br></div><div>So, invoking the image using both methods using consistent specs of 2GB RAM and 2 cpu's, I attempted to check drive performance using the following commands:</div><div><br></div><div>(For regular FUSE mount I have the gluster volume mounted at /var/lib/libvirt/images.)</div><div><br></div><div>(For libgfapi I specify -disk file=gluster://gfs-00/gfsvol/tester1/img.)</div><div><br></div><div>Using libvirt/FUSE mount:</div><div>[root@tester1 ~]# hdparm -Tt /dev/vda1</div><div>/dev/vda1:</div><div>&nbsp;Timing cached reads: &nbsp; &nbsp;11346 MB in 2.00 seconds = 5681.63 MB/sec</div><div>&nbsp;Timing buffered disk reads: &nbsp; &nbsp;36 MB in 3.05 seconds = 11.80 MB/sec</div><div>[root@tester1 ~]# dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output<br></div><div>10240+0 records in</div><div>10240+0 records out</div><div>41943040 bytes (42MB) copied, 0.0646241 s, 649 MB/sec</div><div><br></div><div>Using qemu/libgfapi:<br></div><div><div>[root@tester1 ~]# hdparm -Tt /dev/vda1</div><div>/dev/vda1:</div><div>&nbsp;Timing cached reads: &nbsp; &nbsp;11998 MB in 2.00 seconds = 6008.57 MB/sec</div><div>&nbsp;Timing buffered disk reads: &nbsp; &nbsp;36 MB in 3.03 seconds = 11.89 MB/sec</div><div>[root@tester1 ~]# dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output<br></div><div>10240+0 records in</div><div>10240+0 records out</div><div>41943040 bytes (42MB) copied, 0.0621412 s, 675 MB/sec</div></div><div><br></div><div>Should I be seeing a bigger difference, or am I doing something wrong?&nbsp;</div><div><br></div><div>I'm also curious whether people have found that the performance difference is greater as the size of the gluster cluster scales up.</div><div><br></div><div>Thanks,</div><div>David</div><div><br></div></div><br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://supercolony.gluster.org/mailman/listinfo/gluster-users</div><div><br></div></div></body></html>