For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > February 2007 > Large hashes of hashes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Large hashes of hashes
jrpfinch

2007-02-15, 7:00 pm

I have written a program that constructs a large hash of hashes (of
hashes.... several layers deep) and manipulates it in several ways.
Currently it becomes no larger than 20Mb on a machine that has about
500-600Mb RAM spare.

One day it could possibly exceed the size of the RAM - if this
happens, is there a way to easily adapt the script to use some sort of
virtual memory, or will I have to rewrite the program to use some kind
of database.

I am running it on Solaris 9 and 10 boxes.

Cheers

Jon

usenet@DavidFilmer.com

2007-02-15, 7:00 pm

On Feb 15, 6:57 am, "jrpfinch" <jrpfi...@gmail.com> wrote:
> is there a way to easily adapt the script to use some sort of virtual memory


That's the purview of the operating system. The OS should
automagically page out if necessary (provided sufficient virtual
resources are available).

> or will I have to rewrite the program to use some kind of database.


That might not be a bad idea, regardless of the memory situation.
Nothing manages massive amounts of data as well as a good database.

--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com