Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

OOM Killer in uClinux?

Hello,

I've a problem with my application under uClinux. It disappear from ps, like as it is killed.

I can't reproduce it, because it can happens after 2 minutes or after 2 days.

At the moment I'm not shure about what happens.

I became this message on the console:

subagent_2.1.ex: page allocation failure. order:5, mode:0xd0
Stack from 0172fe74:<0>
       <0> 00000005<0> 0102c2b0<0> 00000000<0> 00000010<0> 00000000<0> 00000001<0> 000000d0<0> 000000d0<0>
       <0> 0000000d<0> 011cfe6c<0> 011cfe60<0> 0120d0a0<0> 011cfe60<0> 00000000<0> 0102c2e0<0> 01030118<0>
       <0> 00000000<0> 010309f0<0> 00000011<0> 00000000<0> 00000003<0> 01185e84<0> 01200b20<0> 00000001<0>
       <0> 00011000<0> 00000001<0> 01030640<0> 00000000<0> 01036424<0> 00000000<0> 00000007<0> 01200b30<0>
       <0> 01200b34<0> 01200b38<0> 00000060<0> 00000000<0> 00000000<0> 00000068<0> 00000000<0> 00000000<0>
       <0> 015ffe90<0> 015fff10<0> 00000026<0> 00000007<0> 01200b20<0> 00000000<0> 00000000<0> 00000002<0>
Call Trace:<0>
       <0> <0> <0> <0>
Allocation of length 69632 from process 74 failed
DMA per-cpu: empty
Normal per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
HighMem per-cpu: empty
Free pages:         532kB (0kB HighMem)
Active:233 inactive:1069 dirty:2 writeback:0 unstable:0 free:133 slab:2092 mapped:0 pagetables:0
DMA free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB
protections: 0 0 0
Normal free:532kB min:128kB low:256kB high:384kB active:932kB inactive:4276kB present:16384kB
protections: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
protections: 0 0 0
DMA: empty
Normal: 5*4kB 4*8kB 12*16kB 7*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 532kB
HighMem: empty
subagent_2.1.ex: page allocation failure. order:5, mode:0xd0
Stack from 0172fe74:<0>
       <0> 00000005<0> 0102c2b0<0> 00000000<0> 00000010<0> 00000000<0> 00000001<0> 000000d0<0> 000000d0<0>
       <0> 0000000d<0> 011cfe6c<0> 011cfe60<0> 0120d0a0<0> 011cfe60<0> 00000000<0> 0102c2e0<0> 01030118<0>
       <0> 00000000<0> 010309f0<0> 00000011<0> 00000000<0> 00000003<0> 01185e84<0> 01200b20<0> 00000001<0>
       <0> 00011000<0> 00000001<0> 01030640<0> 00000000<0> 01036424<0> 01183e08<0> 15655480<0> 00000bd2<0>
       <0> 00000050<0> 00000015<0> 00989680<0> ffffd0cc<0> 0013d4ed<0> 00000008<0> 011c56e8<0> 011c56e0<0>
       <0> 00000000<0> 00000000<0> 014f586c<0> 00000000<0> 0169bd28<0> 014f5870<0> 00011000<0> 01c30260<0>
Call Trace:<0>
       <0> <0> <0>
Allocation of length 69632 from process 74 failed
DMA per-cpu: empty
Normal per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
HighMem per-cpu: empty
Free pages:         660kB (0kB HighMem)
Active:233 inactive:1037 dirty:2 writeback:0 unstable:0 free:165 slab:2092 mapped:0 pagetables:0
DMA free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB
protections: 0 0 0
Normal free:660kB min:128kB low:256kB high:384kB active:932kB inactive:4148kB present:16384kB
protections: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
protections: 0 0 0
DMA: empty
Normal: 5*4kB 4*8kB 12*16kB 9*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 660kB
HighMem: empty

subagent_2.1.exe is my application.

After this message I searched in the web and I have found some notices about the OOM Killer.

It is possible that the OOM Killer is the cause of my problem?

It is possible that my application need more ram that present, and the kernel "kill" or stop not only my application but all the processes, so that I can&#39;t connect to my device with the telnet? (Sometimes It happens that I can only ping my device, but I can&#39;t connect with the telnet, or ftp, or http).

Can somebody help me?

stepa

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi stepa,

    It&#39;s probably time to start looking for memory leaks and bad pointers in your app.

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Scott,

    I&#39;ve ported the Net-SNMP software under uClinux, and the I&#39;ve got the same messages for the snmpd.exe (snmp agent deamon).

    My application run as agentx subagent, and I&#39;ve seen that It use a lot of RAM, because of the net-snmp libraries.

    I&#39;m trying to reduce the RAM usage of my applications.

    StePa