Hello Douglas,
>> Some news today.
uptime
17:38:49 up 36 days, 8:26, 1 user, load average: 0.01, 0.08, 0.08
free -m
total used free shared buff/cache available
Mem: 3967 611 2197 19 1157 3277
Swap: 511 0 511
ps -ef|grep samba | wc -l
52
ps -faux | awk -F " " '{print $4, $0}' |sort
1.4 root 1964715 0.0 1.4 142396 59880 ? Ss Oct23 0:40 | \_
/usr/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
1.4 root 1964726 0.0 1.4 152620 58716 ? S Oct23 9:33 |
\_ samba: task[kdc] pre-forked worker(3)
1.4 root 1964735 0.0 1.4 140416 57628 ? S Oct23 1:54 |
\_ samba: task[ldap] pre-forked worker(1)
1.4 root 1964737 0.0 1.4 140416 57028 ? S Oct23 1:35 |
\_ samba: task[ldap] pre-forked worker(2)
1.4 root 1964745 0.0 1.4 140416 57664 ? S Oct23 1:56 |
\_ samba: task[ldap] pre-forked worker(3)
1.5 root 1964693 0.0 1.5 147112 63732 ? Ss Oct23 3:01 |
\_ /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
1.7 root 1964699 0.1 1.7 163296 72964 ? S Oct23 17:46 |
\_ samba: task[rpc] pre-forked worker(0)
2.2 root 1979969 0.0 2.2 183324 92024 ? Ss Oct27 0:25
/usr/bin/python3 /opt/tis-sysvolsync/sysvolsync.py -f /var/log/sysvolsync.log
watch
>> With no memory leak, smbd has crashed
Oct 30 09:29:07 mydomain.fr smbd[1994674]:
[2024/10/30 09:29:07.468400, 0] ../../lib/util/fault.c:173(smb_panic_log)
==============================================================[2024/10/30
09:29:07.468753, 0] ../../lib/util/fault.c:174(smb_panic_log)
INTERNAL ERROR: Signal 11: Segmentation fault in pid 1994674 (4.18.6-Debian)
[2024/10/30 09:29:07.468976, 0] ../../lib/util/fault.c:178(smb_panic_log)
If you are running a recent Samba version, and if you think this problem is
not yet fixed in the latest versions, please consider reporting this bug,
see https://wiki.samba.org/index.php/Bug_Reporting
[2024/10/30 09:29:07.469077, 0] ../../lib/util/fault.c:183(smb_panic_log)
==============================================================[2024/10/30
09:29:07.469172, 0] ../../lib/util/fault.c:184(smb_panic_log)
PANIC (pid 1994674): Signal 11: Segmentation fault in 4.18.6-Debian
[2024/10/30 09:29:07.470557, 0] ../../lib/util/fault.c:292(log_stack_trace)
BACKTRACE: 30 stack frames:
#0
/usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(log_stack_trace+0x30)
[0x7feef5b67680]
#1 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(smb_panic+0x9)
[0x7feef5b678c9]
#2 /usr/lib/x86_64-linux-gnu/samba/libgenrand-samba4.so.0(+0x1961)
[0x7feef5b67961]
#3 /lib/x86_64-linux-gnu/libpthread.so.0(+0x13140) [0x7feef5b14140]
#4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0xac2cb)
[0x7feef5fc62cb]
#5 /lib/x86_64-linux-gnu/libtalloc.so.2(+0x4986) [0x7feef5ace986]
#6 /lib/x86_64-linux-gnu/libtalloc.so.2(+0x4618) [0x7feef5ace618]
#7 /lib/x86_64-linux-gnu/libtalloc.so.2(+0x4618) [0x7feef5ace618]
#8 /lib/x86_64-linux-gnu/libtalloc.so.2(+0x4618) [0x7feef5ace618]
#9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(+0xda8a9)
[0x7feef5ff48a9]
#10
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_reinit_after_fork+0)
[0x7feef5ff4cc0]
#11
/usr/lib/x86_64-linux-gnu/samba/libsmbd-shim-samba4.so.0(exit_server_cleanly+0x14)
[0x7feef5b6c264]
#12
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_server_connection_terminate_ex+0x4f0)
[0x7feef5fcacb0]
#13
/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91)
[0x7feef5ae1c01]
#14 /lib/x86_64-linux-gnu/libtevent.so.0(+0xf237) [0x7feef5ae8237]
#15 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd387) [0x7feef5ae6387]
#16 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x94)
[0x7feef5ae0ec4]
#17 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b)
[0x7feef5ae11ab]
#18 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd327) [0x7feef5ae6327]
#19
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so.0(smbd_process+0x818)
[0x7feef5fbc208]
#20 smbd: client [192.168.4.211](+0xa18f) [0x55560e1aa18f]
#21
/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91)
[0x7feef5ae1c01]
#22 /lib/x86_64-linux-gnu/libtevent.so.0(+0xf237) [0x7feef5ae8237]
#23 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd387) [0x7feef5ae6387]
#24 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x94)
[0x7feef5ae0ec4]
#25 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b)
[0x7feef5ae11ab]
#26 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd327) [0x7feef5ae6327]
#27 smbd: client [192.168.4.211](main+0x14dc) [0x55560e1a72cc]
#28 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7feef5919d7a]
#29 smbd: client [192.168.4.211](_start+0x2a) [0x55560e1a7bea]
[2024/10/30 09:29:07.472333, 0] ../../source3/lib/dumpcore.c:315(dump_core)
Any idea to decode and understand these traces?
Thanks, Gerard
De : Douglas Bagnall [mailto:douglas.bagnall at catalyst.net.nz]
Envoy? : mercredi 16 octobre 2024 22:12
? : G?rard GUEVEL; samba at lists.samba.org
Objet : [Samba] Samba AD-DC memory loss
This is not expected (but, being software, not entire unexpected either).
`ps faux` might show what processes are using the memory, which still
leaves you a long way from working out what is wrong.
Douglas
De : samba [mailto:samba-bounces at lists.samba.org]
De la part de G?rard GUEVEL via samba Envoy? : lundi 14 octobre 2024 15:47
? : samba at lists.samba.org Objet : [Samba] Samba AD-DC memory loss
Hello
I am running a Samba 4.18.6-Debian AD-DC on a Debian 11 VM with a replication
on another identical server. I always have about the same number of tasks but
the
consumed memory always increases over time without ever decreasing.
Do you have any ideas to explain and avoid this memory loss?
Thanks, Gerard
Main PID: 350 (samba) Tasks: 61 (limit: 4631) Memory: 617.6M CPU: 4h 46min
57.327s
Main PID: 350 (samba) Tasks: 63 (limit: 4631) Memory: 761.5M CPU: 7h 28min
28.841s
Main PID: 350 (samba) Tasks: 61 (limit: 4631) Memory: 941.4M CPU: 10h 41min
5.756s
Main PID: 350 (samba) Tasks: 60 (limit: 4631) Memory: 1.1G CPU: 15h 22min
45.490s