Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl: the Markov chain saw
 
PerlMonks  

Re^2: No child processes - system limit?

by clinton (Priest)
on Apr 01, 2010 at 14:15 UTC ( #832310=note: print w/ replies, xml ) Need Help??


in reply to Re: No child processes - system limit?
in thread No child processes - system limit?

Well, the reason I'm thinking resource limit is that this only occurs when busy, and then a couple of seconds later it works fine again.

The docs for select indicate that this is the select(2) system call, but the docs for that say the following:

...On error, -1 is returned, and errno is set appropriately;...

and lists the following errors:
  • EBADF
    An invalid file descriptor was given in one of the sets. (Perhaps a file descriptor that was already closed, or one on which an error has occurred.)
  • EINTR
    A signal was caught; see signal(7).
  • EINVAL
    nfds is negative or the value contained within timeout is invalid.
  • ENOMEM
    unable to allocate memory for internal tables.
... none of which correspond to the no child processes, and leaving me at a bit of a loss


Comment on Re^2: No child processes - system limit?
Select or Download Code
Re^3: No child processes - system limit?
by almut (Canon) on Apr 01, 2010 at 14:26 UTC

    What do you get for

    $ getconf CHILD_MAX

    (or getconf -a, just in case...)

      for getconf CHILD_MAX i get: 27968

      for getconf -a

      any of these mean anything to you?

        27968 seems large enough... (or do you really have that many processes?)

        On some older linux systems, this is set to 999, which is somewhat closer to potentially becoming a problem. (BTW, this value does not necessarily correspond to what is reported by ulimit — which is why I asked.)

        The other cause for a fork to fail is insufficient memory (presuming the "waiting for a non-existent child"-theory I mentioned above).  So, is the memory usage actually close to the limit when the problem occurs?

        I'll take a closer look at the other conf settings to see if anything jumps out at me (not that I would know what every single one of them means... :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832310]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-04-19 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls