[Mono-dev] xbuild - ** ERROR **: shm_semaphores_init: semget error: No space left on device.

Arne Claassen arnec at mindtouch.com
Fri Nov 12 01:53:35 EST 2010


I'm running mono 2.6.7 (novell rpms) on centos 5.5 w/ mod_mono and  
I've twice run into xbuild stopping to work with this error:

** ERROR **: shm_semaphores_init: semget error: No space left on device.

I don't have the full error right now, since i rebooted the machine  
again and didn't capture it first. But it talks about either removing  
semaphores using ipcrm and ipcs or increasing the max semaphores

After restart, ipcs has no Semaphore Arrays, but after i hit my  
various asp.net apps, that output quickly goes up:


------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x0101400b 327680     root       600        52828      45
0x01014069 360449     root       600        52828      26
0x740102df 131074     root       600        4          0
0x010140af 393219     root       600        52828      26
0x010140b1 425988     root       600        52828      26

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x00000000 0          root       600        1
0x00000000 65537      apache     600        1
0x00000000 98306      apache     600        1
0x00000000 131075     apache     600        1
0x00000000 163844     apache     600        1
0x00000000 196613     apache     600        1
....
etc.

When the error occured, that list of arrays was about 100 long.  
restarting apache, mod_mono, etc didn't help. Killing off semaphores  
using ipcrm seemed to get xbuild working again, but the asp.net apps  
then only returned blank pages. Finally I rebooted again.

Not knowing what those semaphores are and what makes them increase,  
leaves me a bit worried. Do i just need more semphores (and how do i  
do that) or is xbuild just creating them and never cleaning them up?  
Any help understanding what this means and how to either prevent or at  
least clean it up would be greatly appreciated.

cheers,
Arne Claassen

MindTouch
San Diego, CA
http://twitter.com/sdether



More information about the Mono-devel-list mailing list