Darren J Moffat wrote:
> Roland Mainz wrote:
> > The problem is that this is absolutely non-portable. Such scripts won't
> > be able to run outside Solaris unless you add something like...
> > -- snip --
> > if [[ "$(uname -s)" == "SunOS" ]] ; then
> >       builtin -f solaris_rctl.so.1 newtask
> >       builtin -f solaris_rctl.so.1 prctl
> >       newtask
> >       prctl -n task.max-lwps -v 256 $$
> > else
> >       ulimit -T 256
> > fi
> > -- snip --
> 
> Exactly how is ulimit -T portable didn't you already say it *does not*
> exist as part of POSIX and isn't available on other systems ?

I've listed two other operating systems (AIX+IRIX) who already have this
kind of functionality (unfortunately with two slightly different names
(|RLIMIT_PTHREADS| vs. |RLIMIT_THREADS|)).

> Personally I don't object to adding a 'ulimit -T' I was just showing how
> the functionality I believe you described could be achieved using
> existing Solaris functionality.

Erm... AFAIK it's an _approximation_ of the functionality I'm looking
for: $ prctl -n task.max-lwps ... # sets a task-wide limit, affecting
all processes in this task instead just the intended audience of the
current process (and it's children).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to