Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 138045

Summary: mod_python under apache +threads needs sysctl settings
Product: Gentoo Linux Reporter: Dima Tisnek <dimaqq>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: VERIFIED NEEDINFO    
Severity: normal CC: python
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dima Tisnek 2006-06-26 07:03:57 UTC
I have emerged the following:
USE="threads ssl apache2" ACCEPT_KEYWORDS="~amd64" emerge -av apache mod_python
(apache-2.0.58, mod_python-3.1.4-r1)
ran etc-update and then added -D PYTHON in /etc/conf.d/apache

Apache would not start with the following:
[error] (28)No space left on device: mod_python: Failed to create global mutex 0 of 32 (/tmp/mpmtx16120).

Apparentely kernel (2.6.16-r2 gentoo) settings (I had default) for sysv semaphores need to be tweaked - I used the following found on the net:
sysctl -w kernel.sem="512 32000 100 512"

If these settings are needed, ebuild shouls install them into /etc/sysctl.conf

The actual values depend on mod_python settings (can't locate) and, I suppose, on apache options too (mpm_*, threads).

Cheers
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-01-08 20:11:34 UTC
(In reply to comment #0)
> I have emerged the following:
> USE="threads ssl apache2" ACCEPT_KEYWORDS="~amd64" emerge -av apache mod_python
> (apache-2.0.58, mod_python-3.1.4-r1)
> ran etc-update and then added -D PYTHON in /etc/conf.d/apache
> 
> Apache would not start with the following:
> [error] (28)No space left on device: mod_python: Failed to create global mutex
> 0 of 32 (/tmp/mpmtx16120).
> 
> Apparentely kernel (2.6.16-r2 gentoo) settings (I had default) for sysv
> semaphores need to be tweaked - I used the following found on the net:
> sysctl -w kernel.sem="512 32000 100 512"

Is this still an issue with >=2.6.17 ?
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2007-01-15 23:30:09 UTC
Waiting on user info, please reopen if needed.
Best regards, CHTEKK.
Comment 3 Dima Tisnek 2007-01-16 11:07:43 UTC
the problem is no longer there, i suspect due to a newer version of mod_python
following versions work for me out of the box:
dev-python/mod_python-3.2.10
net-www/apache-2.0.59-r2
sys-kernel/gentoo-sources-2.6.17-r2

the default sysctl settings are the same, so I doubt that kernel upgrade had anything to do with it :)