Hey I've been testing MMapDirectory with a Debian and with just couple of
cores (1G each index) in the box it seems to give a bit better performance
with a cold index. But I don't think is good enough (not in my use case)
knowing the memory it requires.
When doing an snapinstaller (using MMap) tomcat will keep the files of the
old index as "deleted" and will not free them until a full garbage
collection is done.
Increasing to 6 cores in the box I am experience some trouble (not enough
memory).

Otis Gospodnetic wrote:
> 
> 
> Is there a benefit to using MMapDirectory instead of, say, tmpfs (RAM
> disk) under Linux?
> 
>  Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> 
> ----- Original Message ----
>> From: Mark Miller <markrmil...@gmail.com>
>> To: solr-user@lucene.apache.org
>> Sent: Monday, July 6, 2009 9:28:43 AM
>> Subject: Re: Using MMapDirectory
>> 
>> Marc Sturlese wrote:
>> > Hey there,
>> > 
>> > For testing purpose I am trying to use lucene's MMapDirectory in a
>> recent
>> > Solr nightly instance. I have read in Lucene's documentation:
>> > "To use MMapDirectory, invoke Java with the System property
>> > org.apache.lucene.FSDirectory.class set to
>> > org.apache.lucene.store.MMapDirectory. This will cause
>> > FSDirectory.getDirectory(File,boolean) to return instances of this
>> class. "
>> > 
>> > Do I have to change something in solrconfig.xml or modifying system
>> property
>> > is just enough?
>> > Thanks in advance.
>> >  
>> The system property won't do it. You will have to try the custom 
>> DirectoryFactory in solrconfig.xml.
>> 
>> Report back how it goes - havn't tried Solr with MMapDirectory before
>> myself.
>> 
>> -- - Mark
>> 
>> http://www.lucidimagination.com
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-MMapDirectory-tp24353063p24369437.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to