Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6402

reduce the value of LDLM_POOL_MAX_AGE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Lustre 2.8.0
    • None
    • 3
    • 9223372036854775807

      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.

            wc-triage WC Triage
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: