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

Be more memory efficient for leaf nodes in biggie

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Storage Execution
    • Storage NYC 2019-01-14

      Currently each node in the tree, including leaf pointers, has 256 shared pointers. Each shared pointer is 16 bytes, for a total of 4kB for the pointers. As the first allocation size > 4kB is 6 kB, and each document results in 2 nodes (one for index, one for record store), each document has 12kB overhead (18 kB for replicasets due to the oplog).
      This causes each Node to be > 4kB resulting in excessive memory usage during testing and OOMs.
      Change the Node representation to avoid shared pointers in leaf nodes.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: