All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.9 - e1000 - page allocation failed
@ 2004-10-21 22:16 Lukas Hejtmanek
  2004-10-21 22:58 ` Francois Romieu
  0 siblings, 1 reply; 11+ messages in thread
From: Lukas Hejtmanek @ 2004-10-21 22:16 UTC (permalink / raw)
  To: linux-kernel

Hello,

I'm getting this message in kernel log:

swapper: page allocation failure. order:0, mode:0x20
 [__alloc_pages+441/862] __alloc_pages+0x1b9/0x35e
 [__get_free_pages+37/63] __get_free_pages+0x25/0x3f
 [kmem_getpages+33/201] kmem_getpages+0x21/0xc9
 [cache_grow+171/333] cache_grow+0xab/0x14d
 [cache_alloc_refill+372/537] cache_alloc_refill+0x174/0x219
 [__kmalloc+133/140] __kmalloc+0x85/0x8c
 [alloc_skb+71/224] alloc_skb+0x47/0xe0
 [e1000_alloc_rx_buffers+68/227] e1000_alloc_rx_buffers+0x44/0xe3
 [e1000_clean_rx_irq+398/1095] e1000_clean_rx_irq+0x18e/0x447
 [__kfree_skb+131/253] __kfree_skb+0x83/0xfd
 [e1000_clean+81/202] e1000_clean+0x51/0xca
 [net_rx_action+119/246] net_rx_action+0x77/0xf6
 [__do_softirq+183/198] __do_softirq+0xb7/0xc6
 [do_softirq+45/47] do_softirq+0x2d/0x2f
 [do_IRQ+274/304] do_IRQ+0x112/0x130
 [common_interrupt+24/32] common_interrupt+0x18/0x20
 [default_idle+0/44] default_idle+0x0/0x2c
 [default_idle+41/44] default_idle+0x29/0x2c
 [cpu_idle+63/88] cpu_idle+0x3f/0x58
 [start_kernel+361/388] start_kernel+0x169/0x184
 [unknown_bootoption+0/348] unknown_bootoption+0x0/0x15c

That machine has 300MB of free memory of 1GB total and 4GB of free swap. So what
is wrong?

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: 2.6.9 - e1000 - page allocation failed
@ 2004-10-22 10:55 Piszcz, Justin Michael
  2004-10-22 19:35 ` Francois Romieu
  0 siblings, 1 reply; 11+ messages in thread
From: Piszcz, Justin Michael @ 2004-10-22 10:55 UTC (permalink / raw)
  To: Andrew Morton, Francois Romieu; +Cc: xhejtman, linux-kernel

Question regarding TSO:

I found this in regards to TSO:
http://www.kerneltrap.org/node.php?id=397

Which option enables TSO?

$ grep -i tso .config
$ grep -i tcp .config
CONFIG_NFSD_TCP=y

I get them almost 1-10 minutes after rebooting into 2.6.9.
Machine = Dell Optiplex GX1
RAM = 768MB (ECC)
SWAP = 2048MB

So try the patch and increasing /proc/sys/vm/min_free_kbytes? I will
give this a shot and report back.

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Andrew Morton
Sent: Friday, October 22, 2004 5:52 AM
To: Francois Romieu
Cc: xhejtman@mail.muni.cz; linux-kernel@vger.kernel.org
Subject: Re: 2.6.9 - e1000 - page allocation failed

Francois Romieu <romieu@fr.zoreil.com> wrote:
>
> Lukas Hejtmanek <xhejtman@mail.muni.cz> :
> [page allocation failure with e1000]
> 
> If you are using TSO, try patch below by Herbert Xu (available
> from
http://marc.theaimsgroup.com/?l=linux-netdev&m=109799935603132&w=3)
> 
> --- 1.67/net/ipv4/tcp_output.c	2004-10-01 13:56:45 +10:00
> +++ edited/net/ipv4/tcp_output.c	2004-10-17 18:58:47 +10:00
> @@ -455,8 +455,12 @@
>  {
>  	struct tcp_opt *tp = tcp_sk(sk);
>  	struct sk_buff *buff;
> -	int nsize = skb->len - len;
> +	int nsize;
>  	u16 flags;
> +
> +	nsize = skb_headlen(skb) - len;
> +	if (nsize < 0)
> +		nsize = 0;
>  
>  	if (skb_cloned(skb) &&
>  	    skb_is_nonlinear(skb) &&

I'd be interested in knowing if this fixes it - I don't expect it will,
because that's a zero-order allocation failure.  He's really out of
memory.

The e1000 driver has a default rx ring size of 256 which seems a bit
nutty:
a back-to-back GFP_ATOMIC allocation of 256 skbs could easily exhaust
the
page allocator pools.

Probably this machine needs to increase /proc/sys/vm/min_free_kbytes.
-
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/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: 2.6.9 - e1000 - page allocation failed
@ 2004-10-22 11:16 Piszcz, Justin Michael
  0 siblings, 0 replies; 11+ messages in thread
From: Piszcz, Justin Michael @ 2004-10-22 11:16 UTC (permalink / raw)
  To: Andrew Morton, Francois Romieu; +Cc: xhejtman, linux-kernel

# patch -p1 < ../e1000.patch
patching file net/ipv4/tcp_output.c
# lilo
Added 2.6.9-2 *
# 

I am copying files on the NIC @ 24-28MB/s (normal) over NFS (16GB), no
problems yet.

I will let you know if I get any more page allocation failures.

Also, on the topic of page allocation failures, if I increase the MTU to
9000 I always get page allocation failures on the Optiplex GX1 box, on a
P4 box I do not get the page allocation failures (I wanted to see what
kind of speeds could be achieved using a 9000 byte MTU vs 1500).

So far, no problems, I will Re: if there if the errors re-occur.


-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Andrew Morton
Sent: Friday, October 22, 2004 5:52 AM
To: Francois Romieu
Cc: xhejtman@mail.muni.cz; linux-kernel@vger.kernel.org
Subject: Re: 2.6.9 - e1000 - page allocation failed

Francois Romieu <romieu@fr.zoreil.com> wrote:
>
> Lukas Hejtmanek <xhejtman@mail.muni.cz> :
> [page allocation failure with e1000]
> 
> If you are using TSO, try patch below by Herbert Xu (available
> from
http://marc.theaimsgroup.com/?l=linux-netdev&m=109799935603132&w=3)
> 
> --- 1.67/net/ipv4/tcp_output.c	2004-10-01 13:56:45 +10:00
> +++ edited/net/ipv4/tcp_output.c	2004-10-17 18:58:47 +10:00
> @@ -455,8 +455,12 @@
>  {
>  	struct tcp_opt *tp = tcp_sk(sk);
>  	struct sk_buff *buff;
> -	int nsize = skb->len - len;
> +	int nsize;
>  	u16 flags;
> +
> +	nsize = skb_headlen(skb) - len;
> +	if (nsize < 0)
> +		nsize = 0;
>  
>  	if (skb_cloned(skb) &&
>  	    skb_is_nonlinear(skb) &&

I'd be interested in knowing if this fixes it - I don't expect it will,
because that's a zero-order allocation failure.  He's really out of
memory.

The e1000 driver has a default rx ring size of 256 which seems a bit
nutty:
a back-to-back GFP_ATOMIC allocation of 256 skbs could easily exhaust
the
page allocator pools.

Probably this machine needs to increase /proc/sys/vm/min_free_kbytes.
-
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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-12-03 18:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21 22:16 2.6.9 - e1000 - page allocation failed Lukas Hejtmanek
2004-10-21 22:58 ` Francois Romieu
2004-10-22  9:51   ` Andrew Morton
2004-10-22 12:08     ` Lukas Hejtmanek
2004-10-22 12:45       ` Nick Piggin
2004-12-03 18:37         ` Lukas Hejtmanek
2004-11-03 13:22     ` Lukas Hejtmanek
2004-11-03 14:10     ` Lukas Hejtmanek
  -- strict thread matches above, loose matches on Subject: below --
2004-10-22 10:55 Piszcz, Justin Michael
2004-10-22 19:35 ` Francois Romieu
2004-10-22 11:16 Piszcz, Justin Michael

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.