Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 1997 22:49:13 +1000 (EST)
From:      proff@suburbia.net
To:        dg@root.com
Cc:        borjam@we.lc.ehu.es, freebsd-hackers@freebsd.org
Subject:   Re: new malloc
Message-ID:  <19970404124913.6878.qmail@suburbia.net>
In-Reply-To: <199704041027.CAA10928@root.com> from David Greenman at "Apr 4, 97 02:27:01 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> >	The conclusion was: Why not organizing the memory blocks in
> >a LIFO structure? If I do a malloc and malloc can give me the most
> >recently used of all the possible blocks, the probability of causing
> >a page-in is decreased. Depending on the system load, a great
> >number of page-ins can be avoided. (I have observed this in my case)
> >
> >
> >	Of course, the same idea cn be applied adding a MRU policy to the
> >allocation routine.
> 
>    Both Poul-Henning's and the FreeBSD kernel's malloc allocate and insert
> chunks at the head of the free queue - thus they already are LIFO.
> 
> -DG

You also get the benefit of a greater chance of the page being in 
cache.

Cheers,
Julian.



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