lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <>
Subject Re: madvise(ptr, len, MADV_SEQUENTIAL)
Date Mon, 15 Jun 2009 22:01:56 GMT
Thanks Alan.

I cross posted this to the Lucene dev list where we are discussing using
madvise for minimizing unnecessary IO cache usage when merging segments
(where we really want the newly merged segments in the IO cache rather than
the old segment files).

How would the advise method work?  Would there need to be a hint in the method?


On Mon, Jun 15, 2009 at 12:36 AM, Alan Bateman <> wrote:

> Jason Rutherglen wrote:
>> Is there going to be a way to do this in the new Java IO APIs?
> Good question, as it has come up a few times and is needed for some
> important use-cases. A while back I looked into adding a
> MappedByteBuffer#advise method to allow the application provide hints on the
> expected usage but didn't complete it. We should probably look at this again
> for jdk7.
> -Alan.

View raw message