From: "Dave Young" <hidave.darkstar@gmail.com>
To: "Alexey Dobriyan" <adobriyan@gmail.com>
Cc: "Jiri Slaby" <jirislaby@gmail.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, "Mingming Cao" <cmm@us.ibm.com>
Subject: Re: ext4-mm-delalloc-ext4-lock-reverse-fix
Date: Tue, 20 May 2008 10:16:23 +0800 [thread overview]
Message-ID: <a8e1da0805191916o4b040e26p7c71a5302422256c@mail.gmail.com> (raw)
In-Reply-To: <20080519203752.GA4967@martell.zuzino.mipt.ru>
On Tue, May 20, 2008 at 4:37 AM, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> On Mon, May 19, 2008 at 05:24:47PM +0200, Jiri Slaby wrote:
>> Andrew Morton <akpm@linux-foundation.org> wrote:
>> > On Mon, 19 May 2008 15:15:09 +0800 "Dave Young" <hidave.darkstar@gmail.com> wrote:
>> >
>> > > With 2.6.26-rc2-mm1 I need to sync frequently. It's not normal as my
>> > > understanding.
>> > >
>> > > 1. scp a big file from a lan server. Firstly the speed is about 8M/s,
>> > > but the speed will slow down to 100K/s at last. After I exec "sync",
>> > > the speed will restore.
>> > >
>> > > Is this a known issue?
>> > >
>> >
>> > Yes, probably related to the "mkfs takes forever" problem. I haven't
>> > looked into it yet. Nor has anyone else afaik.
>>
>> Absolutely not sure what this breaks in ext4, but fixes the problem for me:
Jiri, it fixes my scp-slow-down problem as well. Thanks.
>
> This helps, thank you!
>
>> --- a/mm/page-writeback.c
>> +++ b/mm/page-writeback.c
>> @@ -881,7 +881,7 @@ int write_cache_pages(struct address_space *mapping,
>> pagevec_init(&pvec, 0);
>> if (wbc->range_cyclic) {
>> index = mapping->writeback_index; /* Start from prev offset */
>> - end = wbc->range_end >> PAGE_CACHE_SHIFT;
>> + end = -1;
>> } else {
>> index = wbc->range_start >> PAGE_CACHE_SHIFT;
>> end = wbc->range_end >> PAGE_CACHE_SHIFT;
>
>
next prev parent reply other threads:[~2008-05-20 2:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-19 7:15 [2.6.26-rc2-mm1] sync to speed up? Dave Young
2008-05-19 7:29 ` Andrew Morton
2008-05-19 15:24 ` ext4-mm-delalloc-ext4-lock-reverse-fix Jiri Slaby
2008-05-19 17:54 ` ext4-mm-delalloc-ext4-lock-reverse-fix Mingming Cao
2008-05-19 20:37 ` ext4-mm-delalloc-ext4-lock-reverse-fix Alexey Dobriyan
2008-05-20 2:16 ` Dave Young [this message]
2008-05-19 23:05 ` [2.6.26-rc2-mm1] sync to speed up? Theodore Tso
2008-05-20 2:14 ` Dave Young
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=a8e1da0805191916o4b040e26p7c71a5302422256c@mail.gmail.com \
--to=hidave.darkstar@gmail.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cmm@us.ibm.com \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@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 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®