diff --git a/Dockerfile b/Dockerfile index cdab1ed..c5c7195 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,8 +40,12 @@ RUN file="/etc/samba/smb.conf" && \ printcap name = /dev/null disable spoolss = yes strict locking = no - aio read size = 0 - aio write size = 0 + aio read size = 1 + aio write size = 1 + use sendfile = yes + getwd cache = yes + min receivefile size = 16384 + socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 vfs objects = catia fruit recycle streams_xattr # Recycle bin diff --git a/samba.sh b/samba.sh index c48837c..4720cfd 100755 --- a/samba.sh +++ b/samba.sh @@ -326,6 +326,6 @@ elif [[ $# -ge 1 ]]; then elif ps -ef | grep -E -v grep | grep -q smbd; then echo "Service already running, please restart container to apply changes" else - [[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D - exec ionice -c 3 smbd -F --debug-stdout --no-process-group