Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 1996 12:56:38 -0800
From:      Steven Wallace <swallace@ece.uci.edu>
To:        "Garrett A. Wollman" <wollman@lcs.mit.edu>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: malloc() prob in 2.1R? 
Message-ID:  <199602162056.MAA12845@newport.ece.uci.edu>
In-Reply-To: Your message of "Fri, 16 Feb 1996 15:49:42 EST." <9602162049.AA21188@halloran-eldar.lcs.mit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Not at all surprising.  The memory allocator in 2.1 allocates memory
> for the next power of two greater than or equal to (size +
> malloc_overhead).  So, the next power of two greater than or equal to
> (4096 + a_small_amount) is 8192.  -current uses a different allocator
> and doesn't over-allocate in this way.
> 
That is STUPID!  (perhaps easy to implement, but stupid nevertheless)

Boy I'm glad phk put his new malloc in.

This is a HUGE memory waster!

(I'm gonna compile 2.1 libc using -current malloc)

Steven



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602162056.MAA12845>