bharath-techie commented on issue #14463:
URL: https://github.com/apache/lucene/issues/14463#issuecomment-2800468376

   Looks like `compound` is true and `FDT` being within the compound file 
matters here and it ended up being the root cause.
   
   
   `fieldsStream = d.openInput(fieldsStreamFN, context.withRandomAccess()); // 
d is compoundDirectory`
   
   In 3.0
   
   In compound reader openInput , `handle.slice(name, entry.offset, 
entry.length, context.readAdvice())` in `Lucene90CompoundReader` calls 
   `  public final MemorySegmentIndexInput slice(
         String sliceDescription, long offset, long length, ReadAdvice advice) 
throws IOException 
   ` - This madvises all memory segments. [ with random ]
   
   In 2.19
   
   Looks like `handle.slice(name, entry.offset, entry.length)` in 
`Lucene90CompoundReader` calls 
   `  public final MemorySegmentIndexInput slice(
         String sliceDescription, long offset, long length) throws IOException 
   ` - This does not call madvise for memory segments and simply initializes. 
Hence this was still fast in 2.19.


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