On Friday 03 December 2004 19:38, Rene Bartsch wrote:
> as users start their UMLs in a chroot environment themselves, mem=XXX on
> command-line is no option.
> Is there any other way, e.g. limiting memory per user?
idea 1) To limit the memory for some/all users, search in
/etc/limits (or /etc/security/limits.conf - the position depends on the PAM
config of your distro).
Not sure if this limit exists - it's an idea. And this recently changed
somehow (search lwn.net).
idea 2) For uml, it's simpler - a file sized mem= is to be placed inside the
chroot. Just apply quotas for them on the real disk, and add size= to their
tmpfs mount. Using just the second won't work cause they could point TMPDIR
to their hard disks space, even if it's slower.
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
Get latest updates about Open Source Projects, Conferences and News.