[LU-6402] reduce the value of LDLM_POOL_MAX_AGE Created: 25/Mar/15  Updated: 12/Mar/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jian Yu Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-14517 Decrease default lru_max_age value Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Currently, LDLM_POOL_MAX_AGE is defined as follows in lustre/ldlm/ldlm_pool.c:

/*
 * Max age for locks on clients.
 */
#define LDLM_POOL_MAX_AGE (36000)
static inline __u64 ldlm_pool_slv_max(__u32 L)
{
        /*
         * Allow to have all locks for 1 client for 10 hrs.
         * Formula is the following: limit * 10h / 1 client.
         */
        __u64 lim = (__u64)L *  LDLM_POOL_MAX_AGE / 1;
        return lim;
}

Andreas suggested to reduce the LRU max age to 4000s (just over 1h, so jobs that write a checkpoint every 1h can re-use their locks) instead of 36000s.


Generated at Sat Feb 10 01:59:55 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.