[clug] samba performance [actually cifs is slow]

Eyal Lebedinsky eyal at eyal.emu.id.au
Tue Apr 28 10:09:07 GMT 2009


I now confirmed that smbclient gives a reasonable performance, it is the cifs
mount that is slow.

Any suggestions anyone?

Francis James Whittle wrote:
> It might be a better idea to direct this to the samba mailing list....
> 
> https://lists.samba.org/mailman/listinfo/samba
> 
> On Mon, 2009-04-27 at 11:49 +1000, Eyal Lebedinsky wrote:
>> So nobody has any suggestions?
>>
>> As another reference point I nfs exported the directory and I get about 90MB/s
>> read.
>>
>> Eyal Lebedinsky wrote:
>>> I did some reading and tried some suggestions but I think that smb
>>> is not as fast as it should be.
>>>
>>> I have two linux systems that use smb shares (there is Windows around
>>> that uses it too). I can only see 24MB/s when transferring a file
>>> either way. The 1Gb wire shows 117MB/s raw performance.
>>>
>>> Normally, dd'ing a 256MB file to /dev/null is satisfied from memory
>>> after the first attempt.
>>>
>>> /data is a share on e7 that exports a local directory /data.
>>>
>>> I know that
>>>     rsh e7 dd if=/data/256MB bs=16M >/dev/null
>>> goes as fast as the wire.
>>>
>>> The same test over smb:
>>>     sync ; echo 3 >/proc/sys/vm/drop_caches
>>>     dd if=/data/256MB bs=16M >/dev/null
>>> gives only about 24MB/s. Repeatedly. I assume that the file is
>>> cached on e7 (the server).
>>>
>>> Any pointers to tuning notes are appreciated.

-- 
Eyal Lebedinsky	(eyal at eyal.emu.id.au)


More information about the linux mailing list