Fwd: Query about /proc/meminfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

-I am currently working on one embedded development board.
-I have ported 3.0.31 kernel with my personal patches on it.

-When I am trying to insert my module, it fails to allocate 4MB memory using kmalloc.

-Below is a snapshot of cat /proc/meminfo command of my embedded linux system.

Inline image 1

-According to my understanding, LowFree parameter indicates free memory in kernel space which is around 536MB in this case.

-There is a lot free space available in kernel space then 
why module fails in kmalloc of 4MB ?

-Also find the attached log messages of dmesg

Regards,
Mehul

[65210.351562] Hello World
[65210.356201] insmod: page allocation failure: order:10, mode:0xd0
[65210.363952] [<c007d5ac>] (unwind_backtrace+0x0/0x128) from [<c059b138>] (dump_stack+0x20/0x28)
[65210.375183] [<c059b138>] (dump_stack+0x20/0x28) from [<c0107d84>] (warn_alloc_failed+0xf4/0x114)
[65210.386596] [<c0107d84>] (warn_alloc_failed+0xf4/0x114) from [<c0109e6c>] (__alloc_pages_nodemask+0x588/0x684)
[65210.399505] [<c0109e6c>] (__alloc_pages_nodemask+0x588/0x684) from [<c059cbf4>] (cache_alloc_refill+0x2d0/0x51c)
[65210.411773] [<c059cbf4>] (cache_alloc_refill+0x2d0/0x51c) from [<c0135308>] (kmem_cache_alloc_trace+0x84/0x1ac)
[65210.422851] [<c0135308>] (kmem_cache_alloc_trace+0x84/0x1ac) from [<bf165028>] (myfunc+0x28/0x48 [myModule])
[65210.433959] [<bf165028>] (myfunc+0x28/0x48 [myModule]) from [<bf165068>] (init_module+0x20/0x30 [myModule])
[65210.444976] [<bf165068>] (init_module+0x20/0x30 [myModule]) from [<c006a654>] (do_one_initcall+0xa0/0x170)
[65210.455535] [<c006a654>] (do_one_initcall+0xa0/0x170) from [<c00de0a8>] (sys_init_module+0x18bc/0x1abc)
[65210.466125] [<c00de0a8>] (sys_init_module+0x18bc/0x1abc) from [<c0075c80>] (ret_fast_syscall+0x0/0x30)
[65210.476043] Mem-info:
[65210.478393] Normal per-cpu:
[65210.482269] CPU    0: hi:  186, btch:  31 usd:  38
[65210.487762] CPU    1: hi:  186, btch:  31 usd: 158
[65210.493011] HighMem per-cpu:
[65210.496276] CPU    0: hi:   42, btch:   7 usd:   3
[65210.502716] CPU    1: hi:   42, btch:   7 usd:  35
[65210.508453] active_anon:8156 inactive_anon:40 isolated_anon:0
[65210.508483]  active_file:6 inactive_file:135 isolated_file:0
[65210.508483]  unevictable:0 dirty:6 writeback:0 unstable:0
[65210.508483]  free:138461 slab_reclaimable:740 slab_unreclaimable:15319
[65210.508483]  mapped:51 shmem:89 pagetables:435 bounce:25
[65210.538635] Normal free:550544kB min:3744kB low:4680kB high:5616kB active_anon:21720kB inactive_anon:144kB active_file:24kB inactive_file:84kB unevictable:0kB isolated(anons
[65210.580169] lowmem_reserve[]: 0 1262 1262
[65210.584777] HighMem free:2716kB min:156kB low:328kB high:500kB active_anon:10904kB inactive_anon:16kB active_file:0kB inactive_file:940kB unevictable:0kB isolated(anon):0kBs
[65210.624145] lowmem_reserve[]: 0 0 0
[65210.628082] Normal: 2495*4kB 1598*8kB 1091*16kB 1020*32kB 950*64kB 666*128kB 366*256kB 208*512kB 86*1024kB 19*2048kB 1*4096kB 0*8192kB 0*16384kB 0*32768kB 0*65536kB 0*13107B
[65210.647460] HighMem: 4*4kB 80*8kB 94*16kB 6*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB 0*65536kB 0*131072kB = 2352kB
[65210.666870] 543 total pagecache pages
[65210.671844] 0 pages in swap cache
[65210.675292] Swap cache stats: add 0, delete 0, find 0/0
[65210.681457] Free swap  = 0kB
[65210.685424] Total swap = 0kB
[65210.700500] 262144 pages of RAM
[65210.704681] 171752 free pages
[65210.707733] 63879 reserved pages
[65210.711700] 16069 slab pages
[65210.715332] 262 pages shared
[65210.718383] 0 pages swap cached
[65210.722229] Memory allocation failed
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux