Alex Brandt wrote: > > Is it possible to limit memory quota per user (like disk quota) in > linux ? > > > > AFAIK, RLIMIT_* (i.e. RSS, DATA) are applicable per process not per > user. > You can use the pam security limits feature. > > Simply check that the module is being loaded in pam.d: > > /etc/pam.d/system-auth:session required pam_limits.so > > Then use the /etc/security/limits.conf file: > <user> soft|hard memlock <value> Memory limits are per-process, not per-user (and "memlock" controls the amount of memory which can be mlock()d, which has little bearing on memory usage overall). The only per-user resource limit is the total number of processes. -- Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html