Re: String replacements leak small amounts of memory each time
From:
Chet Ramey
Subject:
Re: String replacements leak small amounts of memory each time
Date:
Sun, 13 Jun 2010 22:52:59 -0400
User-agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1
On 6/13/10 5:33 PM, Øyvind Hvidsten wrote:
> It could be logical leaks, or whatever is the correct english term for
> them. Memory that's used, and kept track of, but not used again, and not
> freed until the program shuts down. The memory usage is constantly
> increasing. I have a process using 3 gigs now, and it just runs one of
> those testcases (on a lot more data).
You could try using the system malloc instead of the one that comes with
bash. Configure --without-bash-malloc and see if that changes the
allocation behavior.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/