develooper Front page | perl.perl5.porters | Postings from July 2000

Re: [ID 20000731.009] Does not free memory when deleting hash keys < 1M,!

Thread Previous | Thread Next
___cliff rayman___
July 31, 2000 18:45
Re: [ID 20000731.009] Does not free memory when deleting hash keys < 1M,!
Message ID:
i looked at::
perldoc -q free


looks like your answer - one that you may not like - is there.

___cliff rayman___cliff@genwax.com___ wrote:

> This is a bug report for perl from,
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About