After transferring a large file (>100GB) via samba, the service smbd does not release memory (uses more than 76% of memory).
Code
# ps aux --sort '%mem'
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
...
backup-+ 12587 0.9 76.1 6737736 4631684 ? S Dec12 9:38 \_ /usr/sbin/smbd --foreground --no-process-group
After restarting smbd, everything is OK
Code
# systemctl restart smbd
# ps aux --sort '%mem' | grep smbd
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 9953 0.0 0.0 6080 892 pts/0 S+ 08:27 0:00 grep smbd
root 9919 0.0 0.1 46692 6184 ? S 08:27 0:00 /usr/sbin/smbd --foreground --no-process-group
root 9918 0.0 0.1 46676 6416 ? S 08:27 0:00 /usr/sbin/smbd --foreground --no-process-group
backup-+ 9925 0.0 0.2 50792 14132 ? S 08:27 0:00 /usr/sbin/smbd --foreground --no-process-group
root 9924 0.1 0.2 50920 14340 ? S 08:27 0:00 /usr/sbin/smbd --foreground --no-process-group
root 9911 0.5 0.3 50572 20632 ? Ss 08:27 0:00 /usr/sbin/smbd --foreground --no-process-group
This problem is repeated on different installations and hardware.
Version:
OMV 5.6.21-2
# samba -V
Version 4.9.5-Debian