viliam-durina commented on issue #14348: URL: https://github.com/apache/lucene/issues/14348#issuecomment-2755668181
I've ran into issue with this setting now. If the file doesn't actually fit into memory, this read advice hurts the performance significantly. With it, `madvise` is called with `POSIX_MADV_NORMAL` (see `PosixNativeAccess.mapReadAdvice()`), which on Linux preloads large blocks on each random read (16MB on my machine). This creates a huge read amplification. I will probably end up using a custom directory that decides on its own to cache files in memory, and uses some kind of resource management, because it can potentially consume a lot of memory. -- 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