From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: __GFP flags and kmalloc failures
Date: Tue, 02 Nov 2004 19:01:55 +0100 [thread overview]
Message-ID: <4187CB93.6080405@drzeus.cx> (raw)
In-Reply-To: <20041102144429.GG32054@logos.cnet>
Marcelo Tosatti wrote:
>On Tue, Nov 02, 2004 at 04:49:20PM +0100, Pierre Ossman wrote:
>
>
>>
>>The problem is now that this allocation doesn't always succeed. When it
>>fails I get:
>>
>>insmod: page allocation failure. order:4, mode:0x11
>>
>>
>
>This is a big allocation and the kernel is having problem finding such a
>big page, due to memory fragmentation (as you mention below).
>
>What kernel version are you using?
>
>
I'm currently running 2.6.9. No external patches (except for my own
stuff related to this driver).
>-mm contains a series of patches from Nick which should make the situation
>better, have you tried it? Currently kswapd doenst honour high order
>page shortage.
>
>
>
No I haven't. Only saw it today and I usually don't use the -mm tree.
I've gotten the impression it's a bit too bleeding edge for me ;)
What do these patches add to the mix?
I'm also not familiar what the order means. I guess it's some kind of
priority system? Is there a way I can raise my priority to get access to
the memory that kswapd actually keeps available?
>>As for solutions I've tried using __GFP_REPEAT which seems to do the
>>trick. But the double underscore indicates (at least to me) that these
>>are internal defines that shouldn't be used except for very special
>>cases. What is the policy about these?
>>
>>
>
>Its OK to use these flags externally. They might change in future major kernel
>versions though, or even future v2.6 release. ie its not a stable API.
>
>
Is there any other way of increasing the chances of actually getting the
pages I need? Since it is DMA it needs to be one big block.
Rgds
Pierre
next prev parent reply other threads:[~2004-11-02 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-02 15:49 __GFP flags and kmalloc failures Pierre Ossman
2004-11-02 14:44 ` Marcelo Tosatti
2004-11-02 18:01 ` Pierre Ossman [this message]
2004-11-02 15:26 ` Marcelo Tosatti
2004-11-02 18:31 ` Pierre Ossman
2004-11-02 15:55 ` Marcelo Tosatti
2004-11-02 19:06 ` Pierre Ossman
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=4187CB93.6080405@drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/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