tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Patch: optimize kmem_alloc for frequent mid-sized allocations
On Tue, Feb 10, 2009 at 07:27:38PM +0900, enami tsugutomo wrote:
> Andrew Doran <ad%NetBSD.org@localhost> writes:
>
> > The below patch introduces an additional level of caching,
> > from the maximum size provided by the quantum cache up to PAGE_SIZE. It also
> > adds debug code to check that allocated size == freed size.
> >
> > http://www.netbsd.org/~ad/cleanout/kmem.diff
>
> Your point is to keep memory in pool cache and not in pool itself,
> right? If so, we want to bypass pool layer to avoid page header
> allocation, don't we?
I think that's a great idea. It could be done without an ABI change if an
additional flag was introduced and the 'palloc' argument to pool_cache_init
was made a 'void *'.
Andrew
Home |
Main Index |
Thread Index |
Old Index