Update performance

This commit is contained in:
Struchkov Mark
2026-01-07 16:41:45 +03:00
parent ff90440e32
commit d00bd6d6b3
2 changed files with 8 additions and 4 deletions

View File

@@ -40,8 +40,12 @@ RUN file="/etc/samba/smb.conf" && \
printcap name = /dev/null printcap name = /dev/null
disable spoolss = yes disable spoolss = yes
strict locking = no strict locking = no
aio read size = 0 aio read size = 1
aio write size = 0 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 vfs objects = catia fruit recycle streams_xattr
# Recycle bin # Recycle bin

View File

@@ -326,6 +326,6 @@ elif [[ $# -ge 1 ]]; then
elif ps -ef | grep -E -v grep | grep -q smbd; then elif ps -ef | grep -E -v grep | grep -q smbd; then
echo "Service already running, please restart container to apply changes" echo "Service already running, please restart container to apply changes"
else else
[[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D [[ ${NMBD:-""} ]] && ionice -c 2 -n 4 nmbd -D
exec ionice -c 3 smbd -F --debug-stdout --no-process-group </dev/null exec ionice -c 2 -n 4 smbd -F --debug-stdout --no-process-group </dev/null
fi fi