Re: Open by inode? (was Re: knfsd)

Florian Weimer (fw@cygnus.stuttgart.netsurf.de)
16 Jan 1999 22:42:09 +0100


Magnus Ahltorp <map@stacken.kth.se> writes:

> (please cc answers to the author, mail sorting is hard otherwise)
>
> > > In arla (a free AFS implementation), we manage a lot of files in a
> > > cache directory. If normal lookups are used, this is very slow, since
> > > lots of files lie in the same directory. This is speeded up somewhat
> > > by the directory cache, but this is not very effective if the file is
> > > not used for long and then suddenly used.
> >
> > Why aren't you using a multilevel cache directory??
>
> Because open-by-handle is even faster (O(1) directory operations) than
> multilevel directories (O(log n) directory operations).

Use a specially designed filesystem and the ordinary open(2) interface.
You can even implement something like that completely in user space
(using big, preallocated files, like INN's CNFS spool).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/