From: Matthyw T. <MT...@fl...> - 2004-02-20 22:37:32
|
I've just got my new-and-improved ASSP box up and running (p3-450 w/ = 512mb) and I've noticed a similar problem with memory as on my older = (p-166, 192mb) machine - rebuildspamdb.pl doesn't seem to give back the = memory it uses on rebuild. My memeory usage went from about 450mb free = down to about 250mb free during the rebuild, and the available memory does = not come back when the script finishes. =20 The problem is that memory allocated by a program never really gets = returned to the operating system once the program exits. There are a few = ways to dealing wit hthis we could implement.. -Judicious use of the my operator in the script -Use undef() and delete() on everything when they are no longer needed -setting the arrays/hashes to empty (ie, \@foo=3D[]; or @foo=3D(); ) = within the script might help, too. I will play with this as soon as I can - John, do you have an opinion = here? Matthyw Thomas BSc.Eng Project Engineer BMT Fleet Technology Limited 311 Legget Drive Kanata, Ontario, Canada K2K 1Z8 Tel: +1 613 592-2830 ext. 341 Fax: +1 613 592-4950 mt...@fl... |