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

   > Maybe the trick here would be to keep track of the loaded state in a way 
that works across slices so that we throttle more efficiently?
   
   Exactly, the problem may only be thread safety, but I would not care about 
that. If another thread changes the shared state it might happen that there are 
unnecessary madvise calls, but this will go away later when the caches are 
refresed for other reasons.
   
   There are two ways to do this: Attach it to the Arena (we have a custom 
arena anyways for shared MS), so we can just do an instanceof check on the 
arena and update the state. The other option is a separate instance shared 
between all segments. Third, we can keep a pointer to the "master" IndexInput.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to