uschindler commented on PR #13337:
URL: https://github.com/apache/lucene/pull/13337#issuecomment-2096314678

   > We can also use the Hotspot bean to get page size, but this fails on 
OpenJ9 or any 3rd party JVM. So we could try to get page size from HotSpt bean 
in Constants.java and save it in OptionInt. If it is undefined, preloading gets 
disabled:
   > 
   > see those examples in Constants:
   > 
   > 
https://github.com/apache/lucene/blob/40cae087f71a875478309abfc4b1ab1e7b027cab/lucene/core/src/java/org/apache/lucene/util/Constants.java#L88-L98
   
   Does not work, we only can get huge page size, not native page size. It 
looks we need to have 2 options:
   - use try/catch around the madvise and do nothing if unaliged on 4k 
boundaries
   - use the obsolete/deprecated `getpagesize()` call to libc.


-- 
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