From owner-freebsd-bugs Sat Sep 13 14:30:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA00989 for bugs-outgoing; Sat, 13 Sep 1997 14:30:03 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA00983; Sat, 13 Sep 1997 14:30:01 -0700 (PDT) Date: Sat, 13 Sep 1997 14:30:01 -0700 (PDT) Message-Id: <199709132130.OAA00983@hub.freebsd.org> To: freebsd-bugs Cc: From: Poul-Henning Kamp Subject: Re: bin/4526: realloc causes excessive swapping (more info for bin/4524) Reply-To: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/4526; it has been noted by GNATS. From: Poul-Henning Kamp To: mak@webcrawler.com Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/4526: realloc causes excessive swapping (more info for bin/4524) Date: Sat, 13 Sep 1997 22:10:07 +0200 > > Repeatedly calling realloc causes much more memory to be used > then you'd expect. For example, when procmail tried reading an > 8M message, this was sufficient to run a 64M (128M swap) machine > doing nothing else out of swap (and into the ground :-) > [...] >>Fix: > > Recompiling the code with the malloc.c from freebsd-current > And remember to try this: ln -s H /etc/malloc.conf (It's default in -current since middle august). -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."