From: "Chris Friesen" <cfriesen@nortel.com>
To: Jonathan Haws <Jonathan.Haws@sdl.usu.edu>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: Jumbo Frames, sil24 SATA driver, and kswapd0 page allocation failures
Date: Wed, 12 Aug 2009 16:37:31 -0600 [thread overview]
Message-ID: <4A83442B.6080305@nortel.com> (raw)
In-Reply-To: <BB99A6BA28709744BF22A68E6D7EB51F01FE4C90D0@midas.usurf.usu.edu>
Jonathan Haws wrote:
> All,
>
> I am having some issues with my target and was hoping that someone
> could lend a hand. I am using an AMCC 405EX (Kilauea) board running
> Linux kernel 2.6.31.
>
> Here is the problem. I have some code that receives jumbo frames via
> the EMAC, sticks the data in a buffer, and writes the data out to a
> solid-state SATA disk (using a Silicon Image 3531 controller).
>
> What is happening is that I appear to be running out of memory and I
> cannot figure out why. The closest thing I can tell is that the
> sil24 driver for the SATA controller does not seem to be releasing
> memory back to the kernel for some reason. After some time of
> capturing data and logging it to disk, I get the following kernel
> dump:
>
> kswapd0: page allocation failure. order:2, mode:0x4020 Call Trace:
I ran into something similar on e1000 a long time ago. Notice the
"order 2". That means that you're requesting 16KB of physically
contiguous memory from the kernel, or four physical pages.
It's possible to get into a scenario where there is lots of memory
available but it's all fragmented. It looks like you have a 64K area
and a 128K area available still so you may not be hitting this, but you
might want to fix it anyways.
If the hardware supports it, the best way to deal with it is to set up
the driver so that it only ever deals in single pages. See the page
split code in the current e1000/e1000e for examples of this.
Chris
next prev parent reply other threads:[~2009-08-12 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 22:09 Jumbo Frames, sil24 SATA driver, and kswapd0 page allocation failures Jonathan Haws
2009-08-12 22:37 ` Chris Friesen [this message]
2009-08-18 22:56 ` Jonathan Haws
2009-10-26 15:38 ` Jumbo Frame bug in ibm_newemac driver (was Jumbo Frames, sil24 SATA driver, and kswapd0 page allocation failures) Jonathan Haws
-- strict thread matches above, loose matches on Subject: below --
2009-08-12 22:11 Jumbo Frames, sil24 SATA driver, and kswapd0 page allocation failures Jonathan Haws
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=4A83442B.6080305@nortel.com \
--to=cfriesen@nortel.com \
--cc=Jonathan.Haws@sdl.usu.edu \
--cc=linuxppc-dev@lists.ozlabs.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.