Re: [2.4.9 SMP] alloc_pages failed

Daniel Phillips (phillips@bonn-fries.net)
Sun, 2 Sep 2001 20:01:19 +0200


(reposted to correct cut & pasted errors)

On September 2, 2001 03:14 pm, Igor Mozetic wrote:
> My box is dual Xeon 550, Intel C440GX+, 2GB RAM, AIC7XXX.
> Last night I got log full of the following:
>
> Sep 2 04:00:46 jerolim kernel: __alloc_pages: 0-order allocation failed.
> Sep 2 04:00:47 jerolim last message repeated 208 times
> Sep 2 04:00:47 jerolim kernel: ed.

Could you please apply this patch so we can see which kind of allocation is
failing (patch -p0):

--- 2.4.9.clean/mm/page_alloc.c Thu Aug 16 12:43:02 2001
+++ 2.4.9/mm/page_alloc.c Mon Aug 20 22:05:40 2001
@@ -502,7 +502,8 @@
}

/* No luck.. */
- printk(KERN_ERR "__alloc_pages: %lu-order allocation failed.\n", order);
+ printk(KERN_ERR "__alloc_pages: %lu-order allocation failed (gfp=0x%x/%i).\n",
+ order, gfp_mask, !!(current->flags & PF_MEMALLOC));
return NULL;
}

On the assumption it's an atomic allocation, chould you try this patch and
see if it reduces the frequency:

--- ../2.4.9.clean/mm/page_alloc.c Thu Aug 16 12:43:02 2001
+++ ./mm/page_alloc.c Wed Aug 29 23:47:39 2001
@@ -493,6 +493,9 @@
}

/* XXX: is pages_min/4 a good amount to reserve for this? */
+ if (z->free_pages < z->pages_min / 3 && (gfp_mask & __GFP_WAIT) &&
+ !(current->flags & PF_MEMALLOC))
+ continue;
if (z->free_pages < z->pages_min / 4 &&
!(current->flags & PF_MEMALLOC))
continue;

-
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/