Disable offloading for the network interface eth1:

# /sbin/ethtool -K eth1 tso off
# /sbin/ethtool -K eth1 gso off

Set swappiness to 0:

# /bin/echo 0 >/proc/sys/vm/swappiness

/etc/samba/smb.conf:

[global]
   workgroup = WORKGROUP
   server string = ac
   name resolve order = host
   hosts allow = 127.0.0.1, 192.168.1.0/255.255.255.0
   interfaces = eth1
   bind interfaces only = yes
   log level = 1
   debug level = 1
   strict locking = no
   strict allocate = yes
   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=32768 SO_SNDBUF=32768
   min receivefile size = 32768
   use sendfile = yes
   aio read size = 32768
   aio write size = 32768
   read raw = yes
   write raw = yes
   max xmit = 32768
   write cache size = 2097152
   getwd cache = yes
   local master = no
   os level = 1
   domain master = no
   preferred master = no
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   printcap name = /dev/null
   load printers = no
   dos charset = 850
   unix charset = UTF8
   browseable = yes


[root]
   comment = root
   path = /
   public = no
   writable = yes
   guest ok = no
   printable = no
   read only = no
   write list = @users
   only guest = no
   valid users = username
Advertisements