Modify

Opened 5 years ago

Last modified 4 years ago

#12461 assigned defect

brcm47xx / ifconfig / page allocation failure

Reported by: bittorf@… Owned by: hauke
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: busybox ifconfig boot brcm47xx page allocation failure Cc:

Description

This affect for us "Linksys WRT54G/GS/GL" and "Buffalo WHR-HP-G54".
Trying several revision of trunk including r33556 and r34054 we have very often an

ifconfig: page allocation failure: order:0, mode:0x20"

during boot time. sometimes the devices are even hanging after
this, although we have applied a special tweak in kernel-commandline:

root@box:~ cat /proc/cmdline 
 root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 oops=panic panic=10

we "solved" the problem by patching away all the ifconfig calls during preinit:

for FILE in /lib/preinit/*; do
  fgrep -q "ifconfig" "$FILE" && {
    fgrep -q "#ifconfig" "$FILE" || {
      sed -i 's/ifconfig/:;#ifconfig/g' "$FILE"
    }
  }
} done

and yes, we really should convert all ifconfig-calls to netifd-calls.
(preinit and /lib/wifi contains some calls to ifconfig)

http://intercity-vpn.de/files/dmesg.boot.brcm47xx.ifconfig.page_allocation_failure-r33556.txt

[   73.312000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   73.340000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   73.740000] nf_conntrack version 0.5.0 (203 buckets, 812 max)
[   74.476000] xt_time: kernel timezone is -0000
[   81.868000] ifconfig: page allocation failure: order:0, mode:0x20
[   81.868000] Call Trace:
[   81.868000] [<80254b3c>] dump_stack+0x8/0x34
[   81.868000] [<8005fb18>] warn_alloc_failed+0xf0/0x114
[   81.868000] [<800623a8>] __alloc_pages_nodemask+0x5b0/0x610
[   81.868000] [<80255f90>] cache_alloc_refill+0x2c4/0x758
[   81.868000] [<80091224>] __kmalloc+0xac/0x128
[   81.868000] [<801ba568>] __alloc_skb+0x74/0x138
[   81.868000] [<801bab88>] __netdev_alloc_skb+0x24/0x58
[   81.868000] [<801977f0>] b44_alloc_rx_skb+0x50/0x3ac
[   81.868000] [<80197c34>] b44_init_rings+0xe8/0x114
[   81.868000] [<8019b960>] b44_open+0x34c/0x67c
[   81.868000] [<801c8420>] __dev_open+0x144/0x21c
[   81.868000] [<801c8750>] __dev_change_flags+0xc0/0x160
[   81.868000] [<801c8898>] dev_change_flags+0x20/0x6c
[   81.868000] [<8021f718>] devinet_ioctl+0x2ac/0x7f4
[   81.868000] [<801b02c4>] sock_ioctl+0x294/0x2f4
[   81.868000] [<800a5620>] do_vfs_ioctl+0x5a4/0x5f8
[   81.868000] [<800a56c4>] sys_ioctl+0x50/0x8c
[   81.868000] [<8000e330>] stack_done+0x20/0x40
[   81.868000] 
[   81.868000] Mem-Info:
[   81.868000] Normal per-cpu:
[   81.868000] CPU    0: hi:    0, btch:   1 usd:   0
[   81.868000] active_anon:314 inactive_anon:8 isolated_anon:0
[   81.868000]  active_file:633 inactive_file:553 isolated_file:0
[   81.868000]  unevictable:0 dirty:0 writeback:0 unstable:0
[   81.868000]  free:48 slab_reclaimable:182 slab_unreclaimable:809
[   81.868000]  mapped:172 shmem:10 pagetables:52 bounce:0
[   81.868000] Normal free:192kB min:508kB low:632kB high:760kB active_anon:1256kB inactive_anon:32kB active_file:2532kB inactive_file:2212kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:16256kB mlocked:0kB dirty:0kB writeback:0kB mapped:688kB shmem:40kB slab_reclaimable:728kB slab_unreclaimable:3236kB kernel_stack:288kB pagetables:208kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[   81.868000] lowmem_reserve[]: 0 0
[   81.868000] Normal: 0*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 192kB
[   81.868000] 1196 total pagecache pages
[   81.868000] 0 pages in swap cache
[   81.868000] Swap cache stats: add 0, delete 0, find 0/0
[   81.868000] Free swap  = 0kB
[   81.868000] Total swap = 0kB
[   81.868000] 4096 pages RAM
[   81.868000] 845 pages reserved
[   81.868000] 1382 pages shared
[   81.868000] 2607 pages non-shared
[   82.092000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[   82.100000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
[   82.692000] b44 ssb0:0: eth0: powering down PHY
[   82.724000] b44 ssb0:0: eth0: Link is up at 100 Mbps, full duplex
[   82.732000] b44 ssb0:0: eth0: Flow control is off for TX and off for RX
[   89.612000] cfg80211: Calling CRDA for country: US

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by hauke

  • Owner changed from developers to hauke
  • Status changed from new to assigned

I think this device is just running out of space please try the legacy profile.

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.