Subject: kern/36979: Not enough semaphore sets by default
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <lloyd@archangel.must-have-coffee.gen.nz>
List: netbsd-bugs
Date: 09/13/2007 08:15:00
>Number:         36979
>Category:       kern
>Synopsis:       Various programs require more than 10 semaphore sets
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 08:15:00 +0000 2007
>Originator:     Lloyd Parkes
>Release:        NetBSD 4.0_RC1
>Organization:
Must Have Coffee
>Environment:
System: NetBSD archangel.must-have-coffee.gen.nz 4.0_RC1 NetBSD 4.0_RC1 (GENERIC) #30: Thu Sep 6 06:40:54 NZST 2007 lloyd@thallid.must-have-coffee.gen.nz:/vol/scratch/obj/sparc64/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:

mod_python (and anecdotally a number of other programs) create more
semaphore sets than NetBSD 4.0 has to offer. I expect that this wasn't
a problem in the past because we didn't have semaphores in NetBSD. I
see people complaining that NetBSD 4.0 has busted applications that
ran fine on older versions of NetBSD.

We really ought to bump up the number of semaphore sets by quite a bit
before the 4.0 release. Maybe 128 semaphore sets with 256 semaphores?

>How-To-Repeat:

Build and install ap2-python. Watch Apache fail to start up with bad
messages about mutexes. This might require Apache 2.2 with the worker
MPM.

>Fix:

I have no idea how to create more semaphore sets in NetBSD 4.0. There
are no config options for this documented in
sys/arch/sparc64/conf/GENERIC.