1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Improving samba (smb) transfer speed

Discussion in 'Tomato Firmware' started by domenicop, Dec 29, 2013.

  1. domenicop

    domenicop Reformed Router Member

    Hi guys,
    I've an Asus RT-N66U attached to a WD HD ext3 formatted.
    Since I flashed the tomato firmware, version 1.28.0000 MIPSR2-115 K26 USB AIO-64K, I'm experiencing decrease in samba transfer speed.
    I'm not able to see movies from my ethernet-attached pc anymore, it's a continuous stop&go, the stock firmware was a whole other story in this particular aspect.
    What can I do to improve speed transfer rate?
    The most important thing for me is the capability of streaming, since I've various wi-fi media player at home and I can't use any of them if the speed is so low even via ethernet.

    I also have another doubt. Should I have a swap partition on my ext3 formatted hd? Would that improve transfer speed?
  2. mmosoll

    mmosoll Serious Server Member

    Using an ext3 formatted partition will improve your read/write access of your samba HD connected at your tomato (Linux) router. I use the following parameters for a better speed in my samba custom configuration, may be this changes can help you, I found it in a samba forum (I don't remember the url, sorry):

    use sendfile = no
    read raw = yes
    write raw = yes
    kernel oplocks = yes
    max xmit = 65535
    dead time = 15
    getwd cache = yes

    I am using tomatoRAF 2011 with E4200 router, I use streaming from an IPad only, but access to files from my PC is fine (may be you can try to disable authentication)
    Last edited: Dec 29, 2013
  3. domenicop

    domenicop Reformed Router Member

    Thank you for the reply.
    I applied your changes but there was no improvement in speed transfer rate.

    I spent some time analyzing the problem though, and I found the modem actually reach 8MB/s when transferring a file (checked from Bandwidth --> Real Time) . The problem only arises when I do stream videos, in that case, there are some spike to 8MB/s (when the video blocks) and 5 seconds at 100KB/s, where the video keeps flowing.
    Any ideas based on that?
  4. Mate Rigo

    Mate Rigo Serious Server Member

    I experienced a similar behaviour with my set up:
    Router: asus rt-n53
    Fw: shibby 115

    Xbox classic hooked up to a router running ddwrt as wireless client.

    Long story short, it turned out, that the 2.4 ghz wifi on the rt-n53 has some driver problems, when using 802.11n mode, I set it to g only, amd now its good.
  5. jodur

    jodur Reformed Router Member

    This sounds strange! In V115 the paragon driver is now used for NTFS, so for NTFS disks you should have a performance improvement instead of a decrease!
  6. kthaddock

    kthaddock Network Guru Member

  7. jerrm

    jerrm Network Guru Member

    Read the first line of the original post - he's using an ext3 disk.
  8. kthaddock

    kthaddock Network Guru Member

  9. vmixus

    vmixus Serious Server Member

    I had a similar issue with LAN access times to a samba share (i.e. slow streaming video via LAN)
    The setup involved a local debian box hosting a samba share connected to a Linksys WRT300n router running tomato.

    I was experiencing really slow speeds while using a laptop wirelessly. Initially, I was looking at the samba config for issues/optimizations but was able to eliminate that as the problem after plugging the laptop directly into the router and using a wired connection to test the speeds using LAN Speed Test. The free version gave me a decent idea of read/write speeds for wired/wireless connections. It was also insightful to see the read/write speeds for the different wireless channels. I found the speeds to greatly vary between different wireless channels (which I'm guessing is attributed to my locale and my neighboring wifi singals) as well as poor performance over time.

    In the end, I disabled wifi on the Linksys and used a separate spare wireless gateway (WNR2000) I had lying around which gave me almost the same performance speeds as using the wired connection.
    Last edited: Dec 31, 2013
  10. domenicop

    domenicop Reformed Router Member

    I think I'm gonna go stock from tomorrow. The gains I have with the tomato fw are networks printers work way better, and HD attached over WiFi doesn't give any problem in transfers. But the streaming problem beats this two gains for me. The speed decreases as I move just a little away from the modem. I was surprised to see how stable it is tough. I hope someone between Asus and the guys behind tomato will improve the support over this piece of device that remains still pretty much better than the average two years after its birth.

Share This Page