OpenWrt Forum Archive

Topic: Out of memory crash??

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am running kamikaze 7.07 on an RB532a and i get the following errors after one or two days of uptime

eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
printk: 2930 messages suppressed.
crond invoked oom-killer: gfp_mask=0x201d0, order=0, oomkilladj=0
Call Trace:[<8010875c>][<8010875c>][<8014f7bc>][<80151474>][<8015145c>][<80217b38>][<801a4a94>][<8014ddd4>][<802181f8>][<801a4a94>][<80253218>][<80253320>][<801e3bc0>][<8024fc10>][<801d55f0>][<80304e04>][<801d586c>][<801d2930>][<80210108>][<801d2bac>][<801d3104>][<8014afec>][<80154024>][<80154008>][<8011cca0>][<8014b344>][<8014b304>][<8014e418>][<801755e8>][<8015d378>][<8013d900>][<8010c5c0>][<803063e8>][<8013dd50>][<8013d6e0>][<80102640>][<8010a960>]
Mem-info:
DMA per-cpu:
CPU    0: Hot: hi:   18, btch:   3 usd:   3   Cold: hi:    6, btch:   1 usd:   0
Active:1175 inactive:0 dirty:0 writeback:0 unstable:0
free:95 slab:13492 mapped:2 pagetables:67 bounce:0
DMA free:380kB min:1016kB low:1268kB high:1524kB active:4700kB inactive:0kB present:65024kB pages_scanned:277636 all_unreclaimable? yes
lowmem_reserve[]:<3>eth0: no memory, dropping rx packet.
0 0
DMA: 1*4kB 1*8kB 1*16kB 1*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 380kB
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap  = 0kB
Total swap = 0kB
Free swap:            0kB
16383 pages of RAM
0 pages of HIGHMEM
1027 reserved pages
37 pages shared
0 pages swap cached
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
eth0: no memory, dropping rx packet.
printk: 2944 messages suppressed.
ospfd invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
Call race:[<8010875c>][<8010875c>][<8014f7bc>][<80151474>][<8015145c>][<80153f10>][<8014e418>][<8015d378>][<8010c5c0>][<802638d8>][<80147908>][<80102640>][<801027b4>]
Mem-info:
DMA per-cpu:
CPU    0: Hot: hi:   18, btch:   3 usd:   3   Cold: hi:    6, btch:   1 usd:   0
Active:1175 inactive:0 dirty:0 writeback:0 unstable:0
free:95 slab:13492 mapped:2 pagetables:67 bounce:0
DMA free:380kB min:1016kB low:1268kB high:1524kB active:4700kB inactive:0kB present:65024kB pages_scanned:283592 all_unreclaimable? yes
lowmem_reserve[]: 0 0
DMA: 1*4kB 1*8kB 1*16kB 1*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 380kB
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap  = 0kB
Total swap = 0kB
Free swap:            0kB
16383 pages of RAM
0 pages of HIGHMEM
1027 reserved pages
37 pages shared
0 pages swap cached

I am guessing this is memory related but i cannot find the source of the problem. I have noticed, although not quite sure,  that this problem occurs with high traffic (30Mbits when the above error happened). The ps output is as follows

root@turing:/# ps
  PID  Uid     VmSize Stat Command
    1 root        392 S   init       
    2 root            SWN [ksoftirqd/0]
    3 root            SW< [events/0]
    4 root            SW< [khelper]
    5 root            SW< [kthread]
   19 root            SW< [kblockd/0]
   36 root            SW  [pdflush]
   37 root            SW  [pdflush]
   38 root            SW< [kswapd0]
   39 root            SW< [aio/0]
   57 root            SW  [mtdblockd]
  164 root            SWN [jffs2_gcd_mtd0]
  171 root        404 S   logger -s -p 6 -t 
  173 root        492 S   /bin/ash --login
  180 root        352 S   syslogd -C16
  183 root        280 S   klogd
  191 root        264 S   /sbin/hotplug2 --override --persistent --max-children
  910 root        328 S   crond -c /etc/crontabs
  914 root        336 S   /usr/sbin/dropbear -s -p 22
1002 root       1588 S   snmpd -Lf /dev/null -p /var/run/snmpd.pid
1015 nobody      388 S   dnsmasq -F 10.27.228.4,10.27.228.13,255.255.255.240,1
1030 quagga      904 S   /usr/sbin/zebra -d
1035 quagga     1104 S   /usr/sbin/ospfd -d
1040 quagga     2712 S   /usr/sbin/bgpd -d
1045 root        364 S   /usr/sbin/watchquagga -d -z -T 60 -R /usr/sbin/quagga
1079 root        544 S   /usr/sbin/pppd plugin rp-pppoe.so mtu 1500 mru 1500 n
1173 root        384 R   ps

Any ideas?

(Last edited by alasondro on 24 Sep 2007, 03:02)

Just for future reference...
I am starting to think that the proble has something to do with the "qos-scripts " package and specifically with the imq device. Since I disabled it everything seems to run smoothly....

I have exactly the same problem. Do you know where the memory leak exits ? And how to solve it with the imq device ?

No unfortunately i dont have the knowledge to pinpoint the problem...All I did is stop the qos-scripts from running and the remove the imq module...Someone told me that the imq device is buggy when doing both ingress and egress traffic shaping at the same time but i dont have the time to verify now...

The discussion might have continued from here.