uschindler commented on issue #13194: URL: https://github.com/apache/lucene/issues/13194#issuecomment-2010284960
> > 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. > > ++ Yes, and we can set that always when opening the file containing vector data. > > > 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. > > Lemme know if I can help move this forward. Everybody can help. Basically it would be good to be able to get the LONG file handle (windows) or File Descriptor from a FileChannel/FileInputStream/FileOutputStream in a similar way like you can get the process ID (PID) from the ProcessBuilder API. There is no security risk in it, as you cannot do any harm with it - like you cannot do any harm with the process id of a child process returned by ProcessBuilder from Java code only. It also contains no sensitive data. Initially this was not clear (there's an issue open), but in Brussels Alan Bateman and Mauricio agreed to add such an API. I think we need to push it a bit. You can help. https://bugs.openjdk.org/browse/JDK-8292771 -- 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