Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2003 23:54:45 -0800
From:      David Schultz <das@FreeBSD.ORG>
To:        Tim Robbins <tjr@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: Port of Niels Provos's file descriptor allocation code
Message-ID:  <20031204075445.GA96485@VARK.homeunix.com>
In-Reply-To: <20031127070239.GA12950@wombat.robbins.dropbear.id.au>
References:  <20031127070239.GA12950@wombat.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 27, 2003, Tim Robbins wrote:
> I've ported Niels Provos's file descriptor allocation code to FreeBSD
> in case anyone wants to try it out & run some benchmarks. If the performance
> boost turns out to be worth the added complexity, I might clean it up a
> bit and commit it.

I've used a similar data structure for a special-purpose allocator
before, and it had extremely low allocation time overhead---
basically a few memory references for every level of the tree
in the common case.  Unless for some strange reason it pessimizes
processes with a small number of file descriptors significantly,
it would be really great to have this in the tree!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031204075445.GA96485>