Re: Linux 2.4.1-ac7

From: Marcelo Tosatti (marcelo@conectiva.com.br)
Date: Mon Feb 12 2001 - 15:56:40 EST


On Sun, 11 Feb 2001, Mike Galbraith wrote:

> On Sun, 11 Feb 2001, Rik van Riel wrote:
>
> > On Sun, 11 Feb 2001, Mike Galbraith wrote:
> > > On Sun, 11 Feb 2001, Mike Galbraith wrote:
> > >
> > > > Something else I see while watching it run: MUCH more swapout than
> > > > swapin. Does that mean we're sending pages to swap only to find out
> > > > that we never need them again?
> > >
> > > (numbers might be more descriptive)
> > >
> > > user : 0:07:21.70 54.3% page in : 142613
> > > nice : 0:00:00.00 0.0% page out: 155454
> > > system: 0:03:40.63 27.1% swap in : 56334
> > > idle : 0:02:30.50 18.5% swap out: 149872
> > > uptime: 0:13:32.83 context : 519726
> >
> > Indeed, in this case we send a lot more pages to swap
> > than we read back in from swap, this means that the
> > data is still sitting in swap space and was never needed
> > again.
>
> But it looks and feels (box is I/O hyper-saturated) like
> it wrote it all to disk.
>
> (btw, ac5 does more disk read.. ie the reduced cache size
> of earlier kernels under heavy pressure does have it's price
> with this workload.. quite visible in agregates. looks to
> be much cheaper than swap though.. for this workload)

Mike,

Could you please try the attached patch on top of latest Rik's patch?

Thanks!

--- linux.orig/mm/vmscan.c Sun Feb 11 07:56:29 2001
+++ linux/mm/vmscan.c Sun Feb 11 11:05:30 2001
@@ -563,7 +566,8 @@
                        /* The buffers were not freed. */
                        if (!clearedbuf) {
                                add_page_to_inactive_dirty_list(page);
- flushed_pages++;
+ if (wait)
+ flushed_pages++;

                        /* The page was only in the buffer cache. */
                        } else if (!page->mapping) {

-
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://vger.kernel.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:20 EST