You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
when a large number of concurrent applications competing for file locks,
then SimpleLm will serialise all request as a single lock object is used
for all files. To reduce lock conjunction and improve concurrency a
serialization per lock subject (file) is a better option.
Modification:
Use Striped lock to partition locks. The number of partition is equal
4x#CPUs. It's guaranteed, that for the same file, the same lock will be
used.
Result:
Better lock throughput.
Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no
0 commit comments