cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Jiaju Zhang <jjzhang.linux@gmail.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [RFC]Drop unused plock resource when no other plock request comes
Date: Sun, 23 Aug 2009 17:00:44 +0800	[thread overview]
Message-ID: <f8c992a30908230200g38129b0ne2af968e8ead8a72@mail.gmail.com> (raw)

Hello,

Currently, it seems that dlm_controld won't drop an unused plock resource
(which has exceed the timeout) when there is no another plock request for
other resource comes. I found this issue when I run the pingpong test case
http://junkcode.samba.org/ftp/unpacked/junkcode/ping_pong.c
In the pingpong, it just uses fcntl(F_SETLKW) to lock/unlock a file
repeatedly to see the lock performance. Now, my test case is:
Step 1: start pingpong on node A, then stop it.
Step 2: after a while(more than 10 seconds), start pingpong on node B.
I haven't run the pingpong concurrently on the two nodes, but the lock
performance in node A is much higher than in node B.
The user might be confused about why the performance on the two nodes seems
so different.

After some investigating, I found the reason is when running pingpong on
node A, r->owner == A, so all the plock requests operates locally. When
pingpong stops on node A, there is no other plock request comes from node A,
so the drop_resources won't be triggered even if it has exceed the timeout.
Then, pingpong on node B and it found r->owner == A so eventually it turned
into the state r->owner == 0. This is the distributed mode, so the
performance is decreasing.

It seems no chance to trigger the drop_resources to work if there is no
other plock requests (which are requesting for another lock resource) come
from node A.
But I still wonder if there is a way to improve this?

Thanks,
Jiaju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20090823/85555855/attachment.htm>

             reply	other threads:[~2009-08-23  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-23  9:00 Jiaju Zhang [this message]
2009-08-24 14:31 ` [Cluster-devel] Re: [RFC]Drop unused plock resource when no other plock request comes David Teigland
2009-08-25  3:10   ` Jiaju Zhang
2009-08-25 15:35     ` David Teigland
2009-08-26  6:54       ` Jiaju Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8c992a30908230200g38129b0ne2af968e8ead8a72@mail.gmail.com \
    --to=jjzhang.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).