Is there a way to set a limit on the RAM usage (virtual and resident) that a daemon can be granted in Debian? I understand that ulimit
doesn't apply here, but something the right settings in /etc/security/limits.conf
may be the answer.
I'm preferably looking for a concrete example. Say, limit virtual to 30MB and resident to 10MB for BIND (whether this is actually a bad idea or not). This setting should be enforced on the RAM used by all processes spawned by that daemon.