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
[Linux Newbie]
[Audio]
[Hams]
[Kernel Newbies]
[Util Linux NG]
[Security]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite Photos]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux Device Drivers]
[Samba]
[Video 4 Linux]
[Git]
[Linux Resources]
[Fedora Users]