From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Limit number of transaction blocks requested for truncates
Date: Fri, 16 Dec 2016 11:10:22 -0500 (EST) [thread overview]
Message-ID: <345386777.13237851.1481904622112.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <5853FCCA.8000809@redhat.com>
----- Original Message -----
| Hi,
|
| If it can't exceed 8192, then why is it only 256, could there not be a
| larger number? It should probably scale with journal size to avoid
| causing issues for those with larger journals. The approach looks good
| though for a temporary fix,
|
| Steve.
Hi,
Yeah, I toyed with the idea of making it scale with the journal, but
anything I chose just seemed so...arbitrary. I originally coded it as the
number of blocks in the journal - some slop for log headers and such:
+ if (jblocks_needed + RES_SLOP > sdp->sd_jdesc->jd_blocks) {
+ jblocks_needed = sdp->sd_jdesc->jd_blocks - RES_SLOP;
At that time I started defined it as:
+#define RES_SLOP 16
I also toyed with the idea of using half the journal blocks:
jblocks_needed = sdp->sd_jdesc->jd_blocks > 1;
Or maybe 3/4 of the journal:
jblocks_needed = sdp->sd_jdesc->jd_blocks > 1 +
sdp->sd_jdesc->jd_blocks > 2;
...but I didn't want to waste a bunch of CPU time doing calculations
either: deletes are already slow. Not that that would slow us down much.
In the end, I decided an arbitrary 256 was simple and enough for the
vast majority of deletes.
I'm perfectly happy to use whatever value makes the most sense.
Suggestions?
Regards,
Bob Peterson
Red Hat File Systems
prev parent reply other threads:[~2016-12-16 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <83265106.13073562.1481897633945.JavaMail.zimbra@redhat.com>
2016-12-16 14:16 ` [Cluster-devel] [GFS2 PATCH] GFS2: Limit number of transaction blocks requested for truncates Bob Peterson
2016-12-16 14:40 ` Steven Whitehouse
2016-12-16 16:10 ` 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=345386777.13237851.1481904622112.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).