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

Every write to journal costs additional seek to update file metadata

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.6, 2.5.1
    • Component/s: Performance
    • Labels:
    • Environment:
      Windows 7 Professional x64 SP1
    • Backwards Compatibility:
      Fully Compatible

      Description

      Journal file is created with FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH attributes, but FILE_FLAG_WRITE_THROUGH is not needed here and even worse it flushes NTFS metadata on every write operation. Removing it doesn't affect durability (FILE_FLAG_NO_BUFFERING does it's job), but greatly improves performance and reduces disk load.

      You can read detailed explanation here http://dmitry-naumov.blogspot.ru/2013/05/mongodb-vs-ms-sql-how-to-write-to.html

        Attachments

        1. Pattern1.jpg
          Pattern1.jpg
          98 kB
        2. Pattern2.jpg
          Pattern2.jpg
          141 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: