On Wednesday 10 September 2008 15:52, Daniel Phillips wrote:
On Wednesday 10 September 2008 18:23, Benjamin K. Stuhl wrote:
It is not as bad as that, it is just a probe or two into the buffer
cache, where each probe is just a lookup in a very small radix tree,
normally a single level. We could put a small hash in front of that
if it matters, which would save not only the radix tree probe but the
iteration through the dentry block, and replace it with iterating down
a hash chain. Not a hugely obvious difference I expect, but also
pretty easy to write, so if/when it gets to be the most annoying thing
about Tux3 then it will go in.
> I see two general cases for
But you can't place any bound on the size of the atom table unless
there is some means of knowing when an atom can be deleted.
> All that said, this may simply be an argument against having a global atom
Without reference counting the atom table is a DoS, that is why
reference counting or something equivalent is not an option. And it is
indeed an argument against atoms, not because of efficiency but because
of complexity. So long as the complexity does not blow up then I think
atoms are a win. Maybe a big win if you think about the compression
possibilities I mentioned earlier.
> Maybe the solution is to have the xattr atom table be per-directory or
That is a good idea that had not occured to me. I will regard it as a
fallback if reference counting does not work out. But I think reference
counting will work out just fine, and it is the cleanest solution imho.
Regards,
Daniel
_______________________________________________
Tux3 mailing list
Tux3@tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
