Re: 2.4.8preX VM problems

Andrew Tridgell
2001-08-01T08:18:43Z

Marcelo,

I'm afraid that didn't help. I get:

[root@skurk /root]# ./readfiles /dev/ddisk
362 MB 181.145 MB/sec
695 MB 166.455 MB/sec
811 MB 57.6077 MB/sec
812 MB 0.439532 MB/sec
813 MB 0.463901 MB/sec
814 MB 0.416093 MB/sec
815 MB 0.409958 MB/sec
816 MB 0.410413 MB/sec

> Could you please try the patch below ? (against 2.4.8pre3)
>
> --- linux.orig/mm/vmscan.c Wed Aug 1 04:26:36 2001
> +++ linux/mm/vmscan.c Wed Aug 1 04:33:22 2001
> @@ -593,13 +593,9 @@
> * If we're freeing buffer cache pages, stop when
> * we've got enough free memory.
> */
> - if (freed_page) {
> - if (zone) {
> - if (!zone_free_shortage(zone))
> - break;
> - } else if (!free_shortage())
> - break;
> - }
> + if (freed_page && !total_free_shortage())
> + break;
> +
> continue;
> } else if (page->mapping && !PageDirty(page)) {
> /*
>
>