[mod_python] No space left on device: Failed to create global mutex

Yann Ramin atrus at stackworks.net
Fri Apr 8 05:24:09 EDT 2005


You actually need to increase the amount of SysV Semaphores on your system.

I use (in /etc/sysctl.conf):
kernel.sem = 512 32000 100 512
(set the options in this file by running sysctl -p).

Yann


dharana wrote:
> This morning after some tests I noticed hda1 was running out of space 
> (236Mb left) so I cleaned it and tried to restart apache. Then apache 
> died and this is was the logs say:
> 
> 
> /var/log # tail /usr/local/hosting/logs/error_log
> [Fri Apr 08 10:30:07 2005] [notice] Digest: done
> [Fri Apr 08 10:30:08 2005] [notice] mod_python: Creating 32 session 
> mutexes based on 150 max processes and 0 max threads.
> [Fri Apr 08 10:30:08 2005] [error] (28)No space left on device: 
> mod_python: Failed to create global mutex 0 of 32 (/tmp/mpmtx27
> 090).
> Configuration Failed
> [Fri Apr 08 10:31:07 2005] [notice] suEXEC mechanism enabled (wrapper: 
> /usr/local/hosting/bin/suexec)
> [Fri Apr 08 10:31:07 2005] [notice] Digest: generating secret for digest 
> authentication ...
> [Fri Apr 08 10:31:07 2005] [notice] Digest: done
> [Fri Apr 08 10:31:08 2005] [notice] mod_python: Creating 32 session 
> mutexes based on 150 max processes and 0 max threads.
> [Fri Apr 08 10:31:08 2005] [error] (28)No space left on device: 
> mod_python: Failed to create global mutex 0 of 32 (/tmp/mpmtx27
> 460).
> Configuration Failed
> 
> 
> 
> I believe it has plenty of space:
> 
> /var/log # LC_ALL=en df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda1             5.5G  4.6G  709M  87% /
> /dev/hdc1             113G   74G   33G  69% /var
> /dev/hda2              30G   17G   12G  58% /var/backups
> 
> 
> /var/log # LC_ALL=en df -i
> Filesystem            Inodes   IUsed   IFree IUse% Mounted on
> /dev/hda1             732960  174583  558377   24% /
> /dev/hdc1            15089664  150185 14939479    1% /var
> /dev/hda2            4030464  122784 3907680    4% /var/backups
> 
> 
> 
> Before I got this error I created 10000+ files in /tmp but deleted them 
> afterwards (testing FileSession).
> 



More information about the Mod_python mailing list