Date: Fri, 23 Jun 1995 20:19:11 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: Memory leak somewhere? Message-ID: <199506231819.UAA29712@uriah.heep.sax.de> In-Reply-To: <9506230937.AA26679@elbe.desy.de> from "Lars Gerhard Kuehl" at Jun 23, 95 11:37:49 am
next in thread | previous in thread | raw e-mail | index | archive | help
As Lars Gerhard Kuehl wrote: > > > Relink the server with either -lgnumalloc or -ldlmalloc (found in > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > ports/devel/libdlmalloc). The libc's malloc take as much as two times the > > memory needed per allocation. > > That may reduce memory loss, but doesn't really solve the problem. > Unused memory needs to be actually released. Standard malloc is not supposed to ever return the freed space back to the operating system. GNU malloc does (i.e., it is able to reduce the brk value in case it's detecting that this is possible). Even SGI's X server suffers from this problem, especially since they are too proud to admit this and didn't tell their xdm to restart the server at logout. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506231819.UAA29712>