Example limits.conf file:
Code:
* hard as 1000000 #each user limited to 1,000,000kb total memory usage
* hard stack 32000 #each user's stack limited to ~32mb
% hard as 1300000 #total memory usage for all users cannot exceed 1,300,000kb
* hard nproc 300 #each user limited to 300 processes
#Mandriva2006 defaults:
* - rt_priority 0
* - nice 0
@audio - rt_priority 50
@audio - nice -10
This is from my AthlonXP 2000 (1664mhz) machine with 750MB RAM, adjust to your hardware specs if necessary. You can verify that its working by logging out and loggining back in and running
. You need to logout and log back in to your X session as well for these limits to take effect.