Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 10:57:49 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Mike Smith <msmith@FreeBSD.ORG>, <freebsd-arch@FreeBSD.ORG>
Subject:   Re: RFC: unit_list routines 
Message-ID:  <Pine.BSF.4.33.0105241055390.58788-100000@herring.nlsystems.com>
In-Reply-To: <200105231600.f4NG0VF05877@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 May 2001, Brian Somers wrote:

> > > unit_list just concerns itself with allocating a bunch of int ranges.
> > >
> > > Do you really think it's appropriate to try to re-use the rman stuff
> > > for what I want to do ?
> >
> > Yes.  By all means, wrap the rman interface with something that makes it
> > clearer what you're doing, but if you're managing a finite set of
> > resources of some sort, you should avoid reinventing the wheel where
> > possible.
>
> The way I see it, I need a wheel.  rman is a chassis that you can
> attach a wheel to.
>
> I'd rather have my own private wheel as I don't need the tires,
> inner tubes and all the other stuff that comes with rman :)
>
> > (It's not clear yet whether any of the items on your list actually relate
> > to tangible performance penalties, about the only good reason to consider
> > NIH.)
>
> My real problems are the mutexes (unnecessary contention), the memory
> overheads (all this extra zero-filled memory) and the obfuscation.

I'm sorry but just how many unit allocations are you planning to do? There
are only going to be a handful of them and the mutex/memory overheads are
just noise compared to the rest of the kernel.

-- 
Doug Rabson				Mail:  dfr@nlsystems.com
					Phone: +44 20 8348 6160



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0105241055390.58788-100000>