*BSD News Article 8252


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!agate!usenet.ins.cwru.edu!murphy!ljo
From: ljo@murphy.eeap.cwru.edu (L. Jonas Olsson)
Newsgroups: comp.unix.bsd
Subject: [386BSD] time for better malloc?
Date: 25 Nov 1992 18:55:02 GMT
Organization: Case Western Reserve Univ. Cleveland, Ohio (USA)
Lines: 13
Message-ID: <1f0i66INNj9o@usenet.INS.CWRU.Edu>
NNTP-Posting-Host: murphy.eeap.cwru.edu
Summary: need new malloc for large allocations

The malloc in 386BSD uses blocks of different size, and the next larger size
block is used. This is supposed to very fast, but when running my code
(computer vision with many images in memory) the data size is reduced from
24MB to 12MB when switching to FSF's malloc. (Strange, this matches the worst
possible case, doesn't it?)

I don't know if FSF's malloc is the best to switch to, but the original does
not seem to be suitable for this kind of data allocation. I also have not
tried to compile all of the system with a new malloc.

	Jonas Olsson
	ljo@po.cwru.edu