Subject: Re: More pools
To: Simon Burge <simonb@wasabisystems.com>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-kern
Date: 10/28/2003 13:33:27
Simon Burge wrote:
> The following diff adds pools for credentials, session headers and lockf
> structures.  These appear to be the last of the fixed-sized structures
> that are malloc'd with any serious frequency (at least for my usage
> patterns).

AFAIK most credentials are heavily shared between processes, there
is (or should be) mostly just one per logged user. Probably not
worth using pools for it. I'm not sure if pools would give any
significant performance difference for lockf/session headers - both
seems to be used seldomly. Pools actually create some memory use
overhead (they allocate memory by a whole page), so probably
shouldn't be used universaly.

It would be nice to have some malloc(9) variant using kernel_map,
for all such nointr allocations.

Jaromir 
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-