login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
1
Re: [PATCH] vmscan: remove wait_on_page_writeback() from pageout()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KOSAKI Motohiro
Subject:
Re: [PATCH] vmscan: remove wait_on_page_writeback() from pageout()
Date: Sunday, August 1, 2010 - 1:32 am
> On Wed, Jul 28, 2010 at 05:59:55PM +0800, KOSAKI Motohiro wrote:
quoted text
> > > On Wed, Jul 28, 2010 at 06:43:41PM +0900, KOSAKI Motohiro wrote: > > > > > On Wed, Jul 28, 2010 at 04:46:54PM +0800, Wu Fengguang wrote: > > > > > > The wait_on_page_writeback() call inside pageout() is virtually dead code. > > > > > > > > > > > > shrink_inactive_list() > > > > > > shrink_page_list(PAGEOUT_IO_ASYNC) > > > > > > pageout(PAGEOUT_IO_ASYNC) > > > > > > shrink_page_list(PAGEOUT_IO_SYNC) > > > > > > pageout(PAGEOUT_IO_SYNC) > > > > > > > > > > > > Because shrink_page_list/pageout(PAGEOUT_IO_SYNC) is always called after > > > > > > a preceding shrink_page_list/pageout(PAGEOUT_IO_ASYNC), the first > > > > > > pageout(ASYNC) converts dirty pages into writeback pages, the second > > > > > > shrink_page_list(SYNC) waits on the clean of writeback pages before > > > > > > calling pageout(SYNC). The second shrink_page_list(SYNC) can hardly run > > > > > > into dirty pages for pageout(SYNC) unless in some race conditions. > > > > > > > > > > > > > > > > It's possible for the second call to run into dirty pages as there is a > > > > > congestion_wait() call between the first shrink_page_list() call and the > > > > > second. That's a big window. > > > > > > > > > > > And the wait page-by-page behavior of pageout(SYNC) will lead to very > > > > > > long stall time if running into some range of dirty pages. > > > > > > > > > > True, but this is also lumpy reclaim which is depending on a contiguous > > > > > range of pages. It's better for it to wait on the selected range of pages > > > > > which is known to contain at least one old page than excessively scan and > > > > > reclaim newer pages. > > > > > > > > Today, I was successful to reproduce the Andres's issue. and I disagree this > > > > opinion. > > > > > > Is Andres's issue not covered by the patch "vmscan: raise the bar to > > > PAGEOUT_IO_SYNC stalls" because wait_on_page_writeback() was the > > > main problem? > > > > Well, "vmscan: raise the bar to PAGEOUT_IO_SYNC stalls" is completely bandaid and > > No joking. The (DEF_PRIORITY-2) is obviously too permissive and shall be fixed. > > > much IO under slow USB flash memory device still cause such problem even if the patch is applied. > > As for this patch, raising the bar to PAGEOUT_IO_SYNC reduces both > calls to congestion_wait() and wait_on_page_writeback(). So it > absolutely helps by itself. > > > But removing wait_on_page_writeback() doesn't solve the issue perfectly because current > > lumpy reclaim have multiple sick. again, I'm writing explaining mail..... > > Let's submit the two known working fixes first?
Definitely, I can't oppose obvious test result (by another your mail) :-) OK, should go! Thanks. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Wu Fengguang
, (Wed Jul 28, 12:17 am)
[PATCH] vmscan: remove wait_on_page_writeback() from pageout()
, Wu Fengguang
, (Wed Jul 28, 1:46 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Mel Gorman
, (Wed Jul 28, 2:10 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Wu Fengguang
, (Wed Jul 28, 2:30 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, KOSAKI Motohiro
, (Wed Jul 28, 2:43 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Mel Gorman
, (Wed Jul 28, 2:45 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Mel Gorman
, (Wed Jul 28, 2:50 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, KOSAKI Motohiro
, (Wed Jul 28, 2:59 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Minchan Kim
, (Wed Jul 28, 9:29 am)
Re: Why PAGEOUT_IO_SYNC stalls for a long time
, Andrew Morton
, (Wed Jul 28, 10:30 am)
Re: Why PAGEOUT_IO_SYNC stalls for a long time
, KOSAKI Motohiro
, (Wed Jul 28, 6:01 pm)
Re: [PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Andrea Arcangeli
, (Fri Jul 30, 6:17 am)
Re: [PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Mel Gorman
, (Fri Jul 30, 6:31 am)
Re: [PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Christoph Hellwig
, (Sat Jul 31, 10:33 am)
Re: [PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Pekka Enberg
, (Sat Jul 31, 10:55 am)
Re: [PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Christoph Hellwig
, (Sat Jul 31, 10:59 am)
Re: [PATCH] vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
, Pekka Enberg
, (Sat Jul 31, 11:09 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Wu Fengguang
, (Sat Jul 31, 10:17 pm)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Wu Fengguang
, (Sat Jul 31, 10:27 pm)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Wu Fengguang
, (Sat Jul 31, 10:49 pm)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, KOSAKI Motohiro
, (Sun Aug 1, 1:32 am)
Re: [PATCH] vmscan: remove wait_on_page_writeback() from p ...
, Wu Fengguang
, (Sun Aug 1, 1:35 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Nick Piggin
Re: dealing with barriers (was Re: [PATCH] firewire: fw-core: enforce write order ...
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Linux Kernel Mailing List
bnx2x: Moving includes
Colocation donated by:
Syndicate