Re: [PATCH] Radix-tree pagecache for 2.5

Linus Torvalds (torvalds@transmeta.com)
Tue, 29 Jan 2002 19:27:43 +0000 (UTC)


In article <20020129165444.A26626@caldera.de>,
Christoph Hellwig <hch@caldera.de> wrote:
>I've ported my hacked up version of Momchil Velikov's radix tree
>radix tree pagecache to 2.5.3-pre{5,6}.
>
>The changes over the 2.4.17 version are:
>
> o use mempool to avoid OOM situation involving radix nodes.
> o remove add_to_page_cache_locked, it was unused in the 2.4.17 patch.
> o unify add_to_page and add_to_page_unique
>
>It gives nice scalability improvements on big machines and drops the
>memory usage on small ones (if you consider my 64MB Athlon small :)).

Looks good.

In fact, this looks a _lot_ more palatable than the "scalable page
cache" approach with the hashed locks.

Can you post the numbers on scalability (I can see the locking
improvement, but if you have numbers I'd be even happier) and any
benchmarks you have?

The only real complaint I have is that I'd rather see "radix_root" than
"rat_root". Maybe it is just me, but the latter makes me wonder about
the sex-lives of small furry mammals. Which is not what I really want to
be thinking about.

It looks straigthforward enough, so if you feel it is stable (and
cleaned up), I'd suggest just submitting it for real.

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