[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Patch: optimize kmem_alloc for frequent mid-sized allocations
Andrew Doran <ad%NetBSD.org@localhost> writes:
> How about KASSERT(pa->pa_pagesz == sz) when the cache is being set up?
> Looking at vmem, for its quantum caches it seems to allocate larger
> pool pages, qcache_max*3. I guess this is to avoid excessive
Hm, is the following check in pool_init() insufficient?
if (size > palloc->pa_pagesz)
panic("pool_init: pool item size (%zu) too large", size);
Or is there reason to enforce pa_pagesz == sz if PR_NOPOOL is set, or
reason not to rely on the check in pool_init() (such as since we're
skipping the layer)?
Main Index |
Thread Index |