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
From:
___cliff rayman___
Date:
July 31, 2000 18:45
Subject:
Re: [ID 20000731.009] Does not free memory when deleting hash keys < 1M,!
Message ID:
39862B6C.8C47C23@spamless.genwax.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About