Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2500

A Linux-specific Directory impl that bypasses the buffer cache

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I've been testing how we could prevent Lucene's merges from evicting
      pages from the OS's buffer cache. I tried fadvise/madvise (via JNI)
      but (frustratingly), I could not get them to work (details at
      http://chbits.blogspot.com/2010/06/lucene-and-fadvisemadvise.html).

      The only thing that worked was to use Linux's O_DIRECT flag, which
      forces all IO to bypass the buffer cache entirely... so I created a
      Linux-specific Directory impl to do this.

        Attachments

        1. LUCENE-2500.patch
          25 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: