i looked at:: perldoc -q free then, /memory looks like your answer - one that you may not like - is there. -- ___cliff rayman___cliff@genwax.com___http://www.genwax.com/ jbrown@dilbert.iz.com wrote: > This is a bug report for perl from bextreme@pobox.com, > generated with the help of perlbug 1.28 running under perl v5.6.0. > > ----------------------------------------------------------------- > [Please enter your report here] > > When deleting entries from a hash, the memory they took is never freed > (not even on destruction of the hash), unless that entry is huge (like 1M+). > Attacted is a script that demonstrates this problem (beware it stores 1000 > 100k entries, taking 100M when run). > When run with 1000 100k entries, it NEVER FREES THE MEMORY, even on hash > destruction, until the script ends. When run with 100 1M entries, it visibly frees memory. (just change count and size to change memory consumption) > > My method of viewing memory size is with > ps -axv > > As I am sure you can guess, this is a MAJOR problem. I have situations where I > load 200+ entries into a hash, and delete them when I am done, and it never gets > freed. Any help at all would be appreciated. > > --- Duplication script. --Thread Previous | Thread Next