Is there a way to limit the memory consumption on a linux system? I would prefer a per user solution but a per process solution would be better than no limitation at all.
|
feedback
|
|
The solution to your problem is the PAM module of On recent kernels this can be controlled by the "Control Groups" ( When a process spawn another one, the new one inherits the control group of its parent. Memory consumption (as well as cpu, which core, and more) are affected by control group. | |||||
feedback
|
|
Using pam_limits may help with per user limits for some memory related settings. The limits are set in the /etc/security/limits.conf file. | |||
feedback
|