<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: &#23435;&#20307;; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19328"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Hello folks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>We test samba performance with local ext4 and glusterfs backends, it 
shows&nbsp;performance is very different.</DIV>
<DIV>The samba server has 4 1Gbps NICs and bond with mode 6, backend storage is 
raid0 with 12 SAS disks.</DIV>
<DIV>A LUN is created over all disks, make as EXT4 file system, and used&nbsp;as 
glusterfs brick.</DIV>
<DIV>&nbsp;</DIV>
<DIV>On&nbsp;the samba server, use dd&nbsp;test&nbsp;local ext4 and 
glusterfs,&nbsp;write bandwidth are 477MB/s and 357MB/s, details as 
follow.</DIV>
<DIV>When mount cifs on Centos 6.0, write bandwidth downgrade to 184MB/s and 
117MB/s, very different.</DIV>
<DIV>Using 4 win7 clients to test with SANergy/Iometer, cifs over ext4 
aggregate&nbsp;throughput can get about 391 MB/s.</DIV>
<DIV>However, cifs over glusterfs aggregate&nbsp;throughput&nbsp;only can get 
about 180 MB/s.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Why CIFS performance is so slow over glusterfs backend? </DIV>
<DIV>Anybody meet such issues and how to resolve(samba and glusterfs 
parameters)?&nbsp;</DIV>
<DIV>thanks a lot in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>#test local ext4</DIV>
<DIV>[root@pana53 5f4554cf-3b56-43e5-847e-cb409b0edc30]# dd if=/dev/zero 
of=dd.dat bs=1MB count=10k<BR>10240+0 records in<BR>10240+0 records 
out<BR>10240000000 bytes (10 GB) copied, 21.4764 s, 477 MB/s</DIV>
<DIV>&nbsp;</DIV>
<DIV>#test local glusterfs</DIV>
<DIV>
<DIV>[root@pana53&nbsp;61659a17-69bd-4704-81fe-0853f1c891cd]#&nbsp;dd&nbsp;if=/dev/zero&nbsp;of=dd.dat&nbsp;bs=1MB&nbsp;count=10k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV>
<DIV>10240+0&nbsp;records&nbsp;in</DIV>
<DIV>10240+0&nbsp;records&nbsp;out</DIV>
<DIV>10240000000&nbsp;bytes&nbsp;(10&nbsp;GB)&nbsp;copied,&nbsp;28.7148&nbsp;s,&nbsp;357&nbsp;MB/s</DIV>
<DIV>&nbsp;</DIV>
<DIV>#test cifs over ext4</DIV>
<DIV>[root@pana53 ext4-share]# dd if=/dev/zero of=dd.dat bs=1MB 
count=10k<BR>10240+0 records in<BR>10240+0 records out<BR>10240000000 bytes (10 
GB) copied, 55.5549 s, 184 MB/s</DIV>
<DIV>&nbsp;</DIV>
<DIV>#test cifs over glusterfs</DIV>
<DIV>
<DIV>[root@pana53&nbsp;glusterfs-share]#&nbsp;dd&nbsp;if=/dev/zero&nbsp;of=dd.dat&nbsp;bs=1MB&nbsp;count=10k</DIV>
<DIV>10240+0&nbsp;records&nbsp;in</DIV>
<DIV>10240+0&nbsp;records&nbsp;out</DIV>
<DIV>10240000000&nbsp;bytes&nbsp;(10&nbsp;GB)&nbsp;copied,&nbsp;87.4899&nbsp;s,&nbsp;117&nbsp;MB/s</DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>here is smb.conf:</DIV>
<DIV>[global]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server string = 
samba server<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map to guest = Bad 
Password<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log file = 
/var/log/samba/log.%m<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; max log size 
= 50<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; max protocol = 
SMB2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; socket options = TCP_NODELAY 
IPTOS_LOWDELAY<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idmap config * : 
backend = tdb<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aio read size = 
16384<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aio write size = 
16384<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use sendfile = 
Yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; posix locking = No</DIV>
<DIV>&nbsp;</DIV>
<DIV>[ext4-share]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comment = 
None<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path = 
/data/5f4554cf-3b56-43e5-847e-cb409b0edc30<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
read only = No<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; guest ok = 
Yes</DIV>
<DIV>&nbsp;</DIV>
<DIV>[glusterfs-share]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comment = 
None<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path = 
/reexport/61659a17-69bd-4704-81fe-0853f1c891cd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
read only = No<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; guest ok = 
Yes&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>here is gluster volume info:</DIV>
<DIV>
<DIV>[root@pana53&nbsp;glusterfs-share]#&nbsp;gluster&nbsp;volume&nbsp;info&nbsp;</DIV>
<DIV>Volume&nbsp;Name:&nbsp;vol1</DIV>
<DIV>Type:&nbsp;Distribute</DIV>
<DIV>Status:&nbsp;Started</DIV>
<DIV>Number&nbsp;of&nbsp;Bricks:&nbsp;1</DIV>
<DIV>Transport-type:&nbsp;tcp</DIV>
<DIV>Bricks:</DIV>
<DIV>Brick1:&nbsp;pana53:/data/5f4554cf-3b56-43e5-847e-cb409b0edc30</DIV>
<DIV>Options&nbsp;Reconfigured:</DIV>
<DIV>auth.allow:&nbsp;*,192.168.1.*</DIV>
<DIV>features.quota:&nbsp;on</DIV>
<DIV>nfs.disable:&nbsp;on</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>BR,</DIV>
<DIV>liuben</DIV>
<DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
</DIV>
<DIV><SPAN><A 
href="mailto:nuaa_liuben@sina.com">nuaa_liuben@sina.com</A></SPAN></DIV></BODY></HTML>