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

Increase in disk i/o for writes to replica set

    • Fully Compatible
    • ALL
    • v3.6
    • Storage 2018-02-12, Storage NYC 2018-03-12

      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.

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

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

              Created:
              Updated:
              Resolved: