Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2855

Lazy-create DeltaMemStores on first update

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: perf, tserver
    • Labels:
      None

      Description

      Currently DeltaTracker::DoOpen creates a DeltaMemStore for each DRS. If we assume that most DRS don't have any deltas, this ends up wasting quite a bit of memory. Looking at one TS in a production cluster, about 1GB of the ~14G heap is being used by DMS. Of that, 464MB is data and the remainder is overhead.

      This would likely improve other code paths too to fast-path out any DMS-related code.

        Attachments

          Activity

            People

            • Assignee:
              helifu LiFu He
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: