Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Cannot fork in Parallel::ForkManager

by Perlbotics (Archbishop)
on Apr 08, 2015 at 08:30 UTC ( [id://1122781]=note: print w/replies, xml ) Need Help??


in reply to Cannot fork in Parallel::ForkManager

Seems, that the current setup is too big/expensive to be handled by your machine?
I would check the value of @ciaona_pwm_array first. Is it too big or other than expected?
$seq_1 and $seq_2 seems to stay constant. Are you sure, you're partition the task correctly? I.e., due to the fork() if you change some global variables, the change will only take place in the copy of the process (child) and not back-communicated to the parent who should perform the partition task (ok, that's speculation, but perhaps it triggers an idea...?).
Perhaps, you can reduce the memory footprint of the parent before the fork takes place, e.g. let the child read only a chunk of data to be processed?

Replies are listed 'Best First'.
Re^2: Cannot fork in Parallel::ForkManager
by plagent (Novice) on Apr 09, 2015 at 06:26 UTC

    Thanks. You are right.

    The generation of $seq_1/$seq_2 consume a huge amount of memory. In fact, $seq is a DNA string generated from a shuffle program.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found