Ticket #866 (closed enhancement: fixed)
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
