Re: [PATCH] swap write clustering

From: Marcelo Tosatti (marcelo@conectiva.com.br)
Date: Fri Dec 22 2000 - 15:20:59 EST


On Thu, 21 Dec 2000, Marcelo Tosatti wrote:

>
> On Thu, 21 Dec 2000, Andrew Morton wrote:
>
> > Marcelo Tosatti wrote:
> > >
> > > Hi,
> > >
> > > Basically this new swap_writepage function looks for dirty swapcache pages
> > > which may be contiguous (reverse and forward searching wrt to the physical
> > > address of the page being passed to swap_writepage) and builds a page list
> > > which is written "at once".
> > >
> > > The patch is against test13pre3.
> > >
> > > Comments are welcome. (especially about the __find_page_nolock
> > > modification)
> > >
> >
> > Have you any benchmarks for this?
>
> Not yet.
>
> Under some stress tests on a 16mb machine, around 30% of the clustered
> swapouts were reaching the limit of pages, which was 16.

While running X, Netscape and dbench (2 threads) on the 16mb machine the
number of successful write request merges increased by around 1000
(without the patch it was an average of 4000 write merges).

The dbench throughtput increased from 2.0Mb/s to 2.3Mb/s on average.

(Note: the swap partition was on the same disk as the rest of the system)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:32 EST