Hi,
On Mon, 27 Mar 2000, Andrea Arcangeli wrote:
> >On Wed, 22 Mar 2000, Craig Kulesa wrote:
> >
> >> Now open a large Emacs session, go 23M into swap. Close Emacs. Then look:
> >>
> >> total used free shared buffers cached
> >> Mem: 30348 27136 3212 0 160 22748
> >> minus buffers/cache: 4228 26120
> >> Swap: 32764 17640 15124
> >>
> >> Hmmm, there's nothing significant running anymore, yet 17M is shown paged
> >> out. If I go and 'dd if=/dev/zero of=dump.dat bs=1024k count=40', or
Here's mine
total used free shared buffers cached
Mem: 126644 121632 5012 0 8040 76224
-/+ buffers/cache: 37368 89276
Swap: 48156 41908 6248
> Could you give this a try?
>
> --- 2.3.99pre3/include/linux/swap.h Thu Mar 16 01:26:46 2000
> +++ /tmp/swap.h Mon Mar 27 23:41:40 2000
> @@ -154,7 +154,7 @@
> return 1;
> count = page_count(page);
> if (PageSwapCache(page))
> - count += swap_count(page) - 2;
> + count += swap_count(page) - 2 - !!page->buffers;
> return count > 1;
> }
>
>
> Andrea
Andrea, I didn't notice any improvement with this patch applied.
I am using 2.3.99pre3 + LVM patch + Rik's kswapd patch + Kanoj's _don't
call kswapd too much_ patch + your patch above
Shane
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:22 EST