Whenever you compile a program under Un*x, you have four potential RAM limitations: It is entirely possible that you are using up the memory that was allowed for Perl to use and that Perl was compiled with a too-low-for-you mem limitation. If it is an option, you might try recompiling Perl with the -dm option to request what this compile-time limitation is. You say your system maxes out at 65 iterations. Why not fire up 10 iterations or even 1 iteration and first make sure that (1)Your code works as you request (2) and there are no memory leaks before fooling around with Perl's internals.

Also, it looks to me like your program could benefit from threads if dacts() is forking off Napster clients. Unfortunately, threads are in pretty poor shape in Perl. Click here to see why. A C program with an embedded Perl interpreter might help you initialize and get you ready to run but the threads would heavily cut down on memory usage by those clients. If dacts() does not fork than you are confused because you use terms like "threaded" and "spawn" and thus make this paragraph null. Though, as tilly mentions, no one can imagine what dacts() does, if your system is coming to a halt, then I imagine that a large amount of processes are being forked. Another thing to ask yourself, also, is: Do I need so many Napster clients?

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

In reply to Re: So is this a kernel limitation, a hardware limitation, or a perl limitation? by AgentM
in thread So is this a kernel limitation, a hardware limitation, or a perl limitation? by deprecated

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.