lkml.org 
[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: __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/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.062 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site