[
https://issues.apache.org/jira/browse/SOLR-18693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153341#comment-18153341
]
Pierre Salagnac commented on SOLR-18693:
----------------------------------------
[~iprithv] Thanks for this suggestion.
That's something I also noticed on my side, this is definitely missing in Solr.
I'm curious if you have some numbers on performance improvements we can expect
by adding this flag.
> Opt-in MMapDirectory.setReadAdvice(ADVISE_BY_CONTEXT) via DirectoryFactory
> ---------------------------------------------------------------------------
>
> Key: SOLR-18693
> URL: https://issues.apache.org/jira/browse/SOLR-18693
> Project: Solr
> Issue Type: Improvement
> Reporter: Prithvi S
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Lucene 10.3+ (CHANGES https://github.com/apache/lucene/pull/15040) stopped
> setting read advice by default. Merge/flush
> and DataAccessHints are largely no-ops for madvise unless something calls
> MMapDirectory.setReadAdvice. Solr has no setReadAdvice usages today.
> Add an opt-in solrconfig/init param adviseByContext (default false) on
> StandardDirectoryFactory / MMapDirectoryFactory / NRTCachingDirectoryFactory.
> When enabled, unwrap FilterDirectory/NRTCachingDirectory and call
> setReadAdvice(ADVISE_BY_CONTEXT) if the delegate is an MMapDirectory.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]