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

Extremely slow writes on OSX with WiredTiger and constant collection/index creation+drop

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.6
    • Component/s: WiredTiger
    • None
    • Environment:
    • ALL

      Default installation of MongoDB 3.2.6 via brew.

      Basic commands like creating an index or dropping a collection take a long time.

      2016-04-13T11:02:19.970-0400 I COMMAND  [conn30] command mongoid_collection_snapshot_test.custom_connection_snapshots command: insert { insert: "custom_connection_snapshots", documents: [ { _id: ObjectId('570e5f789b0b5842f3b5e516'), workspace_basename: "snapshot", _slugs: [ "snapshot" ], max_collection_snapshot_instances: 2, created_at: new Date(1460559739398) } ], ordered: true } ninserted:1 keyUpdates:0 writeConflicts:0 numYields:0 reslen:40 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 1, W: 1 } }, Collection: { acquireCount: { w: 1, W: 1 } } } protocol:op_query 1128ms
      2016-04-13T11:04:37.898-0400 I COMMAND  [conn39] command gravity_test_imports.artist_similarity_indices.output.snapshot command: drop { drop: "artist_similarity_indices.output.snapshot" } keyUpdates:0 writeConflicts:0 numYields:0 reslen:125 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { W: 1 } } } protocol:op_query 1077ms
      

      Switching storage to mmapv1 resolves the problem.

      Disabling journaling doesn't help.

      Attached a log where there're a few restarts switching between different configurations and some test queries.

        1. mongo.log
          2.07 MB

            Assignee:
            Unassigned Unassigned
            Reporter:
            dblock Daniel Doubrovkine
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: