Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 1996 18:23:07 -0800
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        Steven Wallace <swallace@ece.uci.edu>
Cc:        "Garrett A. Wollman" <wollman@lcs.mit.edu>, freebsd-bugs@freebsd.org
Subject:   Re: malloc() prob in 2.1R? 
Message-ID:  <9094.824523787@time.cdrom.com>
In-Reply-To: Your message of "Fri, 16 Feb 1996 12:56:38 PST." <199602162056.MAA12845@newport.ece.uci.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
Maybe that's why X Inside hasn't shipped Motif for FreeBSD yet.  They
say it bloats up enormously during the validation suite for FreeBSD 2.1
and this doesn't happen for any of their other OS's.

					Jordan

> > 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?9094.824523787>