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

Command to report %-in memory per namespace

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Admin, Performance
    • Storage Execution

    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

              backlog-server-execution Backlog - Storage Execution Team
              scotthernandez Scott Hernandez (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: