Skip to contentSkip to conversation

ocfs2/dlm: support range lock

RFC David Weber 1 participant 1 message Jan 28, 2015 OCFS2

lore
Share & tools
lore
#0 lore raw

Hi,

Quoted 5 lines · yangwenfang

What:
Byte range lock is applied to lock a region of a file to accelerate reading/writing concurrently.

Quoted 10 lines

Why:
Currently ocfs2 does not support byte range lock. Since multiple nodes may concurrently update/write at different positions of the same file in database workloads, the performance(tpmc) of DB+ocfs2 is much poorer than
DB+GPFS in running TPCC.
Aiming at improving the efficiency of parallel accesses to the same file, we have implemented a demo of range lock feature which has been supported by lustre and GPFS, so that a file can be updated by different nodes in the cluster when they are visiting different blocks.

would this also make cluster aware fcntl(2) locks with the o2cb stack possible?

Cheers,
David