S
Shikhar
Perl Gurus,
I have a Perl program that reads certain file(s) and stores contents
in hash maps. The files are not huge per se,. One of the file is 100
bytes long * 100,000 records (80 megs).
I have always thought/read that Perl can read whole file and work
efficiently. I had this program running nicely with a 40 meg file.
Now I am getting "Out of Memory!" problem with 80 meg file.
In Java I can use heap size parameters to set initial and maximum heap
sizes and they work nicely.
How can I deal with situation here. I checked in Top and memory
utilization for the process was around 56,264 K which does not seem a
lot.
System : HP-UX 11.0
This is perl, v5.6.1 built for PA-RISC1.1-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 627 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 21:42:53 Jun 20 2001
Memory Info
4 gb physical
From glance : Total VM : 279.5mb Sys Mem : 270.6mb User Mem:
1.50gb Phys Mem: 4.00gb
I have a Perl program that reads certain file(s) and stores contents
in hash maps. The files are not huge per se,. One of the file is 100
bytes long * 100,000 records (80 megs).
I have always thought/read that Perl can read whole file and work
efficiently. I had this program running nicely with a 40 meg file.
Now I am getting "Out of Memory!" problem with 80 meg file.
In Java I can use heap size parameters to set initial and maximum heap
sizes and they work nicely.
How can I deal with situation here. I checked in Top and memory
utilization for the process was around 56,264 K which does not seem a
lot.
System : HP-UX 11.0
This is perl, v5.6.1 built for PA-RISC1.1-thread-multi
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2001, Larry Wall
Binary build 627 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 21:42:53 Jun 20 2001
Memory Info
4 gb physical
From glance : Total VM : 279.5mb Sys Mem : 270.6mb User Mem:
1.50gb Phys Mem: 4.00gb