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

MMapDirectory makes too many maps for CFS

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA
    • 4.0, 6.0
    • None
    • None
    • New

    Description

      While looking at LUCENE-4123, i thought about this:

      I don't like how mmap creates a separate mapping for each CFS slice, to me this is way too many mmapings.

      Instead I think its slicer should map the .CFS file, and then when asked for an offset+length slice of that, it should be using .duplicate()d buffers of that single master mapping.

      then when you close the .CFS it closes that one mapping.

      this is probably too scary for 4.0, we should take our time, but I think we should do it.

      Attachments

        1. LUCENE-4364.patch
          23 kB
          Robert Muir
        2. LUCENE-4364.patch
          23 kB
          Robert Muir
        3. LUCENE-4364.patch
          30 kB
          Robert Muir
        4. LUCENE-4364.patch
          30 kB
          Robert Muir
        5. LUCENE-4364.patch
          30 kB
          Uwe Schindler
        6. LUCENE-4364.patch
          37 kB
          Robert Muir
        7. LUCENE-4364.patch
          38 kB
          Robert Muir
        8. LUCENE-4364.patch
          42 kB
          Robert Muir
        9. LUCENE-4364.patch
          42 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: