tech-kern archive

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

Re: lwp resource limit



In article <83819DD9-7D1B-4C27-AA52-8C281E29303D%3am-software.com@localhost>,
Matt Thomas  <matt%3am-software.com@localhost> wrote:
>
>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.

ok.

>+      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.

You are forgetting compat_linux.

christos



Home | Main Index | Thread Index | Old Index