Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
ldlm_ratio2locknr() estimates the memory cost per lock using only sizeof(struct ldlm_lock), but in reality, each lock is associated with multiple additional structures, making the effective cost about 1.6× higher. As a result, ldlm_reclaim_threshold and ldlm_lock_limit are too lenient, and reclaim is not triggered before reaching OOM.