From 61391cc180fbfb77bc150f4a2fed2325b02b0e55 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sat, 23 Apr 2022 04:32:33 -0400 Subject: [PATCH] Improve samba speed --- common/server/samba.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/server/samba.nix b/common/server/samba.nix index fdff0be..b673c7a 100644 --- a/common/server/samba.nix +++ b/common/server/samba.nix @@ -24,6 +24,18 @@ load printers = yes printing = cups printcap name = cups + + # encryption + server smb encrypt = desired + + # gotta go fast https://wiki.archlinux.org/title/Samba#Improve_throughput + server multi channel support = yes + deadtime = 30 + use sendfile = yes + min receivefile size = 16384 + aio read size = 1 + aio write size = 1 + socket options = IPTOS_LOWDELAY TCP_NODELAY IPTOS_THROUGHPUT SO_RCVBUF=131072 SO_SNDBUF=131072 ''; shares = {