From: Eric Sandeen <sandeen@redhat.com>
To: "Ted Ts'o" <tytso@mit.edu>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH 3/3] ext4: update writeback_index based on last page scanned
Date: Mon, 25 Oct 2010 16:39:10 -0500 [thread overview]
Message-ID: <4CC5F8FE.6000100@redhat.com> (raw)
In-Reply-To: <20101025213550.GK16981@thunk.org>
Ted Ts'o wrote:
> On Fri, Oct 22, 2010 at 04:45:17PM -0500, Eric Sandeen wrote:
>> As pointed out in a prior patch, updating the mapping's
>> writeback_index based on pages written isn't quite right;
>> what the writeback index is really supposed to reflect is
>> the next page which should be scanned for writeback during
>> periodic flush.
>>
>> As in write_cache_pages(), write_cache_pages_da() does
>> this scanning for us as we assemble the mpd for later
>> writeout. If we keep track of the next page after the
>> current scan, we can easily update writeback_index without
>> worrying about pages written vs. pages skipped, etc.
>>
>> Without this, an fsync will reset writeback_index to
>> 0 (its starting index) + however many pages it wrote, which
>> can mess up the progress of periodic flush.
>>
>> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
>
> Have you done any benchmarks with and without this patch series?
>
> Say, compilebench on a used and mildly fragmented file system?
>
> - Ted
Not compilebench specifically, but I did do some benchmarking
with out of cache buffered IO; to be honest I didn't see
striking performance differences, but I did see the writeback
behave better in terms of not wandering all over, even if it
might recover well.
I can try compilebench; do you have specific concerns?
-Eric
next prev parent reply other threads:[~2010-10-25 21:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-22 21:29 [PATCH 0/3] ext4: minor writeback changes Eric Sandeen
2010-10-22 21:30 ` [PATCH 1/3] ext4: tidy up a void argument in inode.c Eric Sandeen
2010-10-22 21:37 ` [PATCH 2/3] ext4: implement writeback livelock avoidance using page tagging Eric Sandeen
2010-10-22 21:45 ` [PATCH 3/3] ext4: update writeback_index based on last page scanned Eric Sandeen
2010-10-25 21:35 ` Ted Ts'o
2010-10-25 21:39 ` Eric Sandeen [this message]
2010-10-26 14:14 ` Ted Ts'o
2010-10-26 14:57 ` Eric Sandeen
2010-10-26 18:59 ` Ted Ts'o
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=4CC5F8FE.6000100@redhat.com \
--to=sandeen@redhat.com \
--cc=linux-ext4@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;
as well as URLs for NNTP newsgroup(s).