Skip to contentSkip to conversation

parallel enqueue

RFC Alex Zhuravlev 3 participants 4 messages Feb 8, 2008 – Feb 12, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

in some cases (truncate, append) we still use serialized enqueue when all locks have to be enqueued synchronously one by one.

what if we could mark all locks issued by single client with some unique tag (timestamp + nid?), then enqueue them all and then, in case of conflict, in blocking ast handler compare tag of conflicting lock with own tag, cancel our granted locks if our tag is greater than tag of conflicting lock and enqueue them again?

thanks, Alex

#1 lore raw

Yes this is a good idea, but probably not extremely urgent.

- Peter -

Quoted 19 lines · Alex Zhuravlev

Hi,

in some cases (truncate, append) we still use serialized enqueue when all locks have to be enqueued synchronously one by one.

what if we could mark all locks issued by single client with some unique tag (timestamp + nid?), then enqueue them all and then, in case of conflict, in blocking ast handler compare tag of conflicting lock with own tag, cancel our granted locks if our tag is greater than tag of conflicting lock and enqueue them again?

thanks, Alex

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel

#2 lore raw
In reply to Alex Zhuravlev

This sounds great!

But are there any livelock issues?

Quoted 27 lines

-----Original Message-----
From: lustre-devel-bounces at lists.lustre.org [mailto:lustre-devel-bounces at lists.lustre.org] On Behalf Of Alex Zhuravlev
Sent: 08 February 2008 3:32 PM
To: lustre-devel at lists.lustre.org
Subject: [Lustre-devel] [RFC] parallel enqueue

Hi,

in some cases (truncate, append) we still use serialized enqueue when all locks have to be enqueued synchronously one by one.

what if we could mark all locks issued by single client with some unique tag (timestamp + nid?), then enqueue them all and then, in case of conflict, in blocking ast handler compare tag of conflicting lock with own tag, cancel our granted locks if our tag is greater than tag of conflicting lock and enqueue them again?

thanks, Alex

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel

#3 lore raw

well, the idea is to fallback to serialized enqueue once such collision is detected: this allow to avoid livelock problem and rpc storms.

thanks, Alex

Quoted 36 lines · Eric Barton

This sounds great!

But are there any livelock issues?

Quoted 19 lines

-----Original Message-----
From: lustre-devel-bounces at lists.lustre.org [mailto:lustre-devel-bounces at lists.lustre.org] On Behalf Of Alex Zhuravlev
Sent: 08 February 2008 3:32 PM
To: lustre-devel at lists.lustre.org
Subject: [Lustre-devel] [RFC] parallel enqueue

Hi,

in some cases (truncate, append) we still use serialized enqueue when all locks have to be enqueued synchronously one by one.

what if we could mark all locks issued by single client with some unique tag (timestamp + nid?), then enqueue them all and then, in case of conflict, in blocking ast handler compare tag of conflicting lock with own tag, cancel our granted locks if our tag is greater than tag of conflicting lock and enqueue them again?

Quoted 8 lines

thanks, Alex

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel

_______________________________________________
Lustre-devel mailing list
Lustre-devel at lists.lustre.org
http://lists.lustre.org/mailman/listinfo/lustre-devel