From: Theodore Tso <tytso@mit.edu>
To: Curt Wohlgemuth <curtw@google.com>
Cc: Andreas Dilger <adilger@sun.com>,
ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: PATCH: Making mb_history length a dynamic tunable
Date: Mon, 20 Apr 2009 15:26:12 -0400 [thread overview]
Message-ID: <20090420192612.GX19186@mit.edu> (raw)
In-Reply-To: <6601abe90904201153q5e66cb30na22a49767245e53f@mail.gmail.com>
On Mon, Apr 20, 2009 at 11:53:12AM -0700, Curt Wohlgemuth wrote:
>
> > Since the s_mb_history buffers are allocated at mount time only,
> > and later writing to mb_hist_size does not affect their size,
> > it means that mb_hist_size must be set before the filesystems are
> > mounted. However, that makes it impossible to tune the root
> > filesystem history size, and at best it is difficult to tune the
> > other filesystems because the value has to be set by an init
> > script after root mounts but before other filesystems mount.
If it's only going to be allocated at mount-time (as opposed doing it
at run-time --- where for simplicities sake I would just simply flush
the existing history when resizing the mb_history buffers), I would
make this a mount option. This would allow it to be set for the root
filesystem via a boot option (rootfsflags).
> Right, I thought about this. But avoiding the race when the tunable is
> being changed at the same time that history is being updated just didn't
> seem worth it to me.
Fixing this wouldn't be that hard; I would use read-copy-update (RCU)
and just free the old history when changing the size of the
mb_history. But setting it as a mount option would also be fine, I
think.
- Ted
next prev parent reply other threads:[~2009-04-20 19:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 17:20 PATCH: Making mb_history length a dynamic tunable Curt Wohlgemuth
2009-04-18 7:51 ` Michael Rubin
2009-04-18 12:53 ` Theodore Tso
2009-04-20 3:22 ` Andreas Dilger
2009-04-20 18:53 ` Curt Wohlgemuth
2009-04-20 19:26 ` Theodore Tso [this message]
2009-05-02 0:31 ` [PATCH] ext4: Make the length of the mb_history file tunable Theodore Ts'o
2009-05-02 16:30 ` Curt Wohlgemuth
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=20090420192612.GX19186@mit.edu \
--to=tytso@mit.edu \
--cc=adilger@sun.com \
--cc=curtw@google.com \
--cc=linux-ext4@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.