RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-06 Thread zhoucheng2008
I read the lucene in action book and just tested the FSversusRAMDirectoryTest.java with the following uncommented: ///** //// change to adjust performance of indexing with FSDirectory writer.mergeFactor = 100; writer.maxMergeDocs = 99; writer.minM

Re: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-06 Thread Michael McCandless
This test is very old (from the 1st edition of the book but removed from the 2nd). Modern OS's cache newly written files in RAM, and this test doesn't write very large files (I think?), so the test is really testing an OS's IO cache vs Lucene's RAM Dir. That said, I'm not sure why RAMDir would be

RE: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-06 Thread Uwe Schindler
.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Michael McCandless [mailto:luc...@mikemccandless.com] > Sent: Monday, June 06, 2011 5:58 PM > To: java-user@lucene.apache.org > Subject: Re: RAMDirectory doesn&#

RE: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-06 Thread zhoucheng2008
- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Tuesday, June 07, 2011 12:04 AM To: java-user@lucene.apache.org Subject: RE: RAMDirectory doesn't win over FSDirectory all the time, why? Hi, It depends on the Lucene version, so if the test uses latest Lucene on a 64bit OS, it ma

Re: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-07 Thread Toke Eskildsen
On Mon, 2011-06-06 at 15:29 +0200, zhoucheng2008 wrote: > I read the lucene in action book and just tested the > FSversusRAMDirectoryTest.java with the following uncommented: > [...]Here is the output: > > RAMDirectory Time: 805 ms > > FSDirectory Time : 728 ms This is the code, right? http://ja

RE: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-07 Thread zhoucheng2008
Makes sense. Thanks -Original Message- From: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] Sent: Tuesday, June 07, 2011 4:28 PM To: java-user@lucene.apache.org Subject: Re: RAMDirectory doesn't win over FSDirectory all the time, why? On Mon, 2011-06-06 at 15:29 +0200, zhouchen

Re: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-16 Thread Lance Norskog
> To: java-user@lucene.apache.org > Subject: Re: RAMDirectory doesn't win over FSDirectory all the time, why? > > On Mon, 2011-06-06 at 15:29 +0200, zhoucheng2008 wrote: >> I read the lucene in action book and just tested the >> FSversusRAMDirectoryTest.java with the follo

Re: RAMDirectory doesn't win over FSDirectory all the time, why?

2011-06-17 Thread Sanne Grinovero
dex stuff is more what you want? > > Lance > > On Tue, Jun 7, 2011 at 2:52 AM, zhoucheng2008 wrote: >> Makes sense. Thanks >> >> -Original Message- >> From: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] >> Sent: Tuesday, June 07, 2011 4:28 PM &g