Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6789

Improve performance of flushing data files when using lots of databases/data files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.0.7, 2.2.0-rc1
    • Fix Version/s: None
    • Component/s: Performance
    • Labels:
      None

      Description

      The _flushAll method in mmap.cpp does an n^2 iteration of all the datafiles to sync them to disk (it only calls flush once per file, however, which is good). It also acquires and releases the files lock between flushing each file. When running with very large numbers of data files (usually from having a large number of databases), this can cause the flush to take a long time even if there isn't much data to flush.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: