[BP 5.5.4] - [plasma] MemTuner examine RSS before incrementing for smoother control

Description

Currently plasma mem tuner logic decrements memory quota and forces GC when the indexer process RSS overshoots user quota by 15% but the increment logic does not examine RSS before choosing to restore the quota.

This results in spiky RSS and frequent forced garbage collection.

Better to use examine RSS and only increment if the RSS is below user quota.

Inspiration: PID controller 

Components

Affects versions

Fix versions

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Activity

Show:

Sundar Sridharan February 6, 2019 at 9:22 PM

Build carries the fix

CB robot February 6, 2019 at 8:10 PM

Build couchbase-server-5.5.4-4322 contains plasma commit c2ad7e5 with commit message:
https://couchbasecloud.atlassian.net/browse/MB-32636#icft=MB-32636 mem: Only increment if RSS < quota

Sundar Sridharan February 5, 2019 at 8:07 PM

back port uploaded here for review 

http://review.couchbase.org/104530

 

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Sundar Sridharan

Reporter

Is this a Regression?

No

Triage

Triaged

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 14, 2019 at 7:50 PM
Updated April 25, 2019 at 1:46 AM
Resolved April 9, 2019 at 5:20 PM
Instabug