469,284 Members | 2,507 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,284 developers. It's quick & easy.

Out of Memory

I am running perl -v

This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

on a MacOSX 10.4, dual cpu with 2GB of RAM and 230 GB free on the drive.

I am getting the following from a well tested program as I scale the
problem up for a data processing problem.

perl(2013) malloc: *** vm_allocate(size=8421376) failed (error code=3)
perl(2013) malloc: *** error: can't allocate region
perl(2013) malloc: *** set a breakpoint in szone_error to debug
Out of memory!

I know exactly where I can short circuit inside a major loop, which causes
the error to occur or not, and the error occurs at the same point in my
data stream (it is not the data--have less powerful linux machine running
fine) every
time. The next line following my early break in the major loop is another
push(@array,$something). About 1GB RAM is used as the program spins up
and reads in all external data. VM grows to about 1.4-1.5 GB, which does
surprize me. I do not have permanently growing arrays--each time the
major loop is done data is written to a file and arrays cleared. As the
process does its thing, RAM for the process actually diminishes and VM
grows.

With this much machine, I should not have memory problems at this level.
Have I hit the wall with perl? Do I need to "tune" the machine to
get into much much larger memory usage. Advice on how to pursue this mater
further.


Sep 18 '05 #1
1 7632
In article <Pi******************************@mac1ast.local> , William H.
Asquith <wa******@mac1ast.local> wrote:
I am running perl -v

This is perl, v5.8.6 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)

on a MacOSX 10.4, dual cpu with 2GB of RAM and 230 GB free on the drive.

I am getting the following from a well tested program as I scale the
problem up for a data processing problem.


[problem description snipped]

This newsgroup is defunct. Try posting your question on
comp.lang.perl.misc instead. Try to put together a sample program that
illustrates your problem and post that.
Sep 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Frank Esser | last post: by
4 posts views Thread by Franklin Lee | last post: by
9 posts views Thread by Mike P | last post: by
22 posts views Thread by xixi | last post: by
14 posts views Thread by Alessandro Monopoli | last post: by
1 post views Thread by Nick Craig-Wood | last post: by
1 post views Thread by Jean-Paul Calderone | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.