Kernel Warnings?

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
Statik
Posts: 118
Joined: Mon Sep 28, 2009 9:38 am

Kernel Warnings?

Post by Statik »

HI all.
Had an odd occurance this morning where the router seemed to drop and recover wireless connections this morning. After rebooting, I took a look at the log and I see many kernel warnings. Any idea what's going on?
Here is a piece of the log:

Code: Select all

Feb 29 05:21:55 Gargoyle user.warn kernel: bw_set: page allocation failure. order:2, mode:0x4020
Feb 29 05:21:55 Gargoyle user.warn kernel: Call Trace:[<8007f1a4>] 0x8007f1a4
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80069348>] 0x80069348
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80069348>] 0x80069348
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800b4b10>] 0x800b4b10
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800b4b84>] 0x800b4b84
Feb 29 05:21:55 Gargoyle user.warn kernel: [<828b36c0>] 0x828b36c0
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800d8c9c>] 0x800d8c9c
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8020edd8>] 0x8020edd8
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8020ee68>] 0x8020ee68
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8021bec8>] 0x8021bec8
Feb 29 05:21:55 Gargoyle user.warn kernel: [<801dd610>] 0x801dd610
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80062544>] 0x80062544
Feb 29 05:21:55 Gargoyle user.info kernel: Mem-Info:
Feb 29 05:21:55 Gargoyle user.warn kernel: Normal per-cpu:
Feb 29 05:21:55 Gargoyle user.warn kernel: bw_set: page allocation failure. order:2, mode:0x4020
Feb 29 05:21:55 Gargoyle user.warn kernel: Call Trace:[<8007f1a4>] 0x8007f1a4
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80069348>] 0x80069348
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80069348>] 0x80069348
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800b4b10>] 0x800b4b10
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800b4b84>] 0x800b4b84
Feb 29 05:21:55 Gargoyle user.warn kernel: [<828b36c0>] 0x828b36c0
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800d8c9c>] 0x800d8c9c
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8020edd8>] 0x8020edd8
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8020ee68>] 0x8020ee68
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8021bec8>] 0x8021bec8
Feb 29 05:21:55 Gargoyle user.warn kernel: [<801dd610>] 0x801dd610
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80062544>] 0x80062544
Feb 29 05:21:55 Gargoyle user.info kernel: Mem-Info:
Feb 29 05:21:55 Gargoyle user.warn kernel: Normal per-cpu:
Feb 29 05:21:55 Gargoyle user.warn kernel: CPU    0: hi:   18, btch:   3 usd:   3
Feb 29 05:21:55 Gargoyle user.warn kernel: active_anon:479 inactive_anon:505 isolated_anon:0
Feb 29 05:21:55 Gargoyle user.warn kernel:  active_file:6412 inactive_file:4679 isolated_file:0
Feb 29 05:21:55 Gargoyle user.warn kernel:  unevictable:0 dirty:4 writeback:0 unstable:0
Feb 29 05:21:55 Gargoyle user.warn kernel:  free:316 slab_reclaimable:401 slab_unreclaimable:1318
Feb 29 05:21:55 Gargoyle user.warn kernel:  mapped:574 shmem:48 pagetables:100 bounce:0
Feb 29 05:21:55 Gargoyle user.warn kernel: Normal free:1264kB min:1016kB low:1268kB high:1524kB active_anon:1916kB inactive_anon:2020kB active_file:25648kB inactive_file:18716kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:16kB
Feb 29 05:21:55 Gargoyle user.warn kernel: lowmem_reserve[]: 0 0
Feb 29 05:21:55 Gargoyle user.warn kernel: Normal: 47*4kB 130*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1228kB
Feb 29 05:21:55 Gargoyle user.warn kernel: 11149 total pagecache pages
Feb 29 05:21:55 Gargoyle user.warn kernel: 0 pages in swap cache
Feb 29 05:21:55 Gargoyle user.warn kernel: Swap cache stats: add 0, delete 0, find 0/0
Feb 29 05:21:55 Gargoyle user.warn kernel: Free swap  = 0kB
Feb 29 05:21:55 Gargoyle user.warn kernel: Total swap = 0kB
Feb 29 05:21:55 Gargoyle user.info kernel: 16384 pages RAM
Feb 29 05:21:55 Gargoyle user.info kernel: 889 pages reserved
Feb 29 05:21:55 Gargoyle user.info kernel: 12746 pages shared
Feb 29 05:21:55 Gargoyle user.info kernel: 4342 pages non-shared
Feb 29 05:21:55 Gargoyle user.warn kernel: bw_set: page allocation failure. order:2, mode:0x4020
Feb 29 05:21:55 Gargoyle user.warn kernel: Call Trace:[<8007f1a4>] 0x8007f1a4
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80069348>] 0x80069348
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80069348>] 0x80069348
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800b4b10>] 0x800b4b10
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800b4b84>] 0x800b4b84
Feb 29 05:21:55 Gargoyle user.warn kernel: [<828b36c0>] 0x828b36c0
Feb 29 05:21:55 Gargoyle user.warn kernel: [<831c5a1c>] 0x831c5a1c
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800d8c9c>] 0x800d8c9c
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800a9250>] 0x800a9250
Feb 29 05:21:55 Gargoyle user.warn kernel: [<800aafac>] 0x800aafac
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8020edd8>] 0x8020edd8
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8006082c>] 0x8006082c
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8020ee68>] 0x8020ee68
Feb 29 05:21:55 Gargoyle user.warn kernel: [<8021bec8>] 0x8021bec8
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80079b14>] 0x80079b14
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80079e10>] 0x80079e10
Feb 29 05:21:55 Gargoyle user.warn kernel: [<801dd610>] 0x801dd610
Feb 29 05:21:55 Gargoyle user.warn kernel: [<80062544>] 0x80062544
Thanks!

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Kernel Warnings?

Post by pbix »

Looks like your router has only 16Megs of RAM and is not able to allocate the memory it needs. Out of curiosity what router is this and what does the memory usage show on the overview page? Is it the WZR-HP-G300NH with hacked kernel you have posted about previously?

Out of memory issues are the ban of OpenWrt & Gargoyle. The minimum requirement is 4Megs of FLASH and 16Megs of RAM. But in my view the recommended amount is 8Megs of FLASH and 32Megs of RAM.

Good news my friend for you and your WZR-HP-G300NH. The boys a OpenWRT have done their thing and it appears your router is now supported in Backfire as of r30739. Checkout https://dev.openwrt.org/ticket/11021

So now all you need to do is change the rnum in full_build.sh and rebuild Gargoyle and you should be good to go.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Statik
Posts: 118
Joined: Mon Sep 28, 2009 9:38 am

Re: Kernel Warnings?

Post by Statik »

Yes, it is the wzr-hp-g300nh I posted about earlier. On the main page, I usually show 10% usage. I asked the question because I was wondering if a prices might have gone awry. I suspected minidlna as I had a problem on my laptop where minidlna had sprouted a 9 gig log file.
I'm planning on trying a new build this weekend to see if it works as well or better than my hacked one. I will post and let you guys know how it works.
Statik

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: Kernel Warnings?

Post by pbix »

It seems from the kernel log you posted that there is something wrong with that build since I know your routers has plenty of RAM.

So hopefully the new Backfire based gargoyle will get your running well.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Statik
Posts: 118
Joined: Mon Sep 28, 2009 9:38 am

Re: Kernel Warnings?

Post by Statik »

Router has been running for 25 hours since last reboot. Here's the stats:

Code: Select all

Device Name:Gargoyle
Gargoyle Version:1.5.X (Built 20120218-2057 git@e01f8d1)
Device Configuration:Gateway
Memory Usage:17.6MB / 60.5MB (29.1%)
Connections:497/4096
CPU Load Averages:0.00 / 0.00 / 0.00  (1/5/15 minutes)
Uptime:1 days, 1 hours, 22 minutes
Current Date & Time:03/01/12 06:43 AST 
And the output of top:

Code: Select all

Mem: 44168K used, 17812K free, 0K shrd, 20944K buff, 5244K cached
CPU:   0% usr   0% sys   0% nic  98% idle   0% io   0% irq   0% sirq
Load average: 0.09 0.04 0.01 1/48 7433
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
 7433  7428 root     R     1376   2%   0% top 
 2042     1 root     S     6128  10%   0% /usr/bin/minidlna -P /var/run/minidln
 2651     1 root     S N   2628   4%   0% smbd -D 
 2653     1 root     S     2136   3%   0% nmbd -D 
 1383     1 root     S     1480   2%   0% hostapd -P /var/run/wifi-phy0.pid -B 
 2712     1 root     S     1388   2%   0% udhcpc -t 0 -i eth1 -b -p /var/run/dh
 2689     1 root     S     1384   2%   0% crond -c /etc/crontabs -l 5 
  323     1 root     S     1384   2%   0% syslogd -C16 
    1     0 root     S     1380   2%   0% init       
 7428  7427 root     S     1380   2%   0% -ash 
  309     1 root     S     1380   2%   0% init       
 2714     1 root     S     1376   2%   0% watchdog -t 5 /dev/watchdog 
  325     1 root     S     1368   2%   0% klogd 
 2142     1 root     S     1344   2%   0% httpd_gargoyle -c cgi-bin/**|**.sh|**
 2493     1 root     S     1248   2%   0% /usr/sbin/rpc.mountd -p 32780 
 7427  2012 root     S     1204   2%   0% /usr/sbin/dropbear -P /var/run/dropbe
 2012     1 root     S     1132   2%   0% /usr/sbin/dropbear -P /var/run/dropbe
 2326     1 nobody   S      968   2%   0% /usr/sbin/dnsmasq -K -D -y -Z -b -E -
 2395     1 root     S      956   2%   0% /usr/sbin/rpc.statd -p 32778 -o 32779
 1060     1 nobody   S      928   1%   0% /usr/sbin/portmap 
Definitely looks like minidlna is my hog. I think its probably the cause of the trouble the other day as well. Maybe its got a leak or something.

I'm still going to build on the new backfire this weekend, just to get a consistent source. :)

Thanks!

Statik

Statik
Posts: 118
Joined: Mon Sep 28, 2009 9:38 am

Re: Kernel Warnings?

Post by Statik »

The new source, 30752, left me with the double flash red. Didn't have time to disassemble and check the serial-out for messages. Went back to my custom build over tftp.
Kinda makes me wish I had a second router to play with. I depend on this one too much to play with it right now. :)

Statik

Post Reply