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

Increase in disk i/o for writes to replica set

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.0-rc0
    • 3.6.6, 3.7.3
    • Replication, Storage
    • Fully Compatible
    • ALL
    • v3.6
    • Storage 2018-02-12, Storage NYC 2018-03-12

    Description

      Simple insert loop running against 1-node replica set

          db.c.insert({_id: 0, i: 0})
          for (i = 0; i < 100000; i++)
              db.c.update({_id: 0}, {$inc: {i: 1}})
      

      Shows a large increase in journal syncs, disk write requests, bytes written. 3.4.9 left, 3.6.0-rc0 right:

      It appears we're doing a flush on every update, even though there's no write concern. In the simple repro above this doesn't seem to affect performance (for reasons tbd) but with more complex workloads the additional journal i/o will impact performance.

      Does not reproduce with standalone mongod.

      Attachments

        1. four.png
          four.png
          73 kB
        2. io.png
          io.png
          160 kB
        3. io.png
          io.png
          188 kB

        Issue Links

          Activity

            People

              geert.bosch@mongodb.com Geert Bosch
              bruce.lucas@mongodb.com Bruce Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: