From: Willy Tarreau <w@1wt.eu>
To: rrcwjpgr <rrcwjpgr@trashmail.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.28: __alloc_pages: 0-order allocation failed (gfp=0x1d2/0) ?
Date: Thu, 21 Dec 2006 06:26:43 +0100 [thread overview]
Message-ID: <20061221052643.GK24090@1wt.eu> (raw)
In-Reply-To: <20061218103243.97FF9BB1A02B7@smtp.trashmail.net>
Hello,
On Mon, Dec 18, 2006 at 11:32:43AM +0100, rrcwjpgr wrote:
> Hello,
>
> first thanks for your great support on the Linux kernel.
> I have a problem with kernel 2.4.28 and maybe somebody has an idea about my problem. When I type dmesg, I get this error messages:
> __alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
> VM: killing process python
>
> For any kind of reason a python script is killed.
> What this kind of error message means?
> Is this the memory killer?
exactly !
> This would mean that maybe I have a memory leak in the python script?
Generally, when you get this on scripts written in such "high level"
languages, this is because you fill variables with a file which does
not fit into memory. I have often seen this in people's perl scripts,
and sometimes even in shell scripts. Eg:
count=$(cat file)
Where file is unexpectedly big, or even a link to /dev/zero. This is
an excellent OOM trigger.
You can use ulimit (man bash) to limit the amount of memory your script
can use. At least it will not make the system go ill.
Regards,
Willy
prev parent reply other threads:[~2006-12-21 5:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-18 10:32 rrcwjpgr
2006-12-21 5:26 ` Willy Tarreau [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=20061221052643.GK24090@1wt.eu \
--to=w@1wt.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=rrcwjpgr@trashmail.net \
/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®