Hi all,
I've got this error with
# batctl -v batctl 2016.0-4-g7a3d563 [batman-adv: 2016.0-83-g884fb2d]
on
# uname -rmpio 3.4.107-01996-g67bdc52 armv7l ARMv7 Processor rev 4 (v7l) sun7i GNU/Linux
I know the kernel is old, I can take a recent one if needed, but maybe this is not necessary.
The module has been compiled with CONFIG_BATMAN_ADV_DEBUG=y CONFIG_BATMAN_ADV_BLA=y CONFIG_BATMAN_ADV_DAT=y CONFIG_BATMAN_ADV_NC=y CONFIG_BATMAN_ADV_MCAST=y CONFIG_BATMAN_ADV_BATMAN_V=n
and batctl as usual but without stripping. The problem occurs while calling “batctl o”. There should be an output of 336 lines …
Please tell me if you need more information. Thanx in advance and thank you for B.A.T.M.A.N. advanced.
Best regards, Philipp
----------------------------------
[Feb28 00:10] batman_adv: B.A.T.M.A.N. advanced 2016.0-83-g884fb2d (compatibility version 15) loaded [ +11,632829] batman_adv: bat0: Adding interface: eth0 [ +0,277590] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ +0,058799] batman_adv: bat0: Interface activated: eth0 [ +3,173715] batman_adv: bat0: Adding interface: fastd-wup [ +0,279096] batman_adv: bat0: The MTU of interface fastd-wup is too small (1426) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ +0,055496] batman_adv: bat0: Interface activated: fastd-wup [ +23,247415] bat0: no IPv6 routers present [Feb28 00:13] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,100723] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,113138] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,110864] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,094211] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,084540] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,082817] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,095673] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,014683] Mem-info: [ +0,015332] DMA per-cpu: [ +0,042295] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,043583] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,019240] Normal per-cpu: [ +0,042920] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,046456] CPU 1: hi: 186, btch: 31 usd: 1 [ +0,030888] HighMem per-cpu: [ +0,042776] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,046066] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,276204] active_anon:38221 inactive_anon:11325 isolated_anon:0 [ +0,000006] active_file:95385 inactive_file:84158 isolated_file:0 [ +0,000006] unevictable:0 dirty:4 writeback:0 unstable:0 [ +0,000004] free:8954 slab_reclaimable:9981 slab_unreclaimable:2508 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,467038] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,043062] lowmem_reserve[]: 0 500 762 762 [ +0,478788] Normal free:22160kB min:2324kB low:2904kB high:3484kB active_anon:64100kB inactive_anon:10132kB active_file:183792kB inactive_file:159760kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:16kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8700kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,041810] lowmem_reserve[]: 0 0 2095 2095 [ +0,485438] HighMem free:2692kB min:260kB low:564kB high:868kB active_anon:47524kB inactive_anon:30992kB active_file:101640kB inactive_file:86064kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:0kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,041504] lowmem_reserve[]: 0 0 0 0 [ +0,019167] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,128889] Normal: 3738*4kB 576*8kB 112*16kB 21*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22152kB [ +0,141889] HighMem: 143*4kB 67*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2692kB [ +0,155726] 179706 total pagecache pages [ +0,031546] 0 pages in swap cache [ +0,075081] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,023894] Free swap = 0kB [ +0,027333] Total swap = 0kB [ +0,039682] 262144 pages of RAM [ +0,020541] 9168 free pages [ +0,024887] 9338 reserved pages [ +0,019097] 9130 slab pages [ +0,025110] 116719 pages shared [ +0,024278] 0 pages swap cached [ +4,207166] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,095872] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,104340] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102166] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087528] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080231] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078142] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084396] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011576] Mem-info: [ +0,014689] DMA per-cpu: [ +0,041725] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041762] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017817] Normal per-cpu: [ +0,041821] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041736] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018844] HighMem per-cpu: [ +0,041736] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041724] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274703] active_anon:38228 inactive_anon:11330 isolated_anon:0 [ +0,000006] active_file:95390 inactive_file:84151 isolated_file:0 [ +0,000006] unevictable:0 dirty:1 writeback:0 unstable:0 [ +0,000004] free:8958 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,449747] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017854] lowmem_reserve[]: 0 500 762 762 [ +0,474747] Normal free:22180kB min:2324kB low:2904kB high:3484kB active_anon:64124kB inactive_anon:10152kB active_file:183800kB inactive_file:159744kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:0kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017908] lowmem_reserve[]: 0 0 2095 2095 [ +0,460057] HighMem free:2696kB min:260kB low:564kB high:868kB active_anon:47528kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017830] lowmem_reserve[]: 0 0 0 0 [ +0,015840] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,116928] Normal: 3745*4kB 582*8kB 111*16kB 20*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22180kB [ +0,117676] HighMem: 138*4kB 70*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2696kB [ +0,135363] 179706 total pagecache pages [ +0,024050] 0 pages in swap cache [ +0,067731] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018842] Free swap = 0kB [ +0,018837] Total swap = 0kB [ +0,034725] 262144 pages of RAM [ +0,017828] 9175 free pages [ +0,021957] 9338 reserved pages [ +0,017803] 9130 slab pages [ +0,021957] 116699 pages shared [ +0,021958] 0 pages swap cached [ +2,546832] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,095887] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,104208] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102153] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087828] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080248] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078215] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084403] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011576] Mem-info: [ +0,014684] DMA per-cpu: [ +0,041729] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041796] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017822] Normal per-cpu: [ +0,041724] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041730] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018883] HighMem per-cpu: [ +0,041723] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041867] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274716] active_anon:38235 inactive_anon:11327 isolated_anon:0 [ +0,000007] active_file:95391 inactive_file:84152 isolated_file:0 [ +0,000006] unevictable:0 dirty:2 writeback:0 unstable:0 [ +0,000004] free:8953 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,449493] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017933] lowmem_reserve[]: 0 500 762 762 [ +0,474739] Normal free:22160kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10140kB active_file:183804kB inactive_file:159748kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017916] lowmem_reserve[]: 0 0 2095 2095 [ +0,460179] HighMem free:2696kB min:260kB low:564kB high:868kB active_anon:47552kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017960] lowmem_reserve[]: 0 0 0 0 [ +0,015846] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,116798] Normal: 3742*4kB 583*8kB 112*16kB 19*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22160kB [ +0,117768] HighMem: 128*4kB 75*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2696kB [ +0,135597] 179708 total pagecache pages [ +0,024101] 0 pages in swap cache [ +0,067730] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018843] Free swap = 0kB [ +0,018838] Total swap = 0kB [ +0,034639] 262144 pages of RAM [ +0,017816] 9170 free pages [ +0,021964] 9338 reserved pages [ +0,017874] 9130 slab pages [ +0,021970] 116692 pages shared [ +0,021963] 0 pages swap cached [ +2,795628] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,100163] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,112606] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,109882] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,092898] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,081964] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,080373] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,095661] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,018246] Mem-info: [ +0,016190] DMA per-cpu: [ +0,042907] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,045696] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,021567] Normal per-cpu: [ +0,043237] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,042809] CPU 1: hi: 186, btch: 31 usd: 1 [ +0,027782] HighMem per-cpu: [ +0,044187] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,044017] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,276192] active_anon:38230 inactive_anon:11333 isolated_anon:0 [ +0,000006] active_file:95396 inactive_file:84156 isolated_file:0 [ +0,000005] unevictable:0 dirty:2 writeback:0 unstable:0 [ +0,000005] free:8953 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,467447] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,024492] lowmem_reserve[]: 0 500 762 762 [ +0,475389] Normal free:22176kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10164kB active_file:183824kB inactive_file:159764kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,024240] lowmem_reserve[]: 0 0 2095 2095 [ +0,461051] HighMem free:2680kB min:260kB low:564kB high:868kB active_anon:47532kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,023810] lowmem_reserve[]: 0 0 0 0 [ +0,016839] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,117735] Normal: 3738*4kB 584*8kB 113*16kB 22*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22200kB [ +0,118592] HighMem: 124*4kB 75*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2680kB [ +0,141032] 179710 total pagecache pages [ +0,024246] 0 pages in swap cache [ +0,067845] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,019040] Free swap = 0kB [ +0,018966] Total swap = 0kB [ +0,035160] 262144 pages of RAM [ +0,017932] 9177 free pages [ +0,022041] 9338 reserved pages [ +0,022998] 9127 slab pages [ +0,022106] 116679 pages shared [ +0,022100] 0 pages swap cached [Feb28 00:14] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,096010] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,105164] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102095] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087646] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080242] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078150] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084499] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011602] Mem-info: [ +0,014690] DMA per-cpu: [ +0,041744] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041755] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017817] Normal per-cpu: [ +0,041737] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041729] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018845] HighMem per-cpu: [ +0,041735] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041725] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274696] active_anon:38218 inactive_anon:11333 isolated_anon:0 [ +0,000005] active_file:95399 inactive_file:84165 isolated_file:0 [ +0,000006] unevictable:0 dirty:3 writeback:0 unstable:0 [ +0,000004] free:8965 slab_reclaimable:9971 slab_unreclaimable:2505 [ +0,000005] mapped:2158 shmem:153 pagetables:326 bounce:0 [ +0,449546] DMA free:11020kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7164kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,018135] lowmem_reserve[]: 0 500 762 762 [ +0,474663] Normal free:21940kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10164kB active_file:183836kB inactive_file:159796kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32672kB slab_unreclaimable:8680kB kernel_stack:632kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017894] lowmem_reserve[]: 0 0 2095 2095 [ +0,460232] HighMem free:2632kB min:260kB low:564kB high:868kB active_anon:47508kB inactive_anon:30992kB active_file:101652kB inactive_file:86056kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:8kB writeback:0kB mapped:3936kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017921] lowmem_reserve[]: 0 0 0 0 [ +0,015956] DMA: 1167*4kB 186*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 11020kB [ +0,116870] Normal: 3667*4kB 586*8kB 112*16kB 23*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 21948kB [ +0,117813] HighMem: 110*4kB 76*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2632kB [ +0,135376] 179719 total pagecache pages [ +0,024043] 0 pages in swap cache [ +0,067725] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018915] Free swap = 0kB [ +0,018849] Total swap = 0kB [ +0,034626] 262144 pages of RAM [ +0,017849] 9194 free pages [ +0,022185] 9338 reserved pages [ +0,017842] 9115 slab pages [ +0,021995] 116689 pages shared [ +0,021957] 0 pages swap cached
Hi Philipp,
Unfortunately, this is a known issue. The only workaround available right now is increasing RAM. Which I guess is not possible for you with your ARM device.
Matthias Schiffer has been working on a solution:
https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2015-June/013339.html
Not sure whether he would still be inclined to work on that after the lack of feedback he had gotten or whether he still has the time for that.
Regards, Linus
PS: How much (free and in total) RAM does your device have, which device is it exactly? Just that others know how much RAM is needed to read from debugfs with a 300+ nodes setup right now.
On Sun, Feb 28, 2016 at 12:39:08AM +0100, Philipp Psurek wrote:
Hi all,
I've got this error with
# batctl -v batctl 2016.0-4-g7a3d563 [batman-adv: 2016.0-83-g884fb2d]
on
# uname -rmpio 3.4.107-01996-g67bdc52 armv7l ARMv7 Processor rev 4 (v7l) sun7i GNU/Linux
I know the kernel is old, I can take a recent one if needed, but maybe this is not necessary.
The module has been compiled with CONFIG_BATMAN_ADV_DEBUG=y CONFIG_BATMAN_ADV_BLA=y CONFIG_BATMAN_ADV_DAT=y CONFIG_BATMAN_ADV_NC=y CONFIG_BATMAN_ADV_MCAST=y CONFIG_BATMAN_ADV_BATMAN_V=n
and batctl as usual but without stripping. The problem occurs while calling “batctl o”. There should be an output of 336 lines …
Please tell me if you need more information. Thanx in advance and thank you for B.A.T.M.A.N. advanced.
Best regards, Philipp
[Feb28 00:10] batman_adv: B.A.T.M.A.N. advanced 2016.0-83-g884fb2d (compatibility version 15) loaded [ +11,632829] batman_adv: bat0: Adding interface: eth0 [ +0,277590] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ +0,058799] batman_adv: bat0: Interface activated: eth0 [ +3,173715] batman_adv: bat0: Adding interface: fastd-wup [ +0,279096] batman_adv: bat0: The MTU of interface fastd-wup is too small (1426) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ +0,055496] batman_adv: bat0: Interface activated: fastd-wup [ +23,247415] bat0: no IPv6 routers present [Feb28 00:13] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,100723] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,113138] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,110864] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,094211] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,084540] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,082817] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,095673] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,014683] Mem-info: [ +0,015332] DMA per-cpu: [ +0,042295] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,043583] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,019240] Normal per-cpu: [ +0,042920] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,046456] CPU 1: hi: 186, btch: 31 usd: 1 [ +0,030888] HighMem per-cpu: [ +0,042776] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,046066] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,276204] active_anon:38221 inactive_anon:11325 isolated_anon:0 [ +0,000006] active_file:95385 inactive_file:84158 isolated_file:0 [ +0,000006] unevictable:0 dirty:4 writeback:0 unstable:0 [ +0,000004] free:8954 slab_reclaimable:9981 slab_unreclaimable:2508 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,467038] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,043062] lowmem_reserve[]: 0 500 762 762 [ +0,478788] Normal free:22160kB min:2324kB low:2904kB high:3484kB active_anon:64100kB inactive_anon:10132kB active_file:183792kB inactive_file:159760kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:16kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8700kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,041810] lowmem_reserve[]: 0 0 2095 2095 [ +0,485438] HighMem free:2692kB min:260kB low:564kB high:868kB active_anon:47524kB inactive_anon:30992kB active_file:101640kB inactive_file:86064kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:0kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,041504] lowmem_reserve[]: 0 0 0 0 [ +0,019167] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,128889] Normal: 3738*4kB 576*8kB 112*16kB 21*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22152kB [ +0,141889] HighMem: 143*4kB 67*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2692kB [ +0,155726] 179706 total pagecache pages [ +0,031546] 0 pages in swap cache [ +0,075081] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,023894] Free swap = 0kB [ +0,027333] Total swap = 0kB [ +0,039682] 262144 pages of RAM [ +0,020541] 9168 free pages [ +0,024887] 9338 reserved pages [ +0,019097] 9130 slab pages [ +0,025110] 116719 pages shared [ +0,024278] 0 pages swap cached [ +4,207166] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,095872] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,104340] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102166] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087528] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080231] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078142] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084396] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011576] Mem-info: [ +0,014689] DMA per-cpu: [ +0,041725] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041762] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017817] Normal per-cpu: [ +0,041821] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041736] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018844] HighMem per-cpu: [ +0,041736] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041724] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274703] active_anon:38228 inactive_anon:11330 isolated_anon:0 [ +0,000006] active_file:95390 inactive_file:84151 isolated_file:0 [ +0,000006] unevictable:0 dirty:1 writeback:0 unstable:0 [ +0,000004] free:8958 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,449747] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017854] lowmem_reserve[]: 0 500 762 762 [ +0,474747] Normal free:22180kB min:2324kB low:2904kB high:3484kB active_anon:64124kB inactive_anon:10152kB active_file:183800kB inactive_file:159744kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:0kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017908] lowmem_reserve[]: 0 0 2095 2095 [ +0,460057] HighMem free:2696kB min:260kB low:564kB high:868kB active_anon:47528kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017830] lowmem_reserve[]: 0 0 0 0 [ +0,015840] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,116928] Normal: 3745*4kB 582*8kB 111*16kB 20*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22180kB [ +0,117676] HighMem: 138*4kB 70*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2696kB [ +0,135363] 179706 total pagecache pages [ +0,024050] 0 pages in swap cache [ +0,067731] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018842] Free swap = 0kB [ +0,018837] Total swap = 0kB [ +0,034725] 262144 pages of RAM [ +0,017828] 9175 free pages [ +0,021957] 9338 reserved pages [ +0,017803] 9130 slab pages [ +0,021957] 116699 pages shared [ +0,021958] 0 pages swap cached [ +2,546832] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,095887] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,104208] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102153] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087828] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080248] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078215] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084403] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011576] Mem-info: [ +0,014684] DMA per-cpu: [ +0,041729] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041796] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017822] Normal per-cpu: [ +0,041724] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041730] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018883] HighMem per-cpu: [ +0,041723] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041867] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274716] active_anon:38235 inactive_anon:11327 isolated_anon:0 [ +0,000007] active_file:95391 inactive_file:84152 isolated_file:0 [ +0,000006] unevictable:0 dirty:2 writeback:0 unstable:0 [ +0,000004] free:8953 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,449493] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017933] lowmem_reserve[]: 0 500 762 762 [ +0,474739] Normal free:22160kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10140kB active_file:183804kB inactive_file:159748kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017916] lowmem_reserve[]: 0 0 2095 2095 [ +0,460179] HighMem free:2696kB min:260kB low:564kB high:868kB active_anon:47552kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017960] lowmem_reserve[]: 0 0 0 0 [ +0,015846] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,116798] Normal: 3742*4kB 583*8kB 112*16kB 19*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22160kB [ +0,117768] HighMem: 128*4kB 75*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2696kB [ +0,135597] 179708 total pagecache pages [ +0,024101] 0 pages in swap cache [ +0,067730] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018843] Free swap = 0kB [ +0,018838] Total swap = 0kB [ +0,034639] 262144 pages of RAM [ +0,017816] 9170 free pages [ +0,021964] 9338 reserved pages [ +0,017874] 9130 slab pages [ +0,021970] 116692 pages shared [ +0,021963] 0 pages swap cached [ +2,795628] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,100163] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,112606] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,109882] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,092898] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,081964] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,080373] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,095661] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,018246] Mem-info: [ +0,016190] DMA per-cpu: [ +0,042907] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,045696] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,021567] Normal per-cpu: [ +0,043237] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,042809] CPU 1: hi: 186, btch: 31 usd: 1 [ +0,027782] HighMem per-cpu: [ +0,044187] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,044017] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,276192] active_anon:38230 inactive_anon:11333 isolated_anon:0 [ +0,000006] active_file:95396 inactive_file:84156 isolated_file:0 [ +0,000005] unevictable:0 dirty:2 writeback:0 unstable:0 [ +0,000005] free:8953 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,467447] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,024492] lowmem_reserve[]: 0 500 762 762 [ +0,475389] Normal free:22176kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10164kB active_file:183824kB inactive_file:159764kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,024240] lowmem_reserve[]: 0 0 2095 2095 [ +0,461051] HighMem free:2680kB min:260kB low:564kB high:868kB active_anon:47532kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,023810] lowmem_reserve[]: 0 0 0 0 [ +0,016839] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,117735] Normal: 3738*4kB 584*8kB 113*16kB 22*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22200kB [ +0,118592] HighMem: 124*4kB 75*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2680kB [ +0,141032] 179710 total pagecache pages [ +0,024246] 0 pages in swap cache [ +0,067845] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,019040] Free swap = 0kB [ +0,018966] Total swap = 0kB [ +0,035160] 262144 pages of RAM [ +0,017932] 9177 free pages [ +0,022041] 9338 reserved pages [ +0,022998] 9127 slab pages [ +0,022106] 116679 pages shared [ +0,022100] 0 pages swap cached [Feb28 00:14] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,096010] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,105164] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102095] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087646] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080242] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078150] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084499] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011602] Mem-info: [ +0,014690] DMA per-cpu: [ +0,041744] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041755] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017817] Normal per-cpu: [ +0,041737] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041729] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018845] HighMem per-cpu: [ +0,041735] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041725] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274696] active_anon:38218 inactive_anon:11333 isolated_anon:0 [ +0,000005] active_file:95399 inactive_file:84165 isolated_file:0 [ +0,000006] unevictable:0 dirty:3 writeback:0 unstable:0 [ +0,000004] free:8965 slab_reclaimable:9971 slab_unreclaimable:2505 [ +0,000005] mapped:2158 shmem:153 pagetables:326 bounce:0 [ +0,449546] DMA free:11020kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7164kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,018135] lowmem_reserve[]: 0 500 762 762 [ +0,474663] Normal free:21940kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10164kB active_file:183836kB inactive_file:159796kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32672kB slab_unreclaimable:8680kB kernel_stack:632kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017894] lowmem_reserve[]: 0 0 2095 2095 [ +0,460232] HighMem free:2632kB min:260kB low:564kB high:868kB active_anon:47508kB inactive_anon:30992kB active_file:101652kB inactive_file:86056kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:8kB writeback:0kB mapped:3936kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017921] lowmem_reserve[]: 0 0 0 0 [ +0,015956] DMA: 1167*4kB 186*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 11020kB [ +0,116870] Normal: 3667*4kB 586*8kB 112*16kB 23*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 21948kB [ +0,117813] HighMem: 110*4kB 76*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2632kB [ +0,135376] 179719 total pagecache pages [ +0,024043] 0 pages in swap cache [ +0,067725] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018915] Free swap = 0kB [ +0,018849] Total swap = 0kB [ +0,034626] 262144 pages of RAM [ +0,017849] 9194 free pages [ +0,022185] 9338 reserved pages [ +0,017842] 9115 slab pages [ +0,021995] 116689 pages shared [ +0,021957] 0 pages swap cached
On 02/28/2016 02:27 PM, Linus Lüssing wrote:
Hi Philipp,
Unfortunately, this is a known issue. The only workaround available right now is increasing RAM. Which I guess is not possible for you with your ARM device.
This is not correct, this issue has been fixed with kernel 4.4.
If you can't update your kernel to version 4.4, you need to backport the following two commits:
5cec38ac866bfb8775638e71a86e4d8cac30caae "fs, seq_file: fallback to vmalloc instead of oom kill processes"
0f930902eb8806cff8dcaef9ff9faf3cfa5fd748 "fs, seqfile: always allow oom killer"
(the second commit's log message is a bit misleading, I guess the author meant "avoid" instead of "allow")
Regards, Matthias
Matthias Schiffer has been working on a solution:
https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2015-June/013339.html
Not sure whether he would still be inclined to work on that after the lack of feedback he had gotten or whether he still has the time for that.
Regards, Linus
PS: How much (free and in total) RAM does your device have, which device is it exactly? Just that others know how much RAM is needed to read from debugfs with a 300+ nodes setup right now.
On Sun, Feb 28, 2016 at 12:39:08AM +0100, Philipp Psurek wrote:
Hi all,
I've got this error with
# batctl -v batctl 2016.0-4-g7a3d563 [batman-adv: 2016.0-83-g884fb2d]
on
# uname -rmpio 3.4.107-01996-g67bdc52 armv7l ARMv7 Processor rev 4 (v7l) sun7i GNU/Linux
I know the kernel is old, I can take a recent one if needed, but maybe this is not necessary.
The module has been compiled with CONFIG_BATMAN_ADV_DEBUG=y CONFIG_BATMAN_ADV_BLA=y CONFIG_BATMAN_ADV_DAT=y CONFIG_BATMAN_ADV_NC=y CONFIG_BATMAN_ADV_MCAST=y CONFIG_BATMAN_ADV_BATMAN_V=n
and batctl as usual but without stripping. The problem occurs while calling “batctl o”. There should be an output of 336 lines …
Please tell me if you need more information. Thanx in advance and thank you for B.A.T.M.A.N. advanced.
Best regards, Philipp
[Feb28 00:10] batman_adv: B.A.T.M.A.N. advanced 2016.0-83-g884fb2d (compatibility version 15) loaded [ +11,632829] batman_adv: bat0: Adding interface: eth0 [ +0,277590] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ +0,058799] batman_adv: bat0: Interface activated: eth0 [ +3,173715] batman_adv: bat0: Adding interface: fastd-wup [ +0,279096] batman_adv: bat0: The MTU of interface fastd-wup is too small (1426) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem. [ +0,055496] batman_adv: bat0: Interface activated: fastd-wup [ +23,247415] bat0: no IPv6 routers present [Feb28 00:13] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,100723] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,113138] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,110864] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,094211] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,084540] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,082817] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,095673] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,014683] Mem-info: [ +0,015332] DMA per-cpu: [ +0,042295] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,043583] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,019240] Normal per-cpu: [ +0,042920] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,046456] CPU 1: hi: 186, btch: 31 usd: 1 [ +0,030888] HighMem per-cpu: [ +0,042776] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,046066] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,276204] active_anon:38221 inactive_anon:11325 isolated_anon:0 [ +0,000006] active_file:95385 inactive_file:84158 isolated_file:0 [ +0,000006] unevictable:0 dirty:4 writeback:0 unstable:0 [ +0,000004] free:8954 slab_reclaimable:9981 slab_unreclaimable:2508 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,467038] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,043062] lowmem_reserve[]: 0 500 762 762 [ +0,478788] Normal free:22160kB min:2324kB low:2904kB high:3484kB active_anon:64100kB inactive_anon:10132kB active_file:183792kB inactive_file:159760kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:16kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8700kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,041810] lowmem_reserve[]: 0 0 2095 2095 [ +0,485438] HighMem free:2692kB min:260kB low:564kB high:868kB active_anon:47524kB inactive_anon:30992kB active_file:101640kB inactive_file:86064kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:0kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,041504] lowmem_reserve[]: 0 0 0 0 [ +0,019167] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,128889] Normal: 3738*4kB 576*8kB 112*16kB 21*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22152kB [ +0,141889] HighMem: 143*4kB 67*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2692kB [ +0,155726] 179706 total pagecache pages [ +0,031546] 0 pages in swap cache [ +0,075081] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,023894] Free swap = 0kB [ +0,027333] Total swap = 0kB [ +0,039682] 262144 pages of RAM [ +0,020541] 9168 free pages [ +0,024887] 9338 reserved pages [ +0,019097] 9130 slab pages [ +0,025110] 116719 pages shared [ +0,024278] 0 pages swap cached [ +4,207166] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,095872] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,104340] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102166] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087528] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080231] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078142] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084396] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011576] Mem-info: [ +0,014689] DMA per-cpu: [ +0,041725] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041762] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017817] Normal per-cpu: [ +0,041821] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041736] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018844] HighMem per-cpu: [ +0,041736] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041724] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274703] active_anon:38228 inactive_anon:11330 isolated_anon:0 [ +0,000006] active_file:95390 inactive_file:84151 isolated_file:0 [ +0,000006] unevictable:0 dirty:1 writeback:0 unstable:0 [ +0,000004] free:8958 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,449747] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017854] lowmem_reserve[]: 0 500 762 762 [ +0,474747] Normal free:22180kB min:2324kB low:2904kB high:3484kB active_anon:64124kB inactive_anon:10152kB active_file:183800kB inactive_file:159744kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:0kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017908] lowmem_reserve[]: 0 0 2095 2095 [ +0,460057] HighMem free:2696kB min:260kB low:564kB high:868kB active_anon:47528kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017830] lowmem_reserve[]: 0 0 0 0 [ +0,015840] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,116928] Normal: 3745*4kB 582*8kB 111*16kB 20*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22180kB [ +0,117676] HighMem: 138*4kB 70*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2696kB [ +0,135363] 179706 total pagecache pages [ +0,024050] 0 pages in swap cache [ +0,067731] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018842] Free swap = 0kB [ +0,018837] Total swap = 0kB [ +0,034725] 262144 pages of RAM [ +0,017828] 9175 free pages [ +0,021957] 9338 reserved pages [ +0,017803] 9130 slab pages [ +0,021957] 116699 pages shared [ +0,021958] 0 pages swap cached [ +2,546832] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,095887] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,104208] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102153] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087828] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080248] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078215] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084403] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011576] Mem-info: [ +0,014684] DMA per-cpu: [ +0,041729] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041796] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017822] Normal per-cpu: [ +0,041724] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041730] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018883] HighMem per-cpu: [ +0,041723] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041867] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274716] active_anon:38235 inactive_anon:11327 isolated_anon:0 [ +0,000007] active_file:95391 inactive_file:84152 isolated_file:0 [ +0,000006] unevictable:0 dirty:2 writeback:0 unstable:0 [ +0,000004] free:8953 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,449493] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017933] lowmem_reserve[]: 0 500 762 762 [ +0,474739] Normal free:22160kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10140kB active_file:183804kB inactive_file:159748kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017916] lowmem_reserve[]: 0 0 2095 2095 [ +0,460179] HighMem free:2696kB min:260kB low:564kB high:868kB active_anon:47552kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017960] lowmem_reserve[]: 0 0 0 0 [ +0,015846] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,116798] Normal: 3742*4kB 583*8kB 112*16kB 19*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22160kB [ +0,117768] HighMem: 128*4kB 75*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2696kB [ +0,135597] 179708 total pagecache pages [ +0,024101] 0 pages in swap cache [ +0,067730] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018843] Free swap = 0kB [ +0,018838] Total swap = 0kB [ +0,034639] 262144 pages of RAM [ +0,017816] 9170 free pages [ +0,021964] 9338 reserved pages [ +0,017874] 9130 slab pages [ +0,021970] 116692 pages shared [ +0,021963] 0 pages swap cached [ +2,795628] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,100163] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,112606] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,109882] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,092898] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,081964] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,080373] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,095661] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,018246] Mem-info: [ +0,016190] DMA per-cpu: [ +0,042907] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,045696] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,021567] Normal per-cpu: [ +0,043237] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,042809] CPU 1: hi: 186, btch: 31 usd: 1 [ +0,027782] HighMem per-cpu: [ +0,044187] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,044017] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,276192] active_anon:38230 inactive_anon:11333 isolated_anon:0 [ +0,000006] active_file:95396 inactive_file:84156 isolated_file:0 [ +0,000005] unevictable:0 dirty:2 writeback:0 unstable:0 [ +0,000005] free:8953 slab_reclaimable:9981 slab_unreclaimable:2512 [ +0,000005] mapped:2159 shmem:153 pagetables:326 bounce:0 [ +0,467447] DMA free:10956kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7228kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,024492] lowmem_reserve[]: 0 500 762 762 [ +0,475389] Normal free:22176kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10164kB active_file:183824kB inactive_file:159764kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32696kB slab_unreclaimable:8708kB kernel_stack:624kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,024240] lowmem_reserve[]: 0 0 2095 2095 [ +0,461051] HighMem free:2680kB min:260kB low:564kB high:868kB active_anon:47532kB inactive_anon:30992kB active_file:101652kB inactive_file:86052kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:4kB writeback:0kB mapped:3940kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,023810] lowmem_reserve[]: 0 0 0 0 [ +0,016839] DMA: 1167*4kB 178*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 10956kB [ +0,117735] Normal: 3738*4kB 584*8kB 113*16kB 22*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 22200kB [ +0,118592] HighMem: 124*4kB 75*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2680kB [ +0,141032] 179710 total pagecache pages [ +0,024246] 0 pages in swap cache [ +0,067845] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,019040] Free swap = 0kB [ +0,018966] Total swap = 0kB [ +0,035160] 262144 pages of RAM [ +0,017932] 9177 free pages [ +0,022041] 9338 reserved pages [ +0,022998] 9127 slab pages [ +0,022106] 116679 pages shared [ +0,022100] 0 pages swap cached [Feb28 00:14] batctl: page allocation failure: order:4, mode:0x40d0 [ +0,096010] [<c00153a4>] (unwind_backtrace+0x0/0x134) from [<c00af79c>] (warn_alloc_failed+0xe0/0x118) [ +0,105164] [<c00af79c>] (warn_alloc_failed+0xe0/0x118) from [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) [ +0,102095] [<c00b1ff0>] (__alloc_pages_nodemask+0x574/0x7cc) from [<c00b22ac>] (__get_free_pages+0x10/0x24) [ +0,087646] [<c00b22ac>] (__get_free_pages+0x10/0x24) from [<c0108bd8>] (seq_read+0x238/0x490) [ +0,080242] [<c0108bd8>] (seq_read+0x238/0x490) from [<c00eb3f4>] (vfs_read+0x98/0x174) [ +0,078150] [<c00eb3f4>] (vfs_read+0x98/0x174) from [<c00eb8a0>] (sys_read+0x38/0x78) [ +0,084499] [<c00eb8a0>] (sys_read+0x38/0x78) from [<c000ecc0>] (ret_fast_syscall+0x0/0x30) [ +0,011602] Mem-info: [ +0,014690] DMA per-cpu: [ +0,041744] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041755] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,017817] Normal per-cpu: [ +0,041737] CPU 0: hi: 186, btch: 31 usd: 0 [ +0,041729] CPU 1: hi: 186, btch: 31 usd: 0 [ +0,018845] HighMem per-cpu: [ +0,041735] CPU 0: hi: 90, btch: 15 usd: 0 [ +0,041725] CPU 1: hi: 90, btch: 15 usd: 0 [ +0,274696] active_anon:38218 inactive_anon:11333 isolated_anon:0 [ +0,000005] active_file:95399 inactive_file:84165 isolated_file:0 [ +0,000006] unevictable:0 dirty:3 writeback:0 unstable:0 [ +0,000004] free:8965 slab_reclaimable:9971 slab_unreclaimable:2505 [ +0,000005] mapped:2158 shmem:153 pagetables:326 bounce:0 [ +0,449546] DMA free:11020kB min:1180kB low:1472kB high:1768kB active_anon:41260kB inactive_anon:4176kB active_file:96108kB inactive_file:90808kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:0kB writeback:0kB mapped:3224kB shmem:488kB slab_reclaimable:7164kB slab_unreclaimable:1340kB kernel_stack:176kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,018135] lowmem_reserve[]: 0 500 762 762 [ +0,474663] Normal free:21940kB min:2324kB low:2904kB high:3484kB active_anon:64128kB inactive_anon:10164kB active_file:183836kB inactive_file:159796kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:512064kB mlocked:0kB dirty:4kB writeback:0kB mapped:1472kB shmem:4kB slab_reclaimable:32672kB slab_unreclaimable:8680kB kernel_stack:632kB pagetables:1304kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017894] lowmem_reserve[]: 0 0 2095 2095 [ +0,460232] HighMem free:2632kB min:260kB low:564kB high:868kB active_anon:47508kB inactive_anon:30992kB active_file:101652kB inactive_file:86056kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:268224kB mlocked:0kB dirty:8kB writeback:0kB mapped:3936kB shmem:120kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no [ +0,017921] lowmem_reserve[]: 0 0 0 0 [ +0,015956] DMA: 1167*4kB 186*8kB 80*16kB 32*32kB 18*64kB 5*128kB 3*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 11020kB [ +0,116870] Normal: 3667*4kB 586*8kB 112*16kB 23*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 21948kB [ +0,117813] HighMem: 110*4kB 76*8kB 37*16kB 13*32kB 7*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2632kB [ +0,135376] 179719 total pagecache pages [ +0,024043] 0 pages in swap cache [ +0,067725] Swap cache stats: add 933557, delete 933557, find 273255/316856 [ +0,018915] Free swap = 0kB [ +0,018849] Total swap = 0kB [ +0,034626] 262144 pages of RAM [ +0,017849] 9194 free pages [ +0,022185] 9338 reserved pages [ +0,017842] 9115 slab pages [ +0,021995] 116689 pages shared [ +0,021957] 0 pages swap cached
Hi Linus,
thank you for your answer. (Un)fortunately I can not reproduce the page allocation failure any more after adding one more Batman device to the Ethernet or moving some files through NFS.
Am Sonntag, den 28.02.2016, 14:27 +0100 schrieb Linus Lüssing: […]
PS: How much (free and in total) RAM does your device have, which device is
The ARM device is a Cubieboard with Allwinner A20 CPU and 1 GiB RAM. The RAM usage was not different to this output [1], but I can not assure this. Anyway the system has plenty of RAM and was idle
it exactly? Just that others know how much RAM is needed to read from debugfs with a 300+ nodes setup right now.
There is no problem watching the originators on an 32 MiB RAM OpenWrt router with 3.10.49 mips.
I'm sorry bothering you with this issue. Have a lot of fun developing B.A.T.M.A.N. advanced.
Best regards, Philipp
[1] # cat /proc/meminfo MemTotal: 1011224 kB MemFree: 18044 kB Buffers: 61100 kB Cached: 825416 kB SwapCached: 0 kB Active: 383532 kB Inactive: 548588 kB Active(anon): 24220 kB Inactive(anon): 21984 kB Active(file): 359312 kB Inactive(file): 526604 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 270336 kB HighFree: 988 kB LowTotal: 740888 kB LowFree: 17056 kB SwapTotal: 4194300 kB SwapFree: 4194300 kB Dirty: 1580 kB Writeback: 0 kB AnonPages: 45656 kB Mapped: 3844 kB Shmem: 616 kB Slab: 47596 kB SReclaimable: 37300 kB SUnreclaim: 10296 kB KernelStack: 792 kB PageTables: 1004 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 4699912 kB Committed_AS: 117352 kB VmallocTotal: 245760 kB VmallocUsed: 14052 kB VmallocChunk: 212928 kB
On Sunday 28 February 2016 00:39:08 Philipp Psurek wrote:
Hi all,
I've got this error with
[..]
[..]
[Feb28 00:13] batctl: page allocation failure: order:4, mode:0x40d0
Does this always happen when you use `batctl o` on a system with many entries in the originator table? When yes, then you could try the attached (very rough) proof-of-concept patch. It is based on v2016.0-92-gd7c9a9e
Kind regards, Sven
On Sunday 28 February 2016 17:23:18 Sven Eckelmann wrote:
On Sunday 28 February 2016 00:39:08 Philipp Psurek wrote:
Hi all,
I've got this error with
[..]
[..]
[Feb28 00:13] batctl: page allocation failure: order:4, mode:0x40d0
Does this always happen when you use `batctl o` on a system with many entries in the originator table? When yes, then you could try the attached (very rough) proof-of-concept patch. It is based on v2016.0-92-gd7c9a9e
Hm, looks like I would have to implement better position selection to get this really working. Right now it stops printing when a page is full. I have added a minor modification that tries to continue the originator output after it was stopped in the middle of a print.
Kind regards, Sven
Hi Sven,
I applied your patch. Besides a compilation warning
/root/git/batman-adv/net/batman-adv/originator.c: In function 'batadv_orig_hardif_seq_print_text': /root/git/batman-adv/net/batman-adv/originator.c:1364:22: warning: unused variable 'bat_priv' [-Wunused-variable] struct batadv_priv *bat_priv; ^
there is no error.
# batctl -v batctl 2016.0-4-g7a3d563 [batman-adv: 2016.0-92-gd7c9a9e-dirty]
this is interesting:
batctl o | wc -l 9320
the other nodes tell me 335 or 341 or …
I'm sorry I'm not able to reproduce this issue any more and thank you for your work for B.A.T.M.A.N. advanced.
best regards, Philipp
this is interesting:
batctl o | wc -l 9320
more interesting:
# while true; do batctl o | wc -l; done 9474 9474 […]
# while true; do batctl o | sort -u | wc -l; done 1764 1427 1705 1746 1568 1559 1558 1543 1429 1441 1506 1415 1429 1544 1605 1457 1497 1428 1447 1443 1423 1422 1495 1424 1427 …
On Sunday 28 February 2016 18:42:24 Philipp Psurek wrote:
this is interesting:
batctl o | wc -l 9320
Yes, there was a line missing in my last patch
--- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c @@ -1298,6 +1298,7 @@ void *batadv_orig_seq_next(struct seq_file *seq, void *v, loff_t *pos) struct batadv_hashtable *hash = bat_priv->orig_hash; struct hlist_head *head;
+ ++*pos; if (v == SEQ_START_TOKEN) { iter->bucket = 0; iter->entry = NULL;
The complete version is attached. But I doubt it makes much sense when you don't have the problem anymore.
Kind regards, Sven
Hi Sven,
as already mentioned the failure does not happen any more. I'm sorry bothering you with this unreproducible issue.
Am Sonntag, den 28.02.2016, 17:23 +0100 schrieb Sven Eckelmann:
On Sunday 28 February 2016 00:39:08 Philipp Psurek wrote:
Hi all,
I've got this error with
[..]
[..]
[Feb28 00:13] batctl: page allocation failure: order:4, mode:0x40d0
Does this always happen when you use `batctl o` on a system with many entries in the originator table?
I never saw this failure before. Executing
# batctl o | wc -l 338
on an 32 MiB RAM router was never a problem. I thought it would be the best reporting this issue.
When yes, then you could try the attached (very rough) proof-of -concept patch. It is based on v2016.0-92-gd7c9a9e
You are a faster coder than me as email writer. I'll implement the Patch in your 2nd email and report.
Best regards, Philipp
b.a.t.m.a.n@lists.open-mesh.org