Subject: Re: kernel map entry merging and PR 24039
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 02/05/2004 01:21:52
>> how do you know 16 or so is enough?
>
>It's just a guess.  What I'm assuming is that if you start with 16, and 
>try to never let that drop below 8 (allocating more if you do), then 
>you'll "never" run out.  If you do, well, panic, for now, I guess.
>
>I'm just trying to offer suggestions that might lead to a better fix 
>than simply disabling map entry merging for kernel maps.

how about some sort of "pool" allocator that keeps ~10% of freed map
entries around?  ie, count when entries are allocated and attempts to
keep one free one on a list for every 10 that are in use?

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."