linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Out of Memory problem with kernel 2.4.4
@ 2001-11-07 16:13 Felipe Trevisan Amaro
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Trevisan Amaro @ 2001-11-07 16:13 UTC (permalink / raw)
  To: linuxppc-embedded


I'm developing an embedded router with MPC850 and kernel 2.4.4-denx
(linux-2.4.4-2001-07-23). It seems to be working ok, but when I do a
stressing troughput test all system crashes.
In this test each trial is 1000 seconds long and the error appear when the
lan inteface receives ethernet packets (128 or 192 packet-size) in a rate
bigger than the wan interface can handle. The system run out of  free memory
and hangs up. This are some messages :
...
eth0: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth0: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth0: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
...
VM: killing process in.telnetd
Out of Memory: Killed process 50 (sh).
Out of Memory: Killed process 1 (init).
__alloc_pages: 0-order allocation failed.
VM: killing process sh
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 52 (init).
Out of Memory: Killed process 1 (init).
__alloc_pages: 0-order allocation failed.
VM: killing process sh
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 54 (init).
...
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 1 (init).
Out of Memory: Killed process 1 (init).
...

When I was monitoring /proc/meminfo I saw the free memory becoming near the
limit of /proc/sys/vm/freepages  (128 pages or 512kb) and then the processes
start to be killed by the kernel. The problem is the system don't get out of
this error condition ( the test has already been stopped) .

Any help or tips would be greatly appreciated.


Thanks,

Felipe Trevisan Amaro

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Out of Memory problem with kernel 2.4.4
@ 2003-08-11  1:02 zhongqx-local
  0 siblings, 0 replies; 2+ messages in thread
From: zhongqx-local @ 2003-08-11  1:02 UTC (permalink / raw)
  To: linuxppc-embedded


Hello everyone:

       I am developing a BRIDGE with in MPC860 and linux kernel
2.4.4(denx linux-2.4.4-2002-02-14).I make a bridge BR0 with eth1(100M
FEC) and eth0 (10M scc1),my total ram is 16M ,I used a 6M ramdisk.When
I boot the kernel I find the free memory is about 5M,But when I copy a
large files through the bridge,I find that the free memory become fewer
and fewer,at last the free memory is about 500K ,then the kernel killed
all process and restart itself like the following:

# | STATE_BRID_I1: retransmission; will wait 10s for response time 1
br0: port 2(eth1) entering learning state
br0: port 1(eth0) entering learning state
br0: received tcn bpdu on port 2(eth1)
br0: topology change detected, propagating
| STATE_BRID_I1: retransmission; will wait 10s for response time 2
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
br0: topology change detected, propagating
| it seens Center ID is illegal
| STATE_BRID_I1: retransmission; will wait 10s for response time 3
| add center 192.168.1.242 public key sucessly
send work key to bridge c0a801f2
total drop skb 1 packet!
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
__alloc_pages: 0-order allocation failed.
eth0: Memory squeeze, dropping packet.
eth1: Memory squeeze, dropping packet.
__alloc_pages: 0-order allocation failed.
eth1: Memory squeeze, dropping packet.
Out of Memory: Killed process 21 (sh).
Terminated
Out of Memory: Killed process 7 (linuxrc).

The system is going down NOW !!
Sending SIGTERM to all processes.
klips_debug:pfkey_remove_socket: succeeded.
klips_debug:pfkey_destroy_socket: destroyed.
klips_debug:pfkey_release: succeeded.
Sending SIGKILL to all processes.
Please stand by while rebooting the system.
Restarting syst

PPCBoot 1.1.5 (Mar 26 2003 - 10:24:01)

CPU:   XPC860xxZPnnD4 at 50.00 MHz: 4 kB I-Cache 4 kB D-Cache FEC present
Board: Embedded Linux development kits for MPC8xx se
ries...
DRAM:  16 MB
In:    serial
Out:   serial
Err:   serial

'Type "run flash_nfs" to mount root filesystem over NFS'

Hit any key to stop autoboot:  0
BOOTP broadcast 1

    I can not understand why the free memory become fewer and fewer,I
look for the fec.c driver, when a packet come the program will
use dev_alloc_skb functions alloc a skb for it ,and at last in
net/bridge/br_forward.c it will be kfree_skb(skb),so I think the free
memory should be 5M allways.

    Can anyone help me? thanks a lot!

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-08-11  1:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11  1:02 Out of Memory problem with kernel 2.4.4 zhongqx-local
  -- strict thread matches above, loose matches on Subject: below --
2001-11-07 16:13 Felipe Trevisan Amaro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).