From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97447227915341.tru64-unix-managers.marc@archive.invalid> From: Nikola Milutinovic Date: Fri, 17 Nov 2000 14:52:39 +0000 To: tru64-unix-managers Subject: SUMMARY: Memory Management X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97447227915341 Thanks to: Fergus Donohue who pointed out that he had solved those problems with GNU version of malloc library. Robert Mulley "Dr. Tom Blinn, 603-884-0646" Both pointed out something that should have been obvious to me, malloc is using "sbrk()" system call to increase address space of the process. In order to make things more efficient, "free()" is no longer returning the memory it claimed in "malloc()", in case there is another "malloc()" afterwards. This is a feature, not a bug, we have to live with it. There could be engineered hypothetical situations where this feature would be unwanted, in my opinion. Take a process that has several instances running and that has light-weight memory usage, but occasionally has an excessive memory allocation. After a while all of those processes will have their memory space size nailed to their MAX, with no apparent need. Of course this can be avoided in anumber of ways (manually reclaim memory, have those processes live shorter, etc.). I guess the news is not really that disturbing, but I believe it ca cause problems. Fergus reported he had to switch to GNU malloc because SQUID was running out memory. Thanks to all who replied. Nix. -- ... You have the right to remain silent. USE IT!