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

Reduce DocumentSourceCursor batch size from 16MB to 4MB

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.2, 3.5.2
    • Affects Version/s: 3.4.0
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Query 2017-01-23
    • 0

      DocumentSourceCursor batch size was changed from 4MB to 16MB for MongoDB 3.4 as part of a broader effort to unify user request batch size at 16MB under SERVER-21797. This change led to a mongo-perf performance regression for the "Aggregation.skip" which appears as slower memcpy operations under VTune under DocumentSourceCursor::loadBatch and is likely due to the larger batches exceeding L2/L3 caches.

      Testing across our aggregation micro-benchmarks shows a 4MB DocumentSourceCursor batch size restores previous performance across affected tests and does not penalize tests that may benefit from the batching behavior.

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: