Use a simpler "formula" to decide a default kern.maxthread value;
authorsthen <sthen@openbsd.org>
Wed, 13 Apr 2022 10:08:10 +0000 (10:08 +0000)
committersthen <sthen@openbsd.org>
Wed, 13 Apr 2022 10:08:10 +0000 (10:08 +0000)
commit8458ad5d772e57b72cb636b6b463f8ad38873256
tree63ee8cfdd7f3f414136d59a511c37572a60bef7c
parentd03db17a454f2e50a4836738000e20dd446c9aaa
Use a simpler "formula" to decide a default kern.maxthread value;
just 2*NPROCESS rather than NPROCESS+8*MAXUSERS. Results in a slightly
higher maxthread value - the previous value was fairly likely to be
exceeded on a system running a couple of heavily threaded processes.

>                             previous        new
> MAXUSERS    NPROCESS        maxthread       (2*NPROCESS)
> 80          1310            1950            2620
> 64          1054            1566            2108
> 32          542             798             1084

ok kettenis@
sys/conf/param.c