Chuck Lever <[EMAIL PROTECTED]> writes:
>    8000 stat entries.  all the entries go into three or four buckets
>    (as opposed to hundreds or thousands), so the buckets get real big.

Why do you think that they all go into only three or four buckets?  Is
this an actual observation, or a hypothesis?  I hope it's the latter :-)

>    each bucket has a lock on it, so when searching and modifying
>    stat structures takes a long time, everything backs up behind
>    the hash bucket locks.

Actually, there's only one lock for the entire hash table.
There is code which occasionally must traverse the *entire* hash table,
which is probably the source of the occasional hangs.  This algorithm
will improve somewhat, though it remains to be seen how well it will
handle 27000 stat structures.  That's some working set.

Reply via email to