You are not logged in.

#1 2011-06-02 21:36:06

twl
Member
Registered: 2011-05-30
Posts: 20

Samba Transfer Speed Improvement

My samba transfer speed from my linux installation to and from my windows 7 box was always pretty slow. It was about 40MB/s or so.

However after adding this one setting to my [global] smb.conf, my speeds more than doubled. Im getting ~110MB/s read and write to the linux samba share.

"strict allocate = yes"

Seeing the benefits has some requirements though. Here is the documentation http://wiki.samba.org/index.php/Linux_Performance

Took me a while to find this setting. Theres a lot of other tweaks I found that didnt offer near the performance improvement that strict allocate did.

I didnt see this on the samba arch wiki but maybe it'd be a good idea to put it there? (https://wiki.archlinux.org/index.php/Samba)

Anyway, hope this helps others

Last edited by twl (2011-06-02 21:37:52)

Offline

#2 2011-06-03 00:02:55

Blender
Member
Registered: 2011-05-11
Posts: 36

Re: Samba Transfer Speed Improvement

Yes, if it's such a performance booster, maybe it's worth mentioning in the Wiki. There has to be a reason as to why it's turned off by default, though, as it seems too good to be true...

Offline

#3 2011-06-03 20:35:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Samba Transfer Speed Improvement

@op - you can modify the Arch wiki page if you feel there is value to documenting this setting.  I would encourage you to do so.  The Arch-community is one of the reasons why Arch is a great as it is today!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-06-04 00:04:16

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: Samba Transfer Speed Improvement

twl wrote:

~110MB/s read and write to the linux samba share.

How did you measure?


"I exist" is the best myth I know..

Offline

#5 2011-06-04 06:44:54

twl
Member
Registered: 2011-05-30
Posts: 20

Re: Samba Transfer Speed Improvement

dstat on arch and windows 7 transfer window

Last edited by twl (2011-06-04 06:45:25)

Offline

#6 2011-06-04 08:25:08

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: Samba Transfer Speed Improvement

twl wrote:

dstat on arch and windows 7 transfer window

Sorry, I wasn't clear enough. I'm not saying about measurement tool. I mean which operations were used - smbclient get and put, or something else?


"I exist" is the best myth I know..

Offline

#7 2011-06-04 19:51:45

twl
Member
Registered: 2011-05-30
Posts: 20

Re: Samba Transfer Speed Improvement

student975 wrote:
twl wrote:

dstat on arch and windows 7 transfer window

Sorry, I wasn't clear enough. I'm not saying about measurement tool. I mean which operations were used - smbclient get and put, or something else?

On my windows 7 machine Just browsed some of my shares that were exposed by samba server on arch. I'd then try transfering some large linux .iso's to my windows 7 pc (to test read) and then write them back to the arch server (to test write)

so I think thats get/put?

Last edited by twl (2011-06-04 19:52:46)

Offline

#8 2011-06-04 20:50:06

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: Samba Transfer Speed Improvement

twl wrote:
student975 wrote:
twl wrote:

dstat on arch and windows 7 transfer window

Sorry, I wasn't clear enough. I'm not saying about measurement tool. I mean which operations were used - smbclient get and put, or something else?

On my windows 7 machine Just browsed some of my shares that were exposed by samba server on arch. I'd then try transfering some large linux .iso's to my windows 7 pc (to test read) and then write them back to the arch server (to test write)

so I think thats get/put?

Thanks for the clarification. I just was interested in the case when both - client and server - are running under Linux:

https://bbs.archlinux.org/viewtopic.php?id=115788


"I exist" is the best myth I know..

Offline

Board footer

Powered by FluxBB