Subject: Re: increasing NMBCLUSTERS
To: None <tech-net@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: tech-net
Date: 09/30/2005 22:56:49
"Roberto" <roberto@redix.it> writes:

>> On Wed, Sep 28, 2005 at 02:16:12PM -0600, Herb Peyerl wrote:
>>> Memory resource pool statistics
>>> Name        Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg
>>> Maxpg Idle
>>> mclpl       2048   183151 22639  117629 40643  7882 32761 32761     4
>>> 32768    0
[]
>> Hum
>> 183151 - 117629 = 65522, so this really makes 32761 pages.
>> Looks like a leak somewhere, because it seems these clusters are not
>> attached to mbufs (there isn't 65522 mbufs allocated).
>
> Sorry but I do not understand what you figure out: why 65522 makes 32761
> pages?

This, at least, I think I can explain: the "Size" field above is 2048;
that'd be the size of objects allocated from this pool, and is half a
4k page.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))