Update performance
This commit is contained in:
@@ -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
|
||||
|
||||
4
samba.sh
4
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 </dev/null
|
||||
[[ ${NMBD:-""} ]] && ionice -c 2 -n 4 nmbd -D
|
||||
exec ionice -c 2 -n 4 smbd -F --debug-stdout --no-process-group </dev/null
|
||||
fi
|
||||
Reference in New Issue
Block a user