From: Daniel Phillips <phillips@bonn-fries.net>
To: Igor Mozetic <igor.mozetic@uni-mb.si>, linux-kernel@vger.kernel.org
Subject: Re: [2.4.9 SMP] alloc_pages failed
Date: Sun, 2 Sep 2001 20:01:19 +0200 [thread overview]
Message-ID: <20010902175427Z16091-32383+3015@humbolt.nl.linux.org> (raw)
In-Reply-To: <15250.12448.265829.457034@ravan.camtp.uni-mb.si>
In-Reply-To: <15250.12448.265829.457034@ravan.camtp.uni-mb.si>
(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;
prev parent reply other threads:[~2001-09-02 17:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-02 13:14 Igor Mozetic
2001-09-02 16:50 ` Daniel Phillips
2001-09-02 17:19 ` Alex Bligh - linux-kernel
2001-09-02 17:44 ` Daniel Phillips
2001-09-02 18:01 ` Daniel Phillips [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010902175427Z16091-32383+3015@humbolt.nl.linux.org \
--to=phillips@bonn-fries.net \
--cc=igor.mozetic@uni-mb.si \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®