Roland Mainz <[EMAIL PROTECTED]> wrote:
> > Perhaps an OpenSolaris-specific
> > function in ksh93 to call setrctl(2) directly would be more
> > appropriate. (Plus we don't have process-level controls for some of
> > these resources today.)
>
> There are two problems:
> 1. "ulimit" works per-process and these controls should IMO be available
> per-process.
> 2. setrctl(2) is currently a non-standard API
>
> I really like to see at least RLIMIT_PTHREAD implemented to have a limit
> which prevents applications from running a threaded version of the
> fork()-bomb.
I would like to see RLIMIT_RSS again.
It did work nicely pre-SunOS-4.0 to limit background jobs (limit mem 0)
an I did make it work again on Sun-OS-4.0 by hacking the scheduler and let it
swap out (no typo) a process in case that its resident set was above the limit.
This would also work in SunOS-5.x
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code