vortexbox.org

06 Nov 08 Forum

You must be logged in to post Login Register

Search Forums:


 






Speed of Samba Transfers on MAC OS X

UserPost

6:57 pm
October 15, 2009


luferwi

Member

posts 20

If you are using MAC OS X and have experienced slow transfers speed and hangs, this is the solution that has worked for me (found on Samba wiki)

Slow file transfer – especially smaller filesUnder some situations, folder/directory browsing and transfer of smaller files (<10MB) can be very slow (~300kb/s on a 100Mb/s network). This has been experienced on Mac OS X and Debian GNU/Linux (Samba 3.0.23d). In both cases, the solution has been to add this option to the global section of smb.conf

large readwrite = no

to add this option, do the following

# cd /etc/samba
# cp smb.conf smb.conf.old
# nano smb.conf

insert

 large readwrite = no

save smb.conf

then

# /etc/init.d/smb restart
# /etc/init.d/nmb restart

12:05 am
October 16, 2009


Andrew

Admin

posts 1639

Interesting, did this help? I have not done anything to enhance Samba performance on VortexBox. Maybe that's a feature we could add in the next release. I also found these on the net. Quite a few people say the "socket options" provides a big performance gain.

Anybody want to try these and report back?


# http://www.techworld.com/opsys…..tureid=493
read raw = no
write raw = yes

# http://www.informit.com/librar…..seqNum=159
wide links=yes
getwd cache=yes

# http://groups.google.com/group…..d3d8af99c0
stat cache = yes
strict sync = no
use sendfile = yes
large readwrite = yes
oplock contention limit = 5
oplock break wait time = 100

# http://ubuntuforums.org/archiv…..19510.html
case sensitive = true

# http://softwarecommunity.intel…..g/1259.htm
strict allocate = yes

# http://www.samba.org/samba/doc…..#id2690735
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072

12:41 am
October 16, 2009


luferwi

Member

posts 20

The solution I indicated in my post has definitely helped me to have quicker access to files on VBA (both in Finder and Cyberduck) – before changing that setting, browsing the files would often hang for long periods making remote access from my MacBook almost unusuable. The solution has been working for me for weeks. But I still think that samba access from Mac OS X could use some improvement (I often run into problems when I first try to connect — it can time quite a lot of time for applications to see the samba shares even after they have been mounted).

10:27 am
October 16, 2009


dcm

Member

posts 19

My troubles are with editing tags on the VB via my Mac on Samba – the write speed is dismal, to the point of unusable… it appears even with this change. I'll give the socket options a try tonight.

11:10 am
October 16, 2009


Andrew

Admin

posts 1639

dcm said:My troubles are with editing tags on the VB via my Mac on Samba – the write speed is dismal, to the point of unusable… it appears even with this change. I'll give the socket options a try tonight.


Maybe try this?


http://vortexbox.org/forum/hel…..onfig-bug/

5:53 pm
October 16, 2009


dcm

Member

posts 19

Nope – neither the socket options or the ripit config bug (which was confirmed on my box) fixes seem to make any difference on editing tags over samba on my Mac. Its really the only drawback I have had to my VB experience – I'd love to figure out what the problem is, or another way to quickly and easily edit tags.

10:56 pm
October 16, 2009


Andrew

Admin

posts 1639

Did you try adding padding like this post shows?


http://vortexbox.org/forum/hel…..onfig-bug/


7:00 pm
October 16, 2009


dcm

Member

posts 19

Yep, I sure did – doesn't seem to make any difference at all to me.

10:39 pm
October 16, 2009


Andrew

Admin

posts 1639

Seems like you migh have a network problem. Are you using a wireless network? I have 6500 FLAC files and I can edit the tags in about 1 second. I didn't even add the padding.

8:49 pm
October 16, 2009


dcm

Member

posts 19

The VB is wired and I have two macs, one wired, one wireless and both take about the same amount of time – ~1min per song to save tag changes. I've tried various tag editors (none of them are very good) and they all take about that long or hang while waiting.

8:53 pm
October 16, 2009


dcm

Member

posts 19

for what its worth I copied a flac file onto my wired mac – edited it with the wireless mac via apple share and it saved instantly – my hunch has always been that this is related to samba and Macs handling of that, but its just a hunch


About the vortexbox.org forum

Most Users Ever Online:

34


Currently Online:

Andrew

15 Guests

Forum Stats:

Groups: 1

Forums: 4

Topics: 1342

Posts: 7561

Membership:

There are 779 Members

There has been 1 Guest

There is 1 Admin

There are 0 Moderators

Top Posters:

Ron Olsen – 651

HalfBit – 315

jistirling – 226

socistep – 187

JimG – 142

wizardofoz – 133

Administrators: Andrew (1639 Posts)




Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • PDF
  • Propeller
  • Technorati
  • Twitter