AD-DC ram usage

NethServer Version: 7.7.1908 (final)
Module: AD-DC

Does somebody know how do decrease the memory usage of the samba-ad-dc process?
Does disabling the debug mode lessen the ram-usage? Or does it screw up the ad-dc?


You forget: Linux doesn’t like “unused” RAM…
It will allocate RAM for use as eg caching.

→ Don’t worry about RAM in Linux, unless you know you have big RAM users - usually big databases, no matter if MariaDB, PostgreSQL or whatever is used…

My 2 cents


In my NethServer the samba process uses only a few megabytes:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                         
 3449 root      20   0  594836   4624      0 S   0.0  0.1   0:00.53 samba             

Can you tell us how long does it take to reach those high numbers after a restart? Is it a sudden step or a slow increase?
May it be related to your setup or a peculiar usage pattern of the AD?
Debugging a memory leak is “hard”, you can find some hints on the net.
You should adapt instructions to the container, where many commands are unavailable.

From NethServer manual:

systemd-run -M nsdc -t /bin/bash

You could save the output of smbcontrol <pid_of_samab> pool-usage after restart and after ram usage increases.


I wonder if this is related.

After watching the ram for some time…

Normaly it starts with about 10%, after 1-2 days suddently ramps up to 40-50% and stays about there for 2-3 days before going down again. Sometimes it stays up for longer… Have to capture the output of the pool-usage…

After some observation: It seems netdata is the culprint…
I checked the ram-usage with htop and netdata was running amok… Checking “systemctl status netdata -l” gave me:

Sep 19 14:02:59 host.domain.tld systemd[1]: [/usr/lib/systemd/system/netdata.service:50] Failed to parse capability in bounding/ambient set, ignoring: CAP_PERFMON
Sep 19 14:02:59 host.domain.tld systemd[1]: [/usr/lib/systemd/system/netdata.service:69] Unknown lvalue 'ProtectControlGroups' in section 'Service'

After disabling stoping and disabling the netdata service, the ram usage never raised above 2gb.
All services are running more smothly, all web-ui (nethserver, sogo etc) are running more responsive, loading faster… Doing the google thing what is wrong with netdata, but i can´t figure it out with my limited knoweldge.


There have been reports of memory leaks in netdata in the past.
Those leaks may have been fixed in recent versions that have been installed in NethServer.
Please, continue to keep an eye on memory usage, it may confirm that the problem is fixed.