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 (whether this is actually a bad idea or not), limit virtual to 30MB and resident to 10MB for BIND. This setting should be enforced on the RAM used by all processes spawened by that daemon.