From owner-freebsd-arch Tue Jan 16 17:26:10 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id 9D8FA37B69F for ; Tue, 16 Jan 2001 17:25:52 -0800 (PST) Received: (from daemon@localhost) by smtp02.primenet.com (8.9.3/8.9.3) id SAA23983; Tue, 16 Jan 2001 18:20:22 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp02.primenet.com, id smtpdAAA67aqWU; Tue Jan 16 18:20:15 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id SAA19549; Tue, 16 Jan 2001 18:25:43 -0700 (MST) From: Terry Lambert Message-Id: <200101170125.SAA19549@usr08.primenet.com> Subject: Re: dynamic vs static sysctls? To: bright@wintelcom.net (Alfred Perlstein) Date: Wed, 17 Jan 2001 01:25:43 +0000 (GMT) Cc: mckusick@mckusick.com (Kirk McKusick), arch@FreeBSD.ORG In-Reply-To: <20010115223342.L7240@fw.wintelcom.net> from "Alfred Perlstein" at Jan 15, 2001 10:33:42 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I like this optimization, the only problem is that there's a chance > that a dynamic sysctl may disapear out from under you, and even > worse, replaced by an unrelated writeable one. > > Perhaps you should include a generation count within the sysctl to > prevent this sort of potential problem? So besideds passing the > sysctl number, you would include a generation count and error out > if both numbers didn't match? Dynamically created OIDs should: 1) Monotonically increase 2) Be illegal to cache over reboots 3) Reset on reboots Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message