Skip to content

Instantly share code, notes, and snippets.

@gogromat
Last active January 3, 2023 10:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gogromat/d00305d823b970e9330b to your computer and use it in GitHub Desktop.
Save gogromat/d00305d823b970e9330b to your computer and use it in GitHub Desktop.
Make samba faster on ubuntu 14.04

Make samba faster on ubuntu 14.04

Solution # 1: Sockets

The recommendations taken from amahi's wiki

  • sudo nano /etc/samba/smb.cnf
  • locate [global] section
  • add the following:
socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY
min receivefile size = 16384
use sendfile = true
aio read size = 16384
aio write size = 16384
  • Save and Exit. Reboot your machine.

Now samba should be much faster (enables sockets, Async IO)

Solution # 2: Ethernet drivers

Another idea is that ethernet drivers are outdated (a hint given by this thread)

Other Things to try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment