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

do not aggressively pre-fetch data for parallelCollectionScan

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.4, 2.7.3
    • Affects Version/s: 2.6.1
    • Component/s: Querying
    • Labels:
      None

      Issue Status as of Jul 22, 2014

      ISSUE SUMMARY
      The parallelCollectionScan command pre-fetches the first extent for each cursor upon construction of the cursors. During cursor iteration, when a cursor needs to hop to the next extent, it also pre-fetches that extent. This can result in pre-fetching of large amounts of data. Performance tests show that disabling pre-fetching is more performant overall in most cases.

      USER IMPACT
      For large numbers of cursors with a big collection, this can mean aggressive pre-fetching of many gigabytes. This can cause large, unwanted spikes in disk IO.

      WORKAROUNDS
      None.

      AFFECTED VERSIONS
      All production releases up to version 2.6.3 are affected by this issue.

      FIX VERSION
      The fix is included in the 2.6.4 production release.

      RESOLUTION DETAILS
      Pre-fetching was disabled for the parallelCollectionScan command.

      Original description

      The parallelCollectionScan command pre-fetches the first extent for each cursor upon construction of the cursors. During cursor iteration, when a cursor needs to hop to the next extent, it also pre-fetches that extent.

      For large numbers of cursors with a big collection, this can mean aggressive pre-fetching of many gigabytes. This can cause large, unwanted spikes in disk IO.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: