From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Theodore Tso <tytso@mit.edu>
Cc: Ric Wheeler <rwheeler@redhat.com>,
Andreas Dilger <adilger@sun.com>, Josef Bacik <jbacik@redhat.com>,
linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext4: add fsync batch tuning knobs
Date: Tue, 2 Dec 2008 20:15:35 +0530 [thread overview]
Message-ID: <20081202144535.GA9481@skywalker> (raw)
In-Reply-To: <20081125102232.GA9882@mit.edu>
On Tue, Nov 25, 2008 at 05:22:32AM -0500, Theodore Tso wrote:
....
...
> {Opt_bh, "bh"},
> {Opt_commit, "commit=%u"},
> + {Opt_min_batch_time, "min_batch_time=%u"},
> + {Opt_max_batch_time, "max_batch_time=%u"},
> {Opt_journal_update, "journal=update"},
> {Opt_journal_inum, "journal=%u"},
> {Opt_journal_dev, "journal_dev=%u"},
> @@ -1107,6 +1119,20 @@ static int parse_options(char *options, struct super_block *sb,
> option = JBD2_DEFAULT_MAX_COMMIT_AGE;
> sbi->s_commit_interval = HZ * option;
> break;
> + case Opt_max_batch_time:
> + if (match_int(&args[0], &option))
> + return 0;
> + if (option < 0)
> + return 0;
> + if (option == 0)
> + option = EXT4_DEF_MAX_BATCH_TIME;
> + sbi->s_max_batch_time = option;
We need a break here .
> + case Opt_min_batch_time:
> + if (match_int(&args[0], &option))
> + return 0;
> + if (option < 0)
> + return 0;
> + sbi->s_min_batch_time = option;
same here
> case Opt_data_journal:
> data_opt = EXT4_MOUNT_JOURNAL_DATA;
> goto datacheck;
> @@ -1955,6 +1981,9 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
>
> sbi->s_resuid = le16_to_cpu(es->s_def_resuid);
> sbi->s_resgid = le16_to_cpu(es->s_def_resgid);
> + sbi->s_commit_interval = JBD2_DEFAULT_MAX_COMMIT_AGE * HZ;
> + sbi->s_min_batch_time = EXT4_DEF_MIN_BATCH_TIME;
> + sbi->s_max_batch_time = EXT4_DEF_MAX_BATCH_TIME;
>
> set_opt(sbi->s_mount_opt, RESERVATION);
> set_opt(sbi->s_mount_opt, BARRIER);
....
..
The patch also needs documentation of new mount options
-aneesh
next prev parent reply other threads:[~2008-12-02 14:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 16:10 [PATCH] imporve jbd2 fsync batching Josef Bacik
2008-11-04 20:52 ` Theodore Tso
2008-11-04 22:15 ` Leroy van Logchem
2008-11-05 23:10 ` Andreas Dilger
2008-11-06 0:27 ` Theodore Tso
2008-11-06 12:45 ` Ric Wheeler
2008-11-25 10:22 ` [PATCH] ext4: add fsync batch tuning knobs Theodore Tso
2008-12-02 14:45 ` Aneesh Kumar K.V [this message]
2008-11-06 14:35 ` [PATCH] imporve jbd2 fsync batching Josef Bacik
2008-11-25 10:23 ` Theodore Tso
2008-11-25 22:41 ` Andreas Dilger
2008-11-26 5:10 ` Theodore Tso
2008-11-26 13:18 ` Josef Bacik
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=20081202144535.GA9481@skywalker \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=adilger@sun.com \
--cc=jbacik@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=rwheeler@redhat.com \
--cc=tytso@mit.edu \
/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).