uschindler commented on issue #13194:
URL: https://github.com/apache/lucene/issues/13194#issuecomment-2009732724

   If you have enough memory on your machine, not using directio is still 
recommended.
   
   If you are indexing and reading index at same time and you merge segments, 
why do you want the merge option be not cached at all? If you write a new file 
why should it not be in FS cache from beginning? If you query the new segment 
it's cold...! On the other hand, why should the merger not make use of already 
cached segments?
   
   The problem that directio tries to solve is the issue of not allowing 
fadvise/madvise when opening index files. I am planning to have some optional 
panama foreign in Mmapdir in future, so we can based on IOcontext give some 
hints to kernel. There's only one issue open that I am discussing with Maurizio 
and Alan Bateman: make the file descriptor (long) available by the 
nio/Path/Socket APIs in Java like you can get the PID from Process AP I- to 
allow to pass it to native code. Currently it is hidden in private internals 
   
   Directio makes sense when you only index but not query at same time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to