[ 
https://issues.apache.org/jira/browse/LUCENE-8982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227746#comment-17227746
 ] 

Zach Chen commented on LUCENE-8982:
-----------------------------------

[~mdrob] It does seems *ant build-native-unix* is no longer available, and 
running *./gradlew helpAnt* doesn't help either. I'm not super familiar with 
cpp development, but to facilitate this I've done some research and after some 
trial and errors, come up with a separate PR to build the cpp code (as 
decoupling the two changes might help benchmarking) 
[https://github.com/apache/lucene-solr/pull/2068] . Could you please take a 
look and let me know if this is a good direction to take?

Please note that in the PR, I created a new native module to host 
*NativefPosixUtil.cpp*, as there's compatibility issue between cpp-library and 
java-library Gradle plugins. For details, please see 
[https://github.com/gradle/gradle-native/issues/352#issuecomment-461724948.] 

> Make NativeUnixDirectory pure java now that direct IO is possible
> -----------------------------------------------------------------
>
>                 Key: LUCENE-8982
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8982
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/misc
>            Reporter: Michael McCandless
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> {{NativeUnixDirectory}} is a {{Directory}} implementation that uses direct IO 
> to write newly merged segments.  Direct IO bypasses the kernel's buffer cache 
> and write cache, making merge writes "invisible" to the kernel, though the 
> reads for merging the N segments are still going through the kernel.
> But today, {{NativeUnixDirectory}} uses a small JNI wrapper to access the 
> {{O_DIRECT}} flag to {{open}} ... since JDK9 we can now pass that flag in 
> pure java code, so we should now fix {{NativeUnixDirectory}} to not use JNI 
> anymore.
> We should also run some more realistic benchmarks seeing if this option 
> really helps nodes that are doing concurrent indexing (merging) and searching.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to