From: Wu Fengguang <fengguang.wu@intel.com>
To: Andreas Mohr <andi@lisas.de>
Cc: Jens Axboe <axboe@kernel.dk>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Minchan Kim <minchan.kim@gmail.com>,
Linux Memory Management List <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Rik van Riel <riel@redhat.com>
Subject: Re: 32GB SSD on USB1.1 P3/700 == ___HELL___ (2.6.34-rc3)
Date: Wed, 7 Apr 2010 15:08:42 +0800 [thread overview]
Message-ID: <20100407070842.GA18215@localhost> (raw)
In-Reply-To: <20100407070050.GA10527@localhost>
> > console-kit-d D df970368 0 2760 1 0x00000000
> > d9aa7c0c 00000046 00000000 df970368 bcc125ae 000002de df9700f0 df9700f0
> > 00000000 d9aa7c50 d9aa7c18 c1212374 d9aa7c48 d9aa7c20 c105b8f3 d9aa7c3c
> > c121288c c105b8be c1bfe5f8 0000000e d9aa7c48 d9aa7c64 d9aa7c70 c105baf7
> > Call Trace:
> > [<c1212374>] io_schedule+0x47/0x7d
> > [<c105b8f3>] sync_page+0x35/0x39
> > [<c121288c>] __wait_on_bit+0x34/0x5b
> > [<c105b8be>] ? sync_page+0x0/0x39
> > [<c105baf7>] wait_on_page_bit+0x7a/0x83
> > [<c1033d28>] ? wake_bit_function+0x0/0x37
> > [<c1063610>] shrink_page_list+0x115/0x3c3
> > [<c10511fb>] ? __delayacct_blkio_end+0x2f/0x35
> > [<c1068083>] ? congestion_wait+0x5d/0x67
> > [<c1063ba9>] shrink_inactive_list+0x2eb/0x476
> > [<c105117e>] ? delayacct_end+0x66/0x8d
> > [<c1063f69>] shrink_zone+0x235/0x2d6
> > [<c1033cf9>] ? autoremove_wake_function+0x0/0x2f
> > [<c10647e8>] do_try_to_free_pages+0x12c/0x229
> > [<c10649ed>] try_to_free_pages+0x6a/0x72
> > [<c1062889>] ? isolate_pages_global+0x0/0x1a2
> > [<c105fc64>] __alloc_pages_nodemask+0x2e8/0x493
> > [<c105fe1e>] __get_free_pages+0xf/0x2c
> > [<c1021fb6>] copy_process+0x9e/0xcc5
> > [<c1022cf1>] do_fork+0x114/0x25e
> > [<c106b07b>] ? handle_mm_fault+0x499/0x4f6
> > [<c1018239>] ? do_page_fault+0xe4/0x279
> > [<c10372bc>] ? up_read+0x16/0x2a
> > [<c1007752>] sys_clone+0x1b/0x20
> > [<c1002765>] ptregs_clone+0x15/0x30
> > [<c12141b5>] ? syscall_call+0x7/0xb
>
> Many applications (this one and below) are stuck in
> wait_on_page_writeback(). I guess this is why "heavy write to
> irrelevant partition stalls the whole system". They are stuck on page
> allocation. Your 512MB system memory is a bit tight, so reclaim
> pressure is a bit high, which triggers the wait-on-writeback logic.
I wonder if this hacking patch may help.
When creating 300MB dirty file with dd, it is creating continuous
region of hard-to-reclaim pages in the LRU list. priority can easily
go low when irrelevant applications' direct reclaim run into these
regions..
Thanks,
Fengguang
---
diff --git a/mm/vmscan.c b/mm/vmscan.c
index e0e5f15..f7179cf 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1149,7 +1149,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
*/
if (sc->order > PAGE_ALLOC_COSTLY_ORDER)
lumpy_reclaim = 1;
- else if (sc->order && priority < DEF_PRIORITY - 2)
+ else if (sc->order && priority < DEF_PRIORITY / 2)
lumpy_reclaim = 1;
pagevec_init(&pvec, 1);
WARNING: multiple messages have this Message-ID (diff)
From: Wu Fengguang <fengguang.wu@intel.com>
To: Andreas Mohr <andi@lisas.de>
Cc: Jens Axboe <axboe@kernel.dk>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Minchan Kim <minchan.kim@gmail.com>,
Linux Memory Management List <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Rik van Riel <riel@redhat.com>
Subject: Re: 32GB SSD on USB1.1 P3/700 == ___HELL___ (2.6.34-rc3)
Date: Wed, 7 Apr 2010 15:08:42 +0800 [thread overview]
Message-ID: <20100407070842.GA18215@localhost> (raw)
In-Reply-To: <20100407070050.GA10527@localhost>
> > console-kit-d D df970368 0 2760 1 0x00000000
> > d9aa7c0c 00000046 00000000 df970368 bcc125ae 000002de df9700f0 df9700f0
> > 00000000 d9aa7c50 d9aa7c18 c1212374 d9aa7c48 d9aa7c20 c105b8f3 d9aa7c3c
> > c121288c c105b8be c1bfe5f8 0000000e d9aa7c48 d9aa7c64 d9aa7c70 c105baf7
> > Call Trace:
> > [<c1212374>] io_schedule+0x47/0x7d
> > [<c105b8f3>] sync_page+0x35/0x39
> > [<c121288c>] __wait_on_bit+0x34/0x5b
> > [<c105b8be>] ? sync_page+0x0/0x39
> > [<c105baf7>] wait_on_page_bit+0x7a/0x83
> > [<c1033d28>] ? wake_bit_function+0x0/0x37
> > [<c1063610>] shrink_page_list+0x115/0x3c3
> > [<c10511fb>] ? __delayacct_blkio_end+0x2f/0x35
> > [<c1068083>] ? congestion_wait+0x5d/0x67
> > [<c1063ba9>] shrink_inactive_list+0x2eb/0x476
> > [<c105117e>] ? delayacct_end+0x66/0x8d
> > [<c1063f69>] shrink_zone+0x235/0x2d6
> > [<c1033cf9>] ? autoremove_wake_function+0x0/0x2f
> > [<c10647e8>] do_try_to_free_pages+0x12c/0x229
> > [<c10649ed>] try_to_free_pages+0x6a/0x72
> > [<c1062889>] ? isolate_pages_global+0x0/0x1a2
> > [<c105fc64>] __alloc_pages_nodemask+0x2e8/0x493
> > [<c105fe1e>] __get_free_pages+0xf/0x2c
> > [<c1021fb6>] copy_process+0x9e/0xcc5
> > [<c1022cf1>] do_fork+0x114/0x25e
> > [<c106b07b>] ? handle_mm_fault+0x499/0x4f6
> > [<c1018239>] ? do_page_fault+0xe4/0x279
> > [<c10372bc>] ? up_read+0x16/0x2a
> > [<c1007752>] sys_clone+0x1b/0x20
> > [<c1002765>] ptregs_clone+0x15/0x30
> > [<c12141b5>] ? syscall_call+0x7/0xb
>
> Many applications (this one and below) are stuck in
> wait_on_page_writeback(). I guess this is why "heavy write to
> irrelevant partition stalls the whole system". They are stuck on page
> allocation. Your 512MB system memory is a bit tight, so reclaim
> pressure is a bit high, which triggers the wait-on-writeback logic.
I wonder if this hacking patch may help.
When creating 300MB dirty file with dd, it is creating continuous
region of hard-to-reclaim pages in the LRU list. priority can easily
go low when irrelevant applications' direct reclaim run into these
regions..
Thanks,
Fengguang
---
diff --git a/mm/vmscan.c b/mm/vmscan.c
index e0e5f15..f7179cf 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1149,7 +1149,7 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
*/
if (sc->order > PAGE_ALLOC_COSTLY_ORDER)
lumpy_reclaim = 1;
- else if (sc->order && priority < DEF_PRIORITY - 2)
+ else if (sc->order && priority < DEF_PRIORITY / 2)
lumpy_reclaim = 1;
pagevec_init(&pvec, 1);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-04-07 7:08 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-04 22:13 32GB SSD on USB1.1 P3/700 == ___HELL___ (2.6.34-rc3) Andreas Mohr
2010-04-04 23:31 ` Gábor Lénárt
2010-04-05 10:53 ` Andreas Mohr
2010-04-07 7:00 ` Wu Fengguang
2010-04-07 7:00 ` Wu Fengguang
2010-04-07 7:08 ` Wu Fengguang [this message]
2010-04-07 7:08 ` Wu Fengguang
2010-04-15 3:31 ` KOSAKI Motohiro
2010-04-15 3:31 ` KOSAKI Motohiro
2010-04-15 4:19 ` Wu Fengguang
2010-04-15 4:19 ` Wu Fengguang
2010-04-15 4:32 ` KOSAKI Motohiro
2010-04-15 4:32 ` KOSAKI Motohiro
2010-04-15 4:41 ` Wu Fengguang
2010-04-15 4:41 ` Wu Fengguang
2010-04-15 4:55 ` KOSAKI Motohiro
2010-04-15 4:55 ` KOSAKI Motohiro
2010-04-15 5:19 ` Wu Fengguang
2010-04-15 5:19 ` Wu Fengguang
2010-04-16 3:16 ` [PATCH] vmscan: page_check_references() check low order lumpy reclaim properly KOSAKI Motohiro
2010-04-16 3:16 ` KOSAKI Motohiro
2010-04-16 4:26 ` Minchan Kim
2010-04-16 4:26 ` Minchan Kim
2010-04-16 5:33 ` KOSAKI Motohiro
2010-04-16 5:33 ` KOSAKI Motohiro
2010-04-16 21:18 ` Andrew Morton
2010-04-16 21:18 ` Andrew Morton
2010-05-13 2:54 ` KOSAKI Motohiro
2010-05-13 2:54 ` KOSAKI Motohiro
2010-04-07 8:39 ` 32GB SSD on USB1.1 P3/700 == ___HELL___ (2.6.34-rc3) Minchan Kim
2010-04-07 8:39 ` Minchan Kim
2010-04-07 8:52 ` Wu Fengguang
2010-04-07 8:52 ` Wu Fengguang
2010-04-07 11:17 ` Andreas Mohr
2010-04-07 11:17 ` Andreas Mohr
2010-04-08 19:46 ` Andreas Mohr
2010-04-08 19:46 ` Andreas Mohr
2010-04-08 20:12 ` Bill Davidsen
2010-04-08 20:35 ` Andreas Mohr
2010-04-08 22:01 ` Bill Davidsen
2010-04-09 15:56 ` Ben Gamari
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=20100407070842.GA18215@localhost \
--to=fengguang.wu@intel.com \
--cc=andi@lisas.de \
--cc=axboe@kernel.dk \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan.kim@gmail.com \
--cc=riel@redhat.com \
/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.