[Samba] Very slow samba performance on Centos 6

vg_ us vg_us at hotmail.com
Fri Aug 5 08:51:51 MDT 2011


-------------------------------------------------
From: "Robert Adkins II" <radkins at impelind.com>
Sent: Friday, August 05, 2011 10:10 AM
To: "'vg_ us'" <vg_us at hotmail.com>; <Volker.Lendecke at SerNet.DE>
Cc: <samba at lists.samba.org>
Subject: RE: [Samba] Very slow samba performance on Centos 6

> Wouldn't it be better to rerun these tests, not from the Ramdisk, but from 
> a
> network connection to more closely resemble what the results will be when 
> in
> a production environment?
>
> Doing such tests years back did show that FTP will typically be faster 
> than
> Samba, due to the difference in overhead costs. Samba isn't a service like
> FTP, it has to negotiate SMB packets, interpret the requests/commands and
> then communicate that to the system it is running on. I haven't played 
> with
> CIFS, but I imagine that it to would have a similar or potentially greater
> overhead than Samba itself.
>
> --
>
> Regards,
> Robert Adkins II
>
>
>
>> -----Original Message-----
>> From: samba-bounces at lists.samba.org
>> [mailto:samba-bounces at lists.samba.org] On Behalf Of vg_ us
>> Sent: Thursday, August 04, 2011 2:12 PM
>> To: Volker.Lendecke at SerNet.DE
>> Cc: samba at lists.samba.org
>> Subject: Re: [Samba] Very slow samba performance on Centos 6
>>
>> --------------------------------------------------
>> From: "Volker Lendecke" <Volker.Lendecke at SerNet.DE>
>> Sent: Thursday, August 04, 2011 11:01 AM
>> To: "vg_ us" <vg_us at hotmail.com>
>> Cc: <samba at lists.samba.org>
>> Subject: Re: [Samba] Very slow samba performance on Centos 6
>>
>> > On Thu, Aug 04, 2011 at 10:49:50AM -0400, vg_ us wrote:
>> >> I have 2 identical Dell r510 servers with 10gig card,
>> running centos
>> >> 6 with samba-3.5.4-68.el6_0.2.x86_64.
>> >> I setup 16G ramdisk samba share on both and ran cp from
>> local ramdisk
>> >> to samba ramdisk mount.
>> >> If I cp 12 1-gig files, I get combined 100MB/s transfer
>> rate. Single
>> >> file cp maxes out at about 15MB/s.
>> >> Ftp transfer give me over 300MB/s.
>> >>
>> >> Running with 9000 MTU. Most smb.conf is default. I even disabled
>> >> atime and tried ext2 and xfs on ramdisk.
>> >>
>> >> Any help will be greatly appreciated.
>> >
>> > What client application are you using? If it is a cifsfs
>> kernel mount,
>> > you might see such artifacts. Please retry with the smbclient(1)
>> > application. If that is also slow, we need to investigate further.
>> >
>>
>> I re-ran some of the tests with following result:
>>
>> Ftp ramdisk-to-ramdisk:
>> 13572 MB, 32.8 secs - 413.8 MB/s
>>
>> Ftp ramdisk-to-hardisk:
>> 13572 MB, 62.8 secs - 222.4 MB/s
>>
>> Smbclient ramdisk-to-ramdisk:
>> 13572 MB 40 secs - 339 MB/s
>>
>> Smbclient ramdisk-to-harddisk:
>> 13572 MB 64 secs - 212 MB/s
>>
>> cifsfs mount ramdisk-to-ramdisk:
>> 13572 MB 289.8 - 47MB/s
>>
>> cifsfs mounts are really slow, so what happens when linux,
>> windows and mac clients map/mount the share? Are they gonna
>> be this slow? Any way to speed it up?
>>
>> Thanks
>>

I did include Smbclient ramdisk-to-harddisk (that's reading from local 
ramdisk filesystem and copying to samba share sitting atop of real hard 
drive) test.
Cifsfs mount with real disk gives the same performance as included "cifsfs 
mount ramdisk-to-ramdisk:"

- Vadim 



More information about the samba mailing list