Project

General

Profile

Actions

Bug #472

closed

Lttng-modules : Vmalloc fail

Added by tangi colin almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
03/12/2013
Due date:
% Done:

100%

Estimated time:

Description

Hello, i try to use lttng 2.1 on beagleboard-xm, i use last stable buildroot version to create a rootfs with lttng-tools and lttng-modules but when i try to load lttng-tracer i have the following ouptup:
[root@beagleboard-xm ~]# modprobe lttng-tracer
[ 1229.656768] vmap allocation for size 16068608 failed: use vmalloc=<size> to increase size.
[ 1229.665618] vmalloc: allocation failure: 16064293 bytes
[ 1229.671234] modprobe: page allocation failure: order:0, mode:0xd0
[ 1229.677703] [<c001aea4>] (unwind_backtrace+0x0/0x178) from [<c06f6ee8>] (dump_stack+0x20/0x24)
[ 1229.686889] [<c06f6ee8>] (dump_stack+0x20/0x24) from [<c01495dc>] (warn_alloc_failed+0x1bc/0x1f4)
[ 1229.696289] [<c01495dc>] (warn_alloc_failed+0x1bc/0x1f4) from [<c018dd50>] (_vmalloc_node_range+0x2cc/0x2fc)
[ 1229.706756] [<c018dd50>] (
_vmalloc_node_range+0x2cc/0x2fc) from [<c001867c>] (module_alloc+0x44/0x54)
[ 1229.716613] [<c001867c>] (module_alloc+0x44/0x54) from [<c00c55a0>] (module_alloc_update_bounds+0x1c/0xd0)
[ 1229.726837] [<c00c55a0>] (module_alloc_update_bounds+0x1c/0xd0) from [<c00c6078>] (layout_and_allocate+0xa08/0xca8)
[ 1229.737854] [<c00c6078>] (layout_and_allocate+0xa08/0xca8) from [<c00c6744>] (load_module+0x80/0x149c)
[ 1229.747711] [<c00c6744>] (load_module+0x80/0x149c) from [<c00c7bdc>] (sys_init_module+0x7c/0x250)
[ 1229.757110] [<c00c7bdc>] (sys_init_module+0x7c/0x250) from [<c0011700>] (ret_fast_syscall+0x0/0x48)
[ 1229.766693] Mem-info:
[ 1229.769073] Normal per-cpu:
[ 1229.772094] CPU 0: hi: 186, btch: 31 usd: 27
[ 1229.777191] active_anon:4185 inactive_anon:7 isolated_anon:0
[ 1229.777191] active_file:4468 inactive_file:651 isolated_file:0
[ 1229.777191] unevictable:0 dirty:2 writeback:0 unstable:0
[ 1229.777191] free:106136 slab_reclaimable:685 slab_unreclaimable:681
[ 1229.777191] mapped:463 shmem:12 pagetables:46 bounce:0
[ 1229.777191] free_cma:4029
[ 1229.809906] Normal free:424544kB min:2824kB low:3528kB high:4236kB active_anon:16740kB inactive_anon:28kB active_file:17872kB inactive_file:2604kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:500224kB mlocked:0kB dirty:8kB writeback:0kB mapped:1852kB shmem:48kB slab_reclaimable:2740kB slab_unreclaimable:2724kB kernel_stack:408kB pagetables:184kB unstable:0kB bounce:0kB free_cma:16116kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[ 1229.852294] lowmem_reserve[]: 0 0 0
[ 1229.855957] Normal: 14*4kB 1*8kB 2*16kB 2*32kB 3*64kB 2*128kB 2*256kB 1*512kB 3*1024kB 1*2048kB 102*4096kB = 424544kB
[ 1229.867553] 5130 total pagecache pages
[ 1229.871490] 0 pages in swap cache
[ 1229.875061] Swap cache stats: add 0, delete 0, find 0/0
[ 1229.880493] Free swap = 0kB
[ 1229.883636] Total swap = 0kB
[ 1229.913787] 131072 pages of RAM
[ 1229.917083] 106350 free pages
[ 1229.920318] 9763 reserved pages
[ 1229.923736] 1244 slab pages
[ 1229.926666] 1304 pages shared
[ 1229.929901] 0 pages swap cached
modprobe: can't load module lttng-tracer (extra/lttng-tracer.ko): Cannot allocate memory

But if it look memory available, i have sufficient memory :
[root@beagleboard-xm ~]# cat /proc/meminfo
MemTotal: 485236 kB
MemFree: 455792 kB
Buffers: 740 kB
Cached: 19792 kB
SwapCached: 0 kB
Active: 18752 kB
Inactive: 2640 kB
Active(anon): 880 kB
Inactive(anon): 28 kB
Active(file): 17872 kB
Inactive(file): 2612 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 485236 kB
LowFree: 455792 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 8 kB
Writeback: 0 kB
AnonPages: 872 kB
Mapped: 1832 kB
Shmem: 52 kB
Slab: 5476 kB
SReclaimable: 2752 kB
SUnreclaim: 2724 kB
KernelStack: 408 kB
PageTables: 152 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 242616 kB
Committed_AS: 51564 kB
VmallocTotal: 499712 kB
VmallocUsed: 23808 kB
VmallocChunk: 381772 kB

And i have no problem to load other lttng modules:
lsmod
Module Size Used by Tainted: G
lttng_types 1275 0
lttng_kretprobes 4370 0
lttng_kprobes 2916 0
lttng_ftrace 3651 0
lttng_statedump 6390 0
lttng_lib_ring_buffer 65640 0

How can i fix this ?


Files

.config (60.7 KB) .config tangi colin, 03/22/2013 08:48 AM
fix-arm-syscall.patch (2.17 KB) fix-arm-syscall.patch fix arm syscall instrumentation Mathieu Desnoyers, 03/23/2013 12:07 PM
Actions

Also available in: Atom PDF