Re: [PATCH] remove throttle_vm_writeout()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Fengguang Wu <wfg@...>
Cc: Andrew Morton <akpm@...>, Peter Zijlstra <a.p.zijlstra@...>, Miklos Szeredi <miklos@...>, <linux-mm@...>, <linux-kernel@...>
Date: Sunday, October 7, 2007 - 7:54 pm

On Fri, Oct 05, 2007 at 08:30:28PM +0800, Fengguang Wu wrote:

Careful. kswapd is much less efficient at writeout than pdflush
because it does not do low->high offset writeback per address space.
It just flushes the pages in LRU order and that turns writeback into
a non-sequential mess. I/O sizes decrease substantially and
throughput falls through the floor.

So if you want kswapd to take over all the writeback, it needs to do
writeback in the same manner as the background flushes. i.e.  by
grabbing page->mapping and flushing that in sequential order rather
than just the page on the end of the LRU....

I documented the effect of kswapd taking over writeback in this
paper (section 5.3):

http://oss.sgi.com/projects/xfs/papers/ols2006/ols-2006-paper.pdf

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] remove throttle_vm_writeout(), David Chinner, (Sun Oct 7, 7:54 pm)
Re: [PATCH] remove throttle_vm_writeout(), Fengguang Wu, (Sun Oct 7, 8:33 pm)