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

Command to report %-in memory per namespace

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin, Performance

      Description

      Add a command which can report the % of the namespace (for both the data and all indexes related to a collection) which is currently in (mapped-resident/cache) memory. This can be added for reporting cache/memory efficiency and for debugging performance issues.

      It could be called something like

      {cacheStats: <ns>}

      and report something like this:
      {cacheStats: [
      {<ns>:

      { percent: 20, graph: "XXXXXXX___0000_____XXXXXX..." ]}

      Where percent is the percent in memory of the namespace, and a graphic (textual) representation shows which parts of the namespace are in memory.

      Or a distribution is the number of the contiguous page blocks (which could tell you if you are accessing data randomly or in ranges, and should be cheap to calculate as you are walking pages ~ mincore).
      distribution: [
      4: 20000
      25: 60
      300: 4
      ...
      ]}}

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: