From owner-freebsd-bugs Fri Feb 16 18:23:26 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA24446 for bugs-outgoing; Fri, 16 Feb 1996 18:23:26 -0800 (PST) Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA24438 for ; Fri, 16 Feb 1996 18:23:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id SAA09096; Fri, 16 Feb 1996 18:23:07 -0800 To: Steven Wallace cc: "Garrett A. Wollman" , freebsd-bugs@freebsd.org Subject: Re: malloc() prob in 2.1R? In-reply-to: Your message of "Fri, 16 Feb 1996 12:56:38 PST." <199602162056.MAA12845@newport.ece.uci.edu> Date: Fri, 16 Feb 1996 18:23:07 -0800 Message-ID: <9094.824523787@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@freebsd.org Precedence: bulk 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