Date: Wed, 25 Mar 2015 13:54:09 +0300 From: Gleb Smirnoff <glebius@FreeBSD.org> To: Hans Petter Selasky <hselasky@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r280495 - head/sys/kern Message-ID: <20150325105409.GS64665@FreeBSD.org> In-Reply-To: <201503250855.t2P8tZFp038467@svn.freebsd.org> References: <201503250855.t2P8tZFp038467@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 25, 2015 at 08:55:35AM +0000, Hans Petter Selasky wrote: H> Author: hselasky H> Date: Wed Mar 25 08:55:34 2015 H> New Revision: 280495 H> URL: https://svnweb.freebsd.org/changeset/base/280495 H> H> Log: H> Implement a simple OID number garbage collector. Given the increasing H> number of dynamically created and destroyed SYSCTLs during runtime it H> is very likely that the current new OID number limit of 0x7fffffff can H> be reached. Especially if dynamic OID creation and destruction results H> from automatic tests. Additional changes: H> H> - Optimize the typical use case by decrementing the next automatic OID H> sequence number instead of incrementing it. This saves searching time H> when inserting new OIDs into a fresh parent OID node. H> H> - Add simple check for duplicate non-automatic OID numbers. Why didn't you use alloc_unr(9) for that? -- Totus tuus, Glebius.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150325105409.GS64665>