|
The LDLM LRU algorithm is sub-optimal for managing locks on the client, since it can flush often-used locks when there are a large number of files accessed in a short time (e.g. filesystem scanning). It would be better to implement a more sophisticated cache mechanism, such as ARC, LFRU, or similar (see https://en.wikipedia.org/wiki/Cache_replacement_policies) that includes a frequency count on the lock in addition to only the age of the lock. That will ensure that more important top-level locks are more likely to stay on the client instead of getting flushed.
|