tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lwp resource limit



On Jun 7, 2012, at 7:31 PM, Christos Zoulas wrote:

> New version addressing most of the issues:
> 
>    http://www.netbsd.org/~christos/maxlwp.diff
> 
> If I don't hear any objections I will commit it over the weekend, and
> then I am going to start working on amending the documentation and
> resource users (shells etc.)

lwp_create int enforce should be bool and we should pass true/false.

+       if (l->l_flag & LW_RESCOUNT)

I don't see the need for this, why not check p_nlwp == 1?

if this is the first lwp for the proc p_nlwp should be 0 so check
maxproc otherwise maxlwp.


Home | Main Index | Thread Index | Old Index