Project

General

Profile

Actions

Documentation #48585

closed

mds_cache_trim_decay_rate misnamed?

Added by Jan Fajerski over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Labels (FS):
Pull request ID:

Description

I'm unsure about all this, so input is appreciated.

I recently played around with this and essentially broke a cluster by misinterpreting the option name mds_cache_trim_decay_rate. I wanted to increase the speed with which the MDS trimmed its cache. Looking at https://docs.ceph.com/en/latest/cephfs/cache-configuration/#mds-cache-trimming I figured, ok there is a threshold and a rate. I'll increase the rate to get faster cache trimming.
To my surprise this seemed to have the opposite effect (I suppose there is not necessarily a causality), the cache grew out of bounds.

Looking closer at the formula -ln(0.5)/rate*threshold and glancing at the code, it seems like this option would be more suitably name as half-life or mean lifetime (to stay in the realm of particle physics).
This imho would suite the behaviour "increase option value -> slower cache trimming" better.
When I increase a decay rate I typically expect expect the decay to go quicker not slower.

Actions

Also available in: Atom PDF