It is currently Fri, 22 Aug 2014 12:37:16 GMT



 
Author Message
 semget - no space left on device?

SunOS 5.7 Generic_106541-06 sun4u sparc SUNW,Ultra-Enterprise

I've a Perl program making use of IPC::Shareable, which uses
IPC:Semaphore, which is bombing on it's new method at the call for the
system call "semget" with
   Could not create semaphore set: No space left on device

Which seems simple enough, but df -k doesn't indicate any of the disks
being full.

Does anyone know what device semget attempts to read from?  My
understanding is that it's a memory allocation from a shared memory
segment so such an error doesn't make much sense to me.

Any info would be appreciated,
Thanks,
--Scott



 Fri, 23 May 2003 03:00:00 GMT   
 semget - no space left on device?
That's probably just general purpose code translating ENOSPC into "No space
left on device".

The actual reason, from man semget, is likely one of these:

     ENOSPC         A semaphore identifier is to be  created  but
                    the   system-imposed  limit  on  the  maximum
                    number of allowed semaphore identifiers  sys-
                    tem wide would be exceeded.

     ENOSPC         A semaphore identifier is to be  created  but
                    the   system-imposed  limit  on  the  maximum
                    number  of  allowed  semaphores  system  wide
                    would be exceeded.

Andy.

--
I'm not really here - it's just your warped imagination.
news:Pine.GSO.3.96.1001204090853.28875B-100000@stripe.colorado.edu...



 Fri, 23 May 2003 03:00:00 GMT   
 semget - no space left on device?

You probably have used up all your shm's. What happens with IPC::Shareable
is that it will silently create shared memory segments to hold referenced
data structures (like arrays) within your tied hash values.  If you don't
free these segments carefully, they stick around between incantations of
your script, and you'll eventually hit your limit.

Read the documentation carefully for IPC::Shareable again, and use something
like ipcs -m

% man ipcs

to keep track of your shared memory segments.

HTH
--
Joe Schaefer



 Fri, 23 May 2003 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. sparc solaris 2.6, ipcs shows nothing, semget: No Space left on device

2. gramofile - semget: No space left on device

3. Error: semget: No space left on device

4. "semget: No space left on device"

5. sparc solaris 2.6, ipcs shows nothing, semget: No Space left on device

6. semget error: no space left on divice

7. No space left on device (although space exists)

8. How to make space (no space left on device)

9. EXT2-fs error (device 8/3) and ld: no space left on device

10. Uno! Smartmedia - no space left on device


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software