Messages in this thread |  | | Date | Wed, 26 Sep 2001 00:09:22 +0200 | From | Andrea Arcangeli <> | Subject | Re: __alloc_pages: 0-order allocation failed |
| |
On Mon, Sep 24, 2001 at 09:38:24AM -0300, Marcelo Tosatti wrote: > --- linux.orig/mm/vmscan.c Mon Sep 24 10:36:40 2001 > +++ linux/mm/vmscan.c Mon Sep 24 10:54:01 2001 > @@ -567,6 +567,9 @@ > if (nr_pages <= 0) > return 1; > > + if (nr_pages < SWAP_CLUSTER_MAX) > + ret |= 1; > +
too much permissive (vm-tweaks-1 does something similar but not that permissive)
> ret |= swap_out(priority, classzone, gfp_mask, SWAP_CLUSTER_MAX << 2); > } while (--priority); > > --- linux.orig/mm/page_alloc.c Mon Sep 24 10:36:40 2001 > +++ linux/mm/page_alloc.c Mon Sep 24 10:44:12 2001 > @@ -400,7 +400,7 @@ > if (!z) > break; > > - if (zone_free_pages(z, order) > z->pages_high) { > + if (zone_free_pages(z, order) > z->pages_min) {
that breaks oom detection.
Andrea - 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://www.tux.org/lkml/
|  |