From owner-freebsd-stable@FreeBSD.ORG Wed Mar 29 14:20:46 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1594A16A42A for ; Wed, 29 Mar 2006 14:20:46 +0000 (UTC) (envelope-from bosko.milekic@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAC9143D83 for ; Wed, 29 Mar 2006 14:20:31 +0000 (GMT) (envelope-from bosko.milekic@gmail.com) Received: by uproxy.gmail.com with SMTP id m3so104479ugc for ; Wed, 29 Mar 2006 06:20:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I3Lapa6TEddj2Ou8ly9viw8ypPgHb4oH1C30zy8fX4MfJIqY8v9dq/5tRrw8Gdj+LJua376AeI8SeTMZTMMgvoChJWZlo0Ot0tPfP3Cn/q45E9KXkXk3AFp9b+dCda8dD6UhE764bgzfkobavMA8+9ANAzlL8/e9Liv4kcjk3EY= Received: by 10.78.52.17 with SMTP id z17mr19315huz; Wed, 29 Mar 2006 06:20:29 -0800 (PST) Received: by 10.78.48.20 with HTTP; Wed, 29 Mar 2006 06:20:29 -0800 (PST) Message-ID: Date: Wed, 29 Mar 2006 09:20:29 -0500 From: "Bosko Milekic" To: "=?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?=" In-Reply-To: <861wwlcsnj.fsf@xps.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3aaaa3a0603281134sd0d4e16x@mail.gmail.com> <20060329030459.40be9cb2.conrads@cox.net> <861wwlcsnj.fsf@xps.des.no> Cc: Chris , "Conrad J. Sabatier" , freebsd-stable@freebsd.org Subject: Re: nmbclusters X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 14:20:46 -0000 It's always only been boot-time tunable (well, "always" is of course relative to my time with FreeBSD -- Dag-Erling has been around longer and therefore recounts its more comprehensive history). In 6.0-CURRENT there was an intention to make it sysctl (runtime) tunable, as it finally became at least theoretically possible to do so. I have recently seen a patch floating around from Paul Saab (ps@) who has finally made it runtime tunable -- at least enough so that it can be _increased_. Not sure if he has committed it, yet. Note that _decreasing_ nmbclusters at run-time will probably never be possible -- implementing is too difficult for what it would be worth. Cheers, Bosko On 3/29/06, Dag-Erling Sm=F8rgrav wrote: > "Conrad J. Sabatier" writes: > > Chris wrote: > > > so [kern.ipc.nmbclusters] has no affect, has this become a read only > > > tunable again only settable in loader.conf? > > To the best of my knowledge, this has *always* been a loader tunable, > > not configurable on-the-fly. > > kern.ipc.nmbclusters is normally computed at boot time. A compile- > time option to override it was introduced in 2.0-CURRENT. At that > time, it was defined in param.c. A read-only sysctl was introduced in > 3.0-CURRENT. It moved from param.c to uipc_mbuf.c in 4.0-CURRENT, > then to subr_mbuf.c when mballoc was introduced in 5.0-CURRENT; became > a tunable at some point after that; then moved again to kern_mbuf.c > when mballoc was replaced with mbuma in 6.0-CURRENT. That is the > point where it became read-write, for no good reason that I can see; > setting it at runtime has no effect, because the size of the mbuf zone > is determined at boot time. Perhaps Bosko (who wrote both mballoc and > mbuma, IIRC) knows. > > DES > -- > Dag-Erling Sm=F8rgrav - des@des.no > -- Bosko Milekic To see all the content I generate on the web, check out my Peoplefeeds profile at: http://peoplefeeds.com/bosko