please see code for slurp.pl at
All files in dir to Storable.pm data.
[307] $ Out of memory during "large" request for 536875008 bytes, tota
+l sbrk() is 1278849720 bytes at blib/lib/Storable.pm (autosplit into
+blib/lib/auto/Storable/_freeze.al) line 261, at /#snipped#/bin/slurp.
+pl line 17
The path has been sanitized to protect myself and my employer. The machine in question is a Sun Ultra 2 with 2gb of ram (this is a multiuser process server running Oracle and Netscape Server as well, so I dont get all 2gb), and I am attempting to stuff approximately 600mb of plain text data, comprising 4,500 files, into a hash. Storable barfs. How can I use less ram? Or perhaps implement a sequential write so that I'm eating, say, 256mb of ram at a time rather than the whole enchilada?
thanks
brother dep.
--
Laziness, Impatience, Hubris, and Generosity.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.