Re: MMapDirectory vs RAMDirectory

2006-06-07 Thread Peter Keegan
I was able to improve the behavior by setting the mapped ByteBuffer to null in the close method of MMapIndexInput. This seems to be a strong enough 'suggestion' to the gc, as I can see the references go away with process explorer, and the index files can be deleted, usually. Occasionally, a refere

Re: MMapDirectory vs RAMDirectory

2006-06-05 Thread Daniel Noll
Peter Keegan wrote: There is no 'unmap' method, so my understanding is that the file mapping is valid until the underlying buffer is garbage-collected. However, forcing the gc doesn't help. You're half right. The file mapping is indeed valid until the underlying buffer is garbage collected,

Re: MMapDirectory vs RAMDirectory

2006-06-05 Thread Peter Keegan
I'm reposting this from java-dev to java-user for greater exposure. My search process is using MMapDirectory on a read-only index via: -Dorg.apache.lucene.FSDirectory.class=org.apache.lucene.store.MMapDirectory Another indexing process is building the next version of the index in a different di

Re: MMapDirectory vs RAMDirectory

2006-05-28 Thread eks dev
Sunday, 28 May, 2006 10:09:30 AM Subject: MMapDirectory vs RAMDirectory Hi, On a 64-bit platform with 30gb RAM and 8 real CPUs, should MMapDirectory or RAMDirectory provide better search performance on a 5gb index? Cheers, Michael --

MMapDirectory vs RAMDirectory

2006-05-28 Thread Michael Chan
Hi, On a 64-bit platform with 30gb RAM and 8 real CPUs, should MMapDirectory or RAMDirectory provide better search performance on a 5gb index? Cheers, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands