Keep It Simple, Stupid | |
PerlMonks |
Re: backticks and 'Cannot allocate memory'by NetWallah (Canon) |
on Sep 25, 2010 at 00:54 UTC ( [id://861915]=note: print w/replies, xml ) | Need Help?? |
UPDATE/Progress report: I messed with the code, to avoid using Archive::Extract, using the 2-arg pipe "open" to directly run "gunzip" and get the content. This gave me the same error - after about 30 files, the open/fork failed with "cannot allocate memory".
Then I googled perl,fork,cannot allocate memory I added a 1GB swap space (original was 0.5 G), and things are running much better !!!. Need to wait for the program to complete, but it looks like it is running for much longer. FYI - the machine (actually a VM) has 1GB memory. I will post another update if it fails - otherwise - Happy weekend !!! Update2:I'm happy to be able to confirm that the program is completing. Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In Section
Seekers of Perl Wisdom
|
|