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

Disk usage increases linearly with constant data size, large churn, usePowerOf2Sizes and large document sizes

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.6
    • Component/s: Storage
    • Labels:
      None
    • ALL
    • Hide

      A reproduction script will be attached.

      Show
      A reproduction script will be attached.

      MongoDB will erroneously allocate new space at essentially a constant rate for the following:

      • An insert/delete only workload
      • usePowerOf2Sizes used
      • essentially constant, at least bounded data size
      • Documents greater than 2MB.

      A common use case where this applies is where a collection represents, for example, the last 48 hours of some data. Over the 48 hours data is constantly inserted, at some point old data is deleted in bulk.

      This results in a constant data size resulting in a linearly increasing database on disk.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alan.spencer Alan Spencer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: