Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-29976

[plasma] QuotaTuner does not keep plasma strictly within 90% of GSI mem quota

    XMLWordPrintable

Details

    Description

      When plasma memory usage goes too close to quota it runs risk of OOM killer.

      This logic in RunMemQuotaTuner() appears suspicious..

      if float64(sys.TotalMemory)*MTunerMinFreeMemRatio > float64(MTunerMaxFreeMemory) {
                  MTunerMinFreeMemRatio = float64(MTunerMaxFreeMemory) / float64(sys.TotalMemory)
      }

      given that 

          MTunerMaxFreeMemory   = int64(5 * 1024 * 1024 * 1024)
      

      sometimes we see log messages that keep the quota too close to the OOM killer mark..

      2018-05-17T14:27:55.400+00:00 [Info] Plasma: Adaptive memory quota tuning minFreePercent:3.334435880496056, freePercent:7.666473160444207, currentQuota=188743680000
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sundar Sundar Sridharan (Inactive)
            sundar Sundar Sridharan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty