Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: No child processes - system limit?

by almut (Canon)
on Apr 01, 2010 at 14:26 UTC ( #832311=note: print w/replies, xml ) Need Help??


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

What do you get for

$ getconf CHILD_MAX

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

Replies are listed 'Best First'.
Re^4: No child processes - system limit?
by clinton (Priest) on Apr 01, 2010 at 14:39 UTC
    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... :)

        Nowhere near 27968 processes, and plenty of memory free. Avg load is around 3, so not terribly high either

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832311]
help
Chatterbox?
[Your Mother]: They would think so.
[jdporter]: ok, I need a recipe for piping lines "through" an external program which is itself a filter
[jdporter]: without using a tmp file
[1nickt]: tobyink perl -MTypes::Standard= is_Int -Mstrict -wE 'say 1 if is_Int 1.0'
[jdporter]: so that I can use the existing expand unix util. Otherwise, I'll probably use Text::Tabs.
[1nickt]: pryrt I guess I don;t really care if user 42 logs on as 42.0 ... more of an academic question at this point.
[LanX]: jdporter: open PIPE,'-|' ?
[LanX]: oh you want the result line by line?
[jdporter]: ok, LanX, then what?
[jdporter]: It doesn't have to be line by line. Just "my program" "writes" to the external prog and also/then "reads" from it.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (13)
As of 2017-05-24 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?