From: Shantanu Goel <sgoel01@yahoo.com>
To: "Ted Ts'o" <tytso@mit.edu>
Cc: Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ext4: Fix up range_end offset in range cyclic writeback
Date: Mon, 9 Jan 2012 08:20:51 -0800 (PST) [thread overview]
Message-ID: <1326126051.97658.YahooMailNeo@web38008.mail.mud.yahoo.com> (raw)
In-Reply-To: <20120109155016.GD22175@thunk.org>
> So this was a performance issue that led you to this investigation?
> How much of a performance issue are we talking about?
It's a performance issue in the sense that background flush of the file can take much longer (we observed > 5 mins in some instances) than the 30 second kupdate interval.
> If it's a correctness issue that might lead to data loss because
> fsync() wasn't doing its jobs, that's obviously higher priority than a
> performance issue.
fsync() is not affected and works correctly with or without the patch since it does not use the range_cyclic writeback mode, AFAICT. The only "correctness" issue would be if an application relies on kupdate which uses range_cyclic writeback to periodically flush the file as governed by the /proc/sys/vm/dirty_writeback_centisecs tunable. We have some applications which lost more data than they expected due to the writeback not happening at expected intervals. One could argue the bug is in the application since it could have guaranteed the file was flushed by using fsync hence my quotes around correctness. Unfortunately, modifying the application is not an easy option for us to pursue at this time. We just wish to have the patch merged upstream and the exact timing is not that critical.
> Again, I just wanted to characterize this correctly in the commit ---
> BTW, this is good stuff to include in the commit description so in the
> future, developers trying to go through the history can understand why
> a particular patch is important (perhaps to backport into an
> enterprise distro release, etc.)
Sure, will do in future.
Thanks,
Shantanu
prev parent reply other threads:[~2012-01-09 16:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-08 3:23 Shantanu Goel
2012-01-09 15:17 ` Ted Ts'o
2012-01-09 15:49 ` Shantanu Goel
[not found] ` <1326123988.9602.YahooMailNeo@web38004.mail.mud.yahoo.com>
2012-01-09 15:50 ` Ted Ts'o
2012-01-09 16:20 ` Shantanu Goel [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=1326126051.97658.YahooMailNeo@web38008.mail.mud.yahoo.com \
--to=sgoel01@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®