You do not mention what OS are you in. Things like this can happen when you do not remove the IPC structures before exiting, leaving them behind.

Many OSes have limits on the amount of shared memory, semaphores or message queues they can create. The limit is often unrelated to how large is the system. The combination of these things can be the problem.

You can check this out by using the ipcs command, like in:

[root@guess again]# ipcs ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status ------ Semaphore Arrays -------- key semid owner perms nsems status ------ Message Queues -------- key msqid owner perms used-bytes messages
The above example shows an empty IPC table, which is the state that your program should leave your machine after running. The output of the command can be different, so be sure to check your docs on this one.

If you find dangling IPC structures after your program is done, you can manually delete them using the ipcrm command. Again, check your manual on how to do this.

Good luck.


In reply to Check IPC availability by fokat
in thread Problems with IPC::Shareable - Could not create semaphore set: No space left on device by jryan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.