Hi ! Since few months, dreplsrv is eating lots of memory in few days. Within 2 weeks, the process is generaly OOM killed and replication become weired. I need to restart samba-ad-dc. Here is my config : - Samba 4.11.6 / 4 vcpu / 2Go Ram - 10215 objects (ldbs file = 300MB) This memory problem only happen on my headbridge DC (star topolgy with 20 DC) If I add some ram, the problem occures later but is the same (dreplsrv is eating more memory and swap) Since few week, one of my DC is offline and this memory problem get worse. I need to restart samba service every week. Exemple : My headbridge DC was restarted 3 days ago and, at start, total ram usage was 600MB. One day later, it became to swap. Now, today, my swap pretty full (624M/1024M) On htop : Samba : task[drepl] pre-fork master -> VIRT = 1789M / RES = 907M / MEM%=50 I will be forcer to restart samba-ad-dc in few days, in order to release RAM usage Can you help me to troubleshoot is problem ? Thank you so much Best regards
On 30/04/2020 09:03, MORILLO Jordi via samba wrote:> Hi ! > Since few months, dreplsrv is eating lots of memory in few days. Within 2 weeks, the process is generaly OOM killed and replication become weired. I need to restart samba-ad-dc. > Here is my config : > > - Samba 4.11.6 / 4 vcpu / 2Go Ram > > - 10215 objects (ldbs file = 300MB) > This memory problem only happen on my headbridge DC (star topolgy with 20 DC) > If I add some ram, the problem occures later but is the same (dreplsrv is eating more memory and swap) > > Since few week, one of my DC is offline and this memory problem get worse. I need to restart samba service every week. > Exemple :If one of the DC's has been offline for sometime, have you demoted it ? Can you post the smb.conf from the affected DC. Rowland
Hi Rowland, One of my DC is offline because Adsl is down and I can't physicaly reboot modem (Covid confinement) :-/ Here is my headbridge DC config: [global] workgroup = PR realm = pr.educationetformation.fr netbios name = DC000 server role = active directory domain controller bind interfaces only = yes interfaces = lo eth0 printcap name = /dev/null load printers = no dns forwarder = 10.1.5.1 10.1.1.12 # Needed for FreeRadius PEAP MSCHAP ntlm auth = mschapv2-and-ntlmv2-only [netlogon] path = /var/lib/samba/sysvol/pr.educationetformation.fr/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No "samba-tool drs showrepl" is fine everywhere (except my offline DC). No error at samba-tool dbcheck --cross-ncs --fix --yes -----Message d'origine----- De?: samba <samba-bounces at lists.samba.org> De la part de Rowland penny via samba Envoy??: jeudi 30 avril 2020 11:47 ??: samba at lists.samba.org Objet?: Re: [Samba] dreplsrv memory On 30/04/2020 09:03, MORILLO Jordi via samba wrote:> Hi ! > Since few months, dreplsrv is eating lots of memory in few days. Within 2 weeks, the process is generaly OOM killed and replication become weired. I need to restart samba-ad-dc. > Here is my config : > > - Samba 4.11.6 / 4 vcpu / 2Go Ram > > - 10215 objects (ldbs file = 300MB) > This memory problem only happen on my headbridge DC (star topolgy with > 20 DC) If I add some ram, the problem occures later but is the same > (dreplsrv is eating more memory and swap) > > Since few week, one of my DC is offline and this memory problem get worse. I need to restart samba service every week. > Exemple :If one of the DC's has been offline for sometime, have you demoted it ? Can you post the smb.conf from the affected DC. Rowland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba