[PATCH] Double-level file descriptor allocation

Skip Ford skip.ford at verizon.net
Thu Jan 22 06:04:25 PST 2004


esmith wrote:
> Skip Ford wrote:
> >Here's a DragonFly port of Tim Robbins' FreeBSD port of Niels
> >Provos' NetBSD file descriptor allocation code.
> ..
> >          fd    Unpatched      Patched
> >            1    0.765650     0.781279
> >         2001    1.148484     0.789092
> >         4001    1.546935     0.765657
> ..
> >        48001   12.453618     0.812530
> 
> Is there a down-side to this?

Theoretically the downsides are more memory's needed to store the
filedesc structure, and more cycles are needed to initialize the
bitmaps.

-- 
Skip





More information about the Kernel mailing list