Ticket #866 (closed enhancement: fixed)

Opened 3 years ago

Last modified 6 months ago

Please optimise speed of Samba configuration

Reported by: steven@… Owned by:
Priority: normal Milestone: Firmware 2.3.7.0
Component: fon-base-firmware Version: N/A
Severity: minor
Cc: Hardware: both

Description

Tested on Fonera 2.0g; it's almost impossible to use .mkv's on a fonera 2.0 and play it on a remote media player if these files exceed 700mbyte (it takes 5 minutes before the video starts playing).... mkv's are popular for those wanting to use FULL HD movies/series.

secondary problem related to this : any tweaking to the samba.config to improve the speed is being nullified after +- 5 minutes... the fonera tries to restore the original config nullifying our improvements.

We created a cron that restores our samba improvements every 5 minutes:

it would be welcome if you could configure this samba configuration by default in the next firmware release

#!/bin/sh

if ! grep SO_RCVBUF /tmp/smb.conf > /dev/null then

sed -i "s/TCP_NODELAY/TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=1024000 SO_SNDBUF=1024000 SO_KEEPALIVE/" /tmp/smb.conf sed -i "s/\/etc\/samba\/smbpasswd/\/etc\/samba\/smbpasswd\n deadtime = 15\n getwd cache = yes\n lpq cache = 30/" /tmp/smb.conf

fi

Original Discussion was started on  http://forum.fon.com/forum/viewtopic.php?p=754#p754

Attachments

Change History

Changed 3 years ago by matthijs

  • status changed from new to investigate
  • version changed from 2.3.6.0 (Gari) to N/A
  • severity changed from unknown to minor
  • milestone set to Firmware 2.3.7.0

This looks interesting, we'll look into this. Any comments on why these options help and what they do exactly? I'm particularly doubtful about the buffer options, since allocating 2x 1MB of buffers (for each connection?) might be a bit much for the 2.0g. OTOH, the original poster has had succes with this on a 2.0g.

The google translated version of the forum thread is here:  http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http%3A%2F%2Fforum.fon.com%2Fforum%2Fviewtopic.php%3Fp%3D754%23p754&sl=fr&tl=en&act=url

Changed 3 years ago by steven@…

I guess he read the Samba Tuning appendix:  http://oreilly.com/catalog/samba/chapter/book/appb_02.html the commands are explained in this chapter : "B.2.2.2 Socket options"

Changed 3 years ago by steven@…

Yes I have to wait for the FON moderators to get my questions to the original person posted :-)

"This message has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your post has been approved."

Changed 3 years ago by cyrus

  • status changed from investigate to closed
  • resolution set to fixed

(In [1726]) Tune Samba configuration, fixes #866

Changed 3 years ago by anonymous

SO_XXXBUF values are way too high in your proposal, its hard to find a good default for all networks so it was not included.

Changed 2 years ago by "Giovanni Condello / Nanomad <condellog@…

This patch was applied only to the RestartSamba? and not to ReloadSamba?, so it is still not fixed properly

Changed 2 years ago by matthijs

I noticed this as well when diffing the two scripts (and I've already prepared a patch to fix it). Thanks for checking as well, though!

Changed 2 years ago by matthijs

(In [1864]) samba: Apply r1726 to RestartSamba? script as well.

This tunes the samba configuration a bit, but it was only applied to the RestartSamba? script, not the ReloadSamba? script (making these performance tunings disappear when an USB disk was plugged in or out.

References: #866

Add/Change #866 (Please optimise speed of Samba configuration)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.