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?

Hi

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
Andy

2 Likes

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.

2 Likes

I wonder if this is related.