Article View: fa.netbsd.tech.kern
Article #94Re: Question about pool(9) sizes
From: Greg Troxel
Date: Sat, 04 May 2013 01:00
Date: Sat, 04 May 2013 01:00
57 lines
4303 bytes
4303 bytes
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Brian Buhrow <buhrow@nfbcal.org> writes:
> Hello. In my continuing quest to try and get i/o performance up on
> some NetBSD-5.1 production boxes I have, I find I have a question about the
> minimum and maximum sizes of a specific pool.
> Given the following snippet of output from vmstat -m, does the size 164,
> which I realize represents the number of objects in the pool, also
> represent the maximum number of objects in the pool? That is, if more
> than 164 instances of this object are needed, would the system be unable
> to provide the 165th instance or can it grow the pool to accomodate the
> request? If it does grow the pool, would the size value in vmstat -m
> change?
> If I've got it completely wrong, could someone elaborate?
>
> -thanks
> -Brian
>
> Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
> scxspl 164 67714659 0 67714659 2101 2092 9 9 1 inf 9
First, I suggest reading the following, if you haven't already:
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.29.4759
http://www.usenix.org/event/usenix01/bonwick.html
size is the number of bytes in each object - look at vmstat -m and
kmem-N. pools allocate fixed-size objects so they can be efficienctly
packed into pages (see the first paper above). The pool is entirely
unallocated, beacuse requests-releases==0. Note that fail is 0, which
means no requests were denied. There are 9 pages in the pool, and
probably there are 24 objects per page, so 216 unallocated presently.
Pools are designed to return pages to the kernel vm system if they are
not needed, and to get pages when needed. So that line looks like a
very large number of alloc/free, but with no failures and not a lot
still allocated. Hard to really be sure, but it looks entirely healthy
to me.
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (NetBSD)
iEYEARECAAYFAlGEXY8ACgkQ+vesoDJhHiWm2ACgmAseEW5QTLgMjU8EAWqkReIt
QxUAoIpL4lEZAH7BkC6J6vRgDJuUaE3X
=LyxO
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID:
<fa.JLe9vmtzJXjqtxGTu3rUxLW41d0@ifi.uio.no>Path:
arc1-ca.pugleaf.net!bp1ni1423pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!feed-me.highwinds-media.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!goblin3!goblin.stu.neva.ru!newsfeed3.funet.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!uio.no!nntp.uio.no!.POSTED!not-for-mailReferences:
<fa.CvvT61+cNJakq9MTAZACNlhfF5c@ifi.uio.no>Show Full Headers
Complete Article Headers
X-Google-Thread: b7e13b6095,5ac98966a4cb5902
X-Google-Attributes: gidb7e13b6095,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.66.14.165 with SMTP id q5mr5007139pac.47.1367629235280;
Fri, 03 May 2013 18:00:35 -0700 (PDT)
Path: arc1-ca.pugleaf.net!bp1ni1423pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!feed-me.highwinds-media.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!goblin3!goblin.stu.neva.ru!newsfeed3.funet.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Greg Troxel <gdt@ir.bbn.com>
Newsgroups: fa.netbsd.tech.kern
Subject: Re: Question about pool(9) sizes
Date: Sat, 04 May 2013 01:00:34 UTC
Organization: Internet mailing list
Lines: 57
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.JLe9vmtzJXjqtxGTu3rUxLW41d0@ifi.uio.no>
References: <fa.CvvT61+cNJakq9MTAZACNlhfF5c@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
micalg=pgp-sha1; protocol="application/pgp-signature"
X-Trace: readme.uio.no 1367629234 17714 129.240.7.9 (4 May 2013 01:00:34 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Sat, 4 May 2013 01:00:34 +0000 (UTC)
User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (berkeley-unix)
Cc: tech-kern@netbsd.org
To: Brian Buhrow <buhrow@nfbcal.org>
Delivered-To: tech-kern@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
OpenPGP: id=32611E25
X-Hashcash: 1:20:130504:buhrow@nfbcal.org::VOw+8QS5WEkZQ6Qy:000000000000000000000000000000000000000000000lom
X-Hashcash: 1:20:130504:tech-kern@netbsd.org::JWoo65ItQqZ4Ow1s:000000000000000000000000000000000000000005xA9
In-Reply-To: <201305032141.r43LfTsC027562@lothlorien.nfbcal.org> (Brian
Buhrow's message of "Fri, 3 May 2013 14:41:29 -0700")
List-Id: tech-kern.NetBSD.org
Original-Date: Fri, 03 May 2013 20:59:59 -0400
Original-Message-Id: <rmiobcrtv8w.fsf@fnord.ir.bbn.com>
Original-References: <201305032141.r43LfTsC027562@lothlorien.nfbcal.org>
X-Received-Bytes: 3931