You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Kevin A. Burton" <bu...@newsmonster.org> on 2004/08/08 03:40:46 UTC
Benchmark of filesystem cache for index vs RAMDirectory...
I'm not sure how Solaris or Windows perform but the Linux block cache
will essentially use all avali memory to buffer the filesystem.
If one is using an FSDirectory to perform searches while the first
search would be slow, remaining searches would be fast since Linux will
now buffer the index in RAM.
The RAMDirectory has the advantage of pre-loading everything and can
keep it in memory if the box is performing other operations.
In my benchmarks though RAMDirectory is slightly slower. I assume this
is because its Hashtable based even though it only needs to be
synchronized in a few places. IE searches should never be synchronized...
Would a HashMap implementation of RAMDirectory beat out a cached
FSDirectory?
Kevin
--
Please reply using PGP.
http://peerfear.org/pubkey.asc
NewsMonster - http://www.newsmonster.org/
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Benchmark of filesystem cache for index vs RAMDirectory...
Posted by "Kevin A. Burton" <bu...@newsmonster.org>.
Daniel Naber wrote:
>On Sunday 08 August 2004 03:40, Kevin A. Burton wrote:
>
>
>
>>Would a HashMap implementation of RAMDirectory beat out a cached
>>FSDirectory?
>>
>>
>
>It's easy to test, so it's worth a try. Please try if the attached patch
>makes any difference for you compared to the current implementation of
>RAMDirectory.
>
>
>
True... I was just thinking out loud... was being lazy. Now I actually
have to do the work to create the benchmark again... damn you ;)
Kevin
--
Please reply using PGP.
http://peerfear.org/pubkey.asc
NewsMonster - http://www.newsmonster.org/
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster
Re: Benchmark of filesystem cache for index vs RAMDirectory...
Posted by Daniel Naber <da...@t-online.de>.
On Sunday 08 August 2004 03:40, Kevin A. Burton wrote:
> Would a HashMap implementation of RAMDirectory beat out a cached
> FSDirectory?
It's easy to test, so it's worth a try. Please try if the attached patch
makes any difference for you compared to the current implementation of
RAMDirectory.
Regards
Daniel
--
http://www.danielnaber.de