From owner-freebsd-questions Sat Apr 27 15:26:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA12511 for questions-outgoing; Sat, 27 Apr 1996 15:26:30 -0700 (PDT) Received: from palmer.demon.co.uk (palmer.demon.co.uk [158.152.50.150]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA12504 for ; Sat, 27 Apr 1996 15:26:25 -0700 (PDT) Received: from palmer.demon.co.uk (localhost [127.0.0.1]) by palmer.demon.co.uk (sendmail/PALMER-1) with ESMTP id XAA05110 ; Sat, 27 Apr 1996 23:25:36 +0100 (BST) To: Brandon Gillespie cc: "Mr Sean Batson A.C.P." , questions@FreeBSD.ORG From: "Gary Palmer" Subject: Re: Free(); In-reply-to: Your message of "Sat, 27 Apr 1996 16:09:52 MDT." Date: Sat, 27 Apr 1996 23:25:34 +0100 Message-ID: <5108.830643934@palmer.demon.co.uk> Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Brandon Gillespie wrote in message ID : > On Sat, 27 Apr 1996, Gary Palmer wrote: > > The problem is addressed in 2.2 which a new malloc/free (phkmalloc), > > but since Netscape is statically linked on BSDI's BSD/OS, we depend on > > them having a non-leaking malloc... (AFAIK) > Does phkmalloc actually give memory back to the OS, i.e. can a process > which has a footprint of 7MB (both VM and actual) actually shrink in size? > I have heard conflicting answers as to if this is even possible with > unix.. I believe so. I all depends of course... if you malloc several hundred 70 byte chunks and then free one, you won't see a difference as you will need to free at least one page before the OS can resuse it (i.e. 4k on i386s). Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD - Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info.