Hi All,
I'm getting vmalloc() failure while trying to insert the module in the kernel. When I checked the vmalloc size, there is enough space for loading the module. Someone help me to resolve this issue,
Below is the log when inserting the module,
root@ls1021atwr:/lib# insmod wl.ko
vmap allocation for size 4411392 failed: use vmalloc=<size> to increase size.
vmalloc: allocation failure: 4407240 bytes
insmod: page allocation failure: order:0, mode:0xd0
CPU: 1 PID: 1213 Comm: insmod Tainted: P O 3.12.37-rt51+ls1+gf488de6 #1
[<800107c9>] (unwind_backtrace+0x1/0x88) from [<8000e4e7>] (show_stack+0xb/0xc)
[<8000e4e7>] (show_stack+0xb/0xc) from [<8030492d>] (dump_stack+0x4d/0x60)
[<8030492d>] (dump_stack+0x4d/0x60) from [<8005c4fb>] (warn_alloc_failed+0x8f/0xb0)
[<8005c4fb>] (warn_alloc_failed+0x8f/0xb0) from [<80074bef>] (__vmalloc_node_range+0x113/0x134)
[<80074bef>] (__vmalloc_node_range+0x113/0x134) from [<8000eb4f>] (module_alloc+0x27/0x34)
[<8000eb4f>] (module_alloc+0x27/0x34) from [<8004af3b>] (module_alloc_update_bounds+0x9/0x42)
[<8004af3b>] (module_alloc_update_bounds+0x9/0x42) from [<8004b433>] (layout_and_allocate+0x4bb/0x56c)
[<8004b433>] (layout_and_allocate+0x4bb/0x56c) from [<8004b54b>] (load_module+0x67/0x9cc)
[<8004b54b>] (load_module+0x67/0x9cc) from [<8004bf63>] (SyS_finit_module+0x35/0x3e)
[<8004bf63>] (SyS_finit_module+0x35/0x3e) from [<8000c141>] (ret_fast_syscall+0x1/0x44)
Mem-info:
DMA per-cpu:
CPU 0: hi: 186, btch: 31 usd: 122
CPU 1: hi: 186, btch: 31 usd: 35
active_anon:981 inactive_anon:40 isolated_anon:0
active_file:2835 inactive_file:1727 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:226520 slab_reclaimable:872 slab_unreclaimable:1300
mapped:583 shmem:69 pagetables:42 bounce:0
free_cma:0
DMA free:906080kB min:4064kB low:5080kB high:6096kB active_anon:3924kB inactive_anon:160kB active_file:11340kB inactive_file:6908kB unevictableo
lowmem_reserve[]: 0 0 0 0
DMA: 42*4kB (M) 8*8kB (UM) 9*16kB (UEM) 5*32kB (UEM) 3*64kB (UEM) 1*128kB (E) 6*256kB (UEM) 1*512kB (U) 2*1024kB (UM) 2*2048kB (UM) 219*4096kB B
4634 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
393216 pages of RAM
353699 free pages
7167 reserved pages
1514 slab pages
266830 pages shared
0 pages swap cached
insmod: ERROR: could not insert module wl.ko: Cannot allocate memory
size of Vmalloc () is ,
cat /proc/meminfo | grep -i vmalloc
VmallocTotal: 1024000 kB
VmallocUsed: 142156 kB
VmallocChunk: 879548 kB
Even-though enough space is there, what could be the reason for this issue and how can I resolve it..
Help is appreciated. Thanks in advance.
Hello Vignesh, did you ever find the answer to this question? I am having the same issue with the wl driver
John
Could someone help me ??
Hi Vignesh, are you perhaps mistakenly trying
to allocate a huge chunk of memory during
module init ?
Regards
Sinan Akman
No Sinan.