jpountz commented on PR #13337: URL: https://github.com/apache/lucene/pull/13337#issuecomment-2095430556
@rmuir asked if we could add support for this on `MMapDirectory` via `madvise` + `POSIX_MADV_WILLNEED`. I pushed a new commit that does this (with several nocommits). This seems to perform well in the above benchmark if I replace `NIOFSDirectory` with `MMapDirectory`: ``` Data does not fit in the page cache With prefetching: P50=87us P90=121us Without prefetching: P50=220us P90=239us Data fits in the page cache With prefetching: P50=1us P90=2us Without prefetching: P50=0us P90=0us ``` -- 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