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

KeyString::Value should report its memory usage as the total buffer capacity

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.1
    • None
    • Fully Compatible
    • Execution Team 2019-09-09

    Description

      The external sorted uses memUsageForSorter to estimate when to spill to disk.

      KeyString::Value should report its memory usage as the total capacity of the underlying SharedBuffer rather than the number of bytes used out of the entire buffer length.

      This will probably require adding a "capacity()" function to ConstSharedBuffer to access into its underlying SharedBuffer.

      Attachments

        Issue Links

          Activity

            People

              louis.williams@mongodb.com Louis Williams
              louis.williams@mongodb.com Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: