-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-29928: Switch fragmentation scoring/weighting to use high-water mark
The justification for this change is based on current KV behaviour and some input from a few 'random' real life log snapshots. 1) Current behaviour of KV's item-pager is to try and keep memory below the high-water mark, at times of memory pressure it will attempt to move memory to the low-water mark. The defragmenter cannot affect mem_used, but it can affect the bucket's resident memory. Here we allow the defragmenter's sleep to become most aggressive when the resident memory is close/above the high-water mark. 2) It's not uncommon for users to have their mem_used between the low and high water marks. This change means that the defragmenter won't just be at it's most 'aggressive' for the users that are happily between the two, only when they approach the high-water mark will the scoring/weighting become higher. Change-Id: Id942db14fe76ca6e18265fb66e379c18eecb6fab Change-Id: I1f8d9098edf38dbd780b746a85da6a1177850482 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/156643 Reviewed-by: Dave Rigby <[email protected]> Tested-by: Build Bot <[email protected]>
- Loading branch information
1 parent
2d66a5e
commit a9f1b74
Showing
3 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters