From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [DLM PATCH] DLM: Don't wait for resource library lookups if NOLOOKUP is specified
Date: Fri, 3 Oct 2014 13:28:46 -0400 (EDT) [thread overview]
Message-ID: <1586572933.3311525.1412357326212.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20141001184224.GA10150@redhat.com>
----- Original Message -----
> Can we just use NOQUEUE? It tells you that there's a lock conflict, which
> tells you to move along and try another if you don't want to contend. If
> you cache acquired locks and reuse them, then it doesn't matter if the
> master node is remote or local.
The problem with NOQUEUE is that it seems to depend on circumstances.
If each node mounts the file system at a separate time, and as part of that
process, they do a NOQUEUE lock on every rgrp, they all are granted the lock.
With this scheme, they're evenly divided between the nodes.
It doesn't matter anyway, because I'm scrapping the DLM patch in favor of
a scheme like the one you pointed out in GFS1 below. See my other email for
more details.
> If lookups are a problem in general, there is the "nodir" lockspace mode,
> which replaces the resource directory lookup system with a static mapping
> of resources to master nodes.
>
(snip)
> Back in 2002 I solved what sounds like the same problem in gfs(1). It
> allowed all nodes to allocate blocks independent of each other, without
> constant locking. You can see the solution here:
>
> https://git.fedorahosted.org/cgit/cluster.git/tree/gfs-kernel/src/gfs/rgrp.c?h=RHEL4
Regards,
Bob Peterson
Red Hat File Systems
prev parent reply other threads:[~2014-10-03 17:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38741039.1176852.1412183985958.JavaMail.zimbra@redhat.com>
2014-10-01 17:21 ` [Cluster-devel] [DLM PATCH] DLM: Don't wait for resource library lookups if NOLOOKUP is specified Bob Peterson
2014-10-01 18:04 ` Steven Whitehouse
2014-10-03 17:24 ` Bob Peterson
2014-10-01 18:42 ` David Teigland
2014-10-03 17:28 ` Bob Peterson [this message]
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=1586572933.3311525.1412357326212.JavaMail.zimbra@redhat.com \
--to=rpeterso@redhat.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).