<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span class="Apple-style-span" style="font-family: Helvetica, 'Microsoft Yahei', verdana; "><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">Hi guys</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; I have met some troubles when I want to evaluate the glusterfs performance with small file workload.</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; 1: What kind of benchmark should I use to test the small file operation ?</p></span><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp; As we all know, we can use iozone tools to test the large file operation, while for the sake of memory cache,&nbsp;</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp;if we testing small file operation with iozone, the result will not correct. Then, what kind of benchmark should&nbsp;</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp;I use?&nbsp;</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp;How about "dd oflag=direct"?</p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 9pt;">&nbsp; &nbsp;2: How to simulate the the large scale clients&nbsp;</span><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">concurrence</span><span class="Apple-style-span" style="font-size: 9pt;">&nbsp;accessing operation?</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 9pt;">&nbsp; &nbsp; &nbsp; &nbsp;When we use iozone, there is a cluster can help us doing&nbsp;</span><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">multiple clients testing. While, if the number of&nbsp;</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; &nbsp; &nbsp;clients is about hounds , it's difficult for us to deploy so many clients at the same time? Could we</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; &nbsp; &nbsp;deploy&nbsp;multiple processes on one client at the same time to simulate multiple clients concurrence?&nbsp;</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px; ">&nbsp; &nbsp; 3: For the small file operation, how to increase the workload of a single client?&nbsp;</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; 4: From the glusterfs document, I get that in order to avoid the cache&nbsp;coherency&nbsp;there is no write cache feature.</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; &nbsp; &nbsp; Does it mean that there is no inference of memory cache for small file write performance of glusterfs?</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; &nbsp; &nbsp; So, when we testing glusterfs with:</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; &nbsp; &nbsp; "dd if=/dev/zero of=test.img bs=10k count=1 oflag=direct" and</span></font></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; &nbsp; &nbsp; "</span></font><span class="Apple-style-span" style="font-family: simsun, arial; font-size: 12px; line-height: 17px; ">dd if=/dev/zero of=test.img bs=10k count=1</span><span class="Apple-style-span" style="font-family: simsun, arial; font-size: 12px; line-height: 17px; ">"</span></p><p style="margin-top: 5px; margin-bottom: 5px; "><span class="Apple-style-span" style="font-family: simsun, arial; font-size: 12px; line-height: 17px; ">&nbsp; &nbsp; &nbsp; &nbsp; These two commands should get the same write performance.</span></p><p style="margin-top: 5px; margin-bottom: 5px; "><span class="Apple-style-span" style="font-family: simsun, arial; font-size: 12px; line-height: 17px; ">&nbsp; &nbsp; &nbsp; &nbsp; While when I do this, the results of these two commands are not same each other. and the gap is big.</span></p><p style="margin-top: 5px; margin-bottom: 5px; "><span class="Apple-style-span" style="font-family: simsun, arial; font-size: 12px; line-height: 17px; ">&nbsp; &nbsp; &nbsp; &nbsp; How to explain?</span></p><p style="margin-top: 5px; margin-bottom: 5px; "><font class="Apple-style-span" face="simsun, arial"><span class="Apple-style-span" style="font-size: 12px; line-height: 17px;">&nbsp; &nbsp; 5: How to tuning for the small file operation on glusterfs?</span></font></p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp;&nbsp;</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp; If you know, please let me know, many thanks</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp; Best Regards</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp; &nbsp; &nbsp; Lixin Niu</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp;&nbsp;&nbsp;&nbsp;</p><p style="font-family: simsun, arial; margin-top: 5px; margin-bottom: 5px; font-size: 9pt; ">&nbsp; &nbsp;</p></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>