lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3178) Native MMapDir
Date Thu, 01 Sep 2011 15:16:17 GMT


Varun Thacker commented on LUCENE-3178:

If we pass down IOContext to NMapIndexInput and in the ctor use mmap and then use madvise
with the appropriate flag ( depending on the Context). Is that the correct way to go about
it ?

Also slightly off topic but the the javadocs for NMapoDir#openInput still shows bufferSize
as a parameter. In the java file nothing is specified as the @param values. Where is it coming
from? It's probably my mistake from LUCENE-2793 but I would like to correct it here. 

> Native MMapDir
> --------------
>                 Key: LUCENE-3178
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/store
>            Reporter: Michael McCandless
> Spinoff from LUCENE-2793.
> Just like we will create native Dir impl (UnixDirectory) to pass the right OS level IO
flags depending on the IOContext, we could in theory do something similar with MMapDir.
> The problem is MMap is apparently quite hairy... and to pass the flags the native code
would need to invoke mmap (I think?), unlike UnixDir where the code "only" has to open the
file handle.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message