From owner-freebsd-net@FreeBSD.ORG Thu Jan 18 14:05:58 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4CB4216A415; Thu, 18 Jan 2007 14:05:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id B72F213C465; Thu, 18 Jan 2007 14:05:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 65E53EB111B; Thu, 18 Jan 2007 22:05:55 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id lH4PLJ-QIFXF; Thu, 18 Jan 2007 22:05:43 +0800 (CST) Received: from [192.168.1.32] (unknown [221.222.204.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 9803FEB08F2; Thu, 18 Jan 2007 22:05:42 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=Xr0mhp/A9zIEm1I8/WbXLOoyvo1mXlYGJ8dUsWhEIwNQ1bHMVsAdMHylIXmM2pC9q bkg4ghjVh6IgAREJSowPw== Message-ID: <45AF7E5A.4080109@delphij.net> Date: Thu, 18 Jan 2007 22:04:10 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Randall Stewart References: <45AF55DE.1070700@cisco.com> <45AF7962.7040407@cisco.com> <20070118135319.GB1874@haakonia.hitnet.RWTH-Aachen.DE> <45AF7CF8.6030102@cisco.com> In-Reply-To: <45AF7CF8.6030102@cisco.com> X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig8EABD3934C6AD61935167CBD" Cc: freebsd-net , Christian Brueffer Subject: Re: mbuf large clusters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2007 14:05:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8EABD3934C6AD61935167CBD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Randall Stewart wrote: > Christian Brueffer wrote: >=20 >> >> Not sure if I'm understanding you correctly, but kern.ipc.nmbclusters = is >> a tunable not a sysctl, so it has to be set in /boot/loader.conf or at= >> the loader prompt (see loader(8)). >> >=20 > Not in current from what I see (if > I understand this correctly of course): > ----------------------------------------------------- > static int > sysctl_nmbclusters(SYSCTL_HANDLER_ARGS) > { > int error, newnmbclusters; >=20 > newnmbclusters =3D nmbclusters; > error =3D sysctl_handle_int(oidp, &newnmbclusters, sizeof(int), req= ); > if (error =3D=3D 0 && req->newptr) { > if (newnmbclusters > nmbclusters) { > nmbclusters =3D newnmbclusters; > uma_zone_set_max(zone_clust, nmbclusters); > EVENTHANDLER_INVOKE(nmbclusters_change); > } else > error =3D EINVAL; > } > return (error); > } > SYSCTL_PROC(_kern_ipc, OID_AUTO, nmbclusters, CTLTYPE_INT|CTLFLAG_RW, > &nmbclusters, 0, sysctl_nmbclusters, "IU", > "Maximum number of mbuf clusters allowed"); >=20 > ----------------------------------------------------- >=20 > It looks to me like it lets you INCREASE the value from > the calculated system value.. but NOT shrink it :-0 No, shrinking it is not currently supported... It can easily trigger 'zonelimit' livelock if not handled properly. On the other hand, the code seems to have some problem as it allows setting an upper limit when there is no upper limit (nmbclusters=3D0). Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig8EABD3934C6AD61935167CBD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFr35aOfuToMruuMARA+dAAJ9KAEsXi5S02HBFwGxe0EwofXcXggCggiAY I3XJXARvul3kQG7qCLiPBiA= =JrWS -----END PGP SIGNATURE----- --------------enig8EABD3934C6AD61935167CBD--