Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to backticks and 'Cannot allocate memory'

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
and there was a recommendation to adjust the swap size.

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

  • Comment on Re: backticks and 'Cannot allocate memory'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found