内存分配一波三折,小结一下:
1. 先尝试快速分配,其中会从不同的zone以及迁移类型上去尝试,失败的话就进入慢速分配,里面会再划分单页面从pcp上分配以及多页面从伙伴系统中分配。
2. 尝试慢速分配,一般流程就是唤醒内存页面回收线程,然后尝试低水位分配 -> 忽略水位分配 -> 压缩内存分配 -> 直接回收内存分配 -> oom killer杀死线程分配 -> 压缩内存分配。
1、为什么杀进程是最后杀,失败了好多次这个分配page之后? 看代码
2、分配内存需要连续的空间吗?
zygote: page allocation failure: order:2, mode:0xd0, order:2表示需要分配2个连续的page,为0时表示每次分配一页。
3、CONFIG_COMPACTION 是什么原理?
4、linux的内存管理原理
5、社么是伙伴系统
6、TLB
7、Normal: 10141*4kB 7*8kB 0*16kB 0*32kB 0*64kB 0*128k 这些page是如何预定义的?
这是所谓的大小内存页,用于提供性能(TLB page fault失败率降低)及减少页表管理的内存消耗代价。
大内存页
典型地,内存管理器在 x86 系统上处理的内存页为 4 KB。实际的页大小是与体系结构相关的。对大部分用途来说,内存管理器以这样大小的页来管理内存是最有效的。不过,有一些应用程序要使用特别多的内存。大型数据库就是其中一个常见的例子。由于每个页都要由每个进程映射,必须创建页表条目来将虚拟地址映射到物理地址。如果您的一个进程要使用 4KB 的页来映射 1 GB 内存,这将用到 262,144 个页表条目来保持对那些页的追踪。如果每个页表条目消耗 8 个字节,那些每映射 1 GB 内存需要 2 MB 的开销。这本身就已经是非常可观的开销了,不过,如果有多个进程共享那些内存时,问题会变得更严重。在这种情况下,每个映射到同一块 1 GB 内存的进程将为页表条目付出自己 2 MB 的代价。如果有足够多的进程,内存在开销上的浪费可能会超过应用程序请求使用的内存数量。
解决这一问题的一个方法是使用更大的页。大部分新的处理器都支持至少一个小的和一个大的内存页大小。在 x86 上,大内存页的大小是 4 MB,或者,在物理地址扩展(PAE)打开的系统上是 2 MB。假定在前面的中使用页大小为 4 MB 的大内存页,同样 1 GB 内存只用 256 个页表条目就可以映射,而不需要 262,144 个。这样开销从 2 MB 变为 2,048 个字节。
大内存页的使用还可以通过减少 变换索引缓冲(translation lookaside buffer, TLB)的失败次数来提高性能。TLB 是一种页表的高速缓存,让那些在表中列出的页可以更快地进行虚拟地址到物理地址的转换。大内存页可以用更少的实际页来提供更多的内存,相当于较小的页大小,使用的大内存页越多,就有越多的内存可以通过 TLB 引用。
8、周期性的检查:这是由后台运行的守护进程 kswapd 完成的。该进程定期检查当前系统的内存使用情况,当发现系统内空闲的物理页面数目少于特定的阈值时,该进程就会发起页面回收的操作。
9、“内存严重不足”事件的触发:在某些情况下,比如,操作系统忽然需要通过伙伴系统为用户进程分配一大块内存,或者需要创建一个很大的缓冲区,而当时系统中的内存没有办法提供足够多的物理内存以满足这种内存请求,这时候,操作系统就必须尽快进行页面回收操作,以便释放出一些内存空间从而满足上述的内存请求。这种页面回收方式也被称作“直接页面回收”。
10、网上案例,log搜索
11、被杀掉的进程是否又不停的起来了,导致释放的无效?
12、PGD=》页面目录数组
main_log.1
06-02 11:18:59.807 873 873 D dalvikvm: GC_EXPLICIT freed 196K, 17% free 9006K/10759K, paused 2ms+1567ms
06-02 11:19:02.146 873 873 D ActivityThread: LOW_MEMORY handled : 0 / null
06-02 11:18:18.588 873 875 D dalvikvm: GC_CONCURRENT freed 1602K, 16% free 9050K/10759K, paused 1ms+7ms
06-02 11:18:59.807 873 873 D dalvikvm: GC_EXPLICIT freed 196K, 17% free 9006K/10759K, paused 2ms+1567ms
06-02 11:19:12.318 266 268 D dalvikvm: GC_CONCURRENT freed 2211K, 35% free 18415K/28231K, paused 3ms+127ms
06-02 11:19:29.015 347 348 D dalvikvm: GC_CONCURRENT freed 5420K, 33% free 14043K/20807K, paused 2ms+1822ms
system 347 111 308084 49888 20 0 0 0 fg ffffffff 00000000 S com.android.systemui
06-02 11:20:15.113 873 873 D dalvikvm: GC_EXPLICIT freed 455K, 17% free 9008K/10759K, paused 1ms+1ms
06-02 11:20:33.902 463 463 D dalvikvm: GC_EXPLICIT freed 4K, 9% free 9012K/9859K, paused 404ms+902ms
06-02 11:21:18.862 111 111 D dalvikvm: GC_EXPLICIT freed 39K, 10% free 8966K/9859K, paused 4ms+11ms
06-02 11:21:18.993 111 111 D dalvikvm: GC_EXPLICIT freed <1K, 10% free 8966K/9859K, paused 1ms+2ms
06-02 11:21:19.072 111 111 D dalvikvm: GC_EXPLICIT freed <1K, 10% free 8966K/9859K, paused 3ms+8ms
06-02 11:22:41.451 266 296 D dalvikvm: GC_FOR_ALLOC freed 1850K, 35% free 18481K/28231K, paused 265ms
dumpstate
app_111 17418 111 374388 109364 fg ffffffff 00000000 S com.plandotmob.pvz
app_111 17418 111 374388 109364 20 0 0 0 fg ffffffff 00000000 S com.plandotmob.pvz
app_111 17419 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S GC
app_111 17422 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Signal Catcher
app_111 17424 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Compiler
app_111 17425 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S ReferenceQueueD
app_111 17426 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S FinalizerDaemon
app_111 17427 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S FinalizerWatchd
app_111 17428 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Binder Thread #
app_111 17430 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Binder Thread #
app_111 18220 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S KIWI_COMMAND
app_111 18221 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S KIWI_BACKGROUND
app_111 18223 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S .ProcessManager
app_111 18225 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Thread-2066
app_111 19556 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Binder Thread #
app_111 20864 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Binder Thread #
app_111 21694 17418 374388 109364 20 0 0 0 fg ffffffff 00000000 S Thread-2078
kernel_log:
植物大战僵死:
<5>[60282.964412] (1)[17418] 10111 17418 111713 44098 0 0 0 .plandotmob.pvz
<4>[60253.850826] (0)kworker/0:6: page allocation failure: order:2, mode:0xd0
<4>[60253.850839] (0)Backtrace:
<4>[60253.850869] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[60253.850880] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[60253.850913] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[60253.850931] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[60253.850943] (0) r3:00000000 r2:00000000
<4>[60253.850957] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[60253.850989] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[60253.851007] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[60253.851023] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[60253.851034] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[60253.851061] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[60253.851076] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<4>[60253.851094] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[60253.851104] (0) r5:c0ca21e0 r4:c0fd0bc0
<4>[60253.851126] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[60253.851143] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x154/0x3bc)
<4>[60253.851161] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[60253.851182] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[60253.851192] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:dce01ea0
<4>[60264.704136] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[60264.704147] (0) r7:00000002 r6:000000d0 r5:00000002 r4:cea78000
<4>[60264.704227] (0)[] (dump_stack+0x0/0x1c) from [] (dump_header.clone.1+0x74/0x174)
<4>[60264.704246] (0)[] (dump_header.clone.1+0x0/0x174) from [] (oom_kill_process.clone.0+0x70/0x214)
<4>[60264.704264] (0)[] (oom_kill_process.clone.0+0x0/0x214) from [] (out_of_memory+0x218/0x2f4)
<4>[60264.704284] (0)[] (out_of_memory+0x0/0x2f4) from [] (__alloc_pages_nodemask+0x6e0/0x70c)
<4>[60264.704302] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[60264.704320] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[60264.704336] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[60264.704347] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[60264.704375] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[60264.704390] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<4>[60264.704408] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[60264.704419] (0) r5:c0ca21e0 r4:c0fd0bc0
<4>[60264.704441] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[60264.704458] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x2d8/0x3bc)
<4>[60264.704476] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[60264.704496] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[60264.704507] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:dce01ea0
<3>[60264.712941] (0)Out of memory: Kill process 20289 (shouliexiaoniao) score 570 or sacrifice child
<3>[60264.712957] (0)Killed process 20289 (shouliexiaoniao) total-vm:280136kB, anon-rss:19984kB, file-rss:56kB
<7>[60264.712989] (0)[19519:kworker/0:6] sig 9 to [20289:shouliexiaoniao]
06-02 11:29:20.152 20432 20432 D AEE/AED : Backtrace:Process: com.colourlive.fnxnshouliexiaoniao
06-02 11:29:20.152 20432 20432 D AEE/AED : Flags: 0xbe44
06-02 11:29:20.152 20432 20432 D AEE/AED : Package: com.colourlive.fnxnshouliexiaoniao v62 (1.0.62)
06-02 11:29:20.152 20432 20432 D AEE/AED : Subject: Broadcast of Intent { dat=http://16028 flg=0x14 cmp=com.colourlive.fnxnshouliexiaoniao/com.cczdt.whs.Re (has extras) }
06-02 11:29:20.152 20432 20432 D AEE/AED : Build: vivo/bbk17_td3001_ics2/bbk17_td3001_ics2:4.0.4/IMM76D/:user/test-keys
06-02 11:29:20.152 20432 20432 D AEE/AED :
06-02 11:29:20.152 20432 20432 D AEE/AED : CPU usage from 0ms to 38986ms later with 99% awake:
06-02 11:29:20.152 20432 20432 D AEE/AED : 27% 19519/kworker/0:6: 0% user + 27% kernel
kworker/0:6 在申请内存出问题,导致上层ANR,但是ANR为什么不能快速出来,而是很久才出来呢。
如果能够快速出来也是件好事,可以快速恢复。
<4>[59847.658563] (0)zygote: page allocation failure: order:2, mode:0xd0
<4>[59847.658576] (0)Backtrace:
<4>[59847.658606] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59847.658618] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59847.658651] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59847.658670] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59847.658682] (0) r3:00000000 r2:00000000
<4>[59847.658695] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59847.658727] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59847.658745] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59847.658764] (0)[] (pgd_alloc+0x0/0xec) from [] (mm_init+0xc4/0x10c)
<4>[59847.658774] (0) r7:dc8e4000 r6:c0745500 r5:00000000 r4:d2a3c1c0
<4>[59847.658802] (0)[] (mm_init+0x0/0x10c) from [] (dup_mm+0x80/0x484)
<4>[59847.658813] (0) r7:dc8e4000 r6:dc8e4000 r5:d2a3c1c0 r4:c2316000
<4>[59847.658840] (0)[] (dup_mm+0x0/0x484) from [] (copy_process+0xa18/0xeac)
<4>[59847.658856] (0)[] (copy_process+0x0/0xeac) from [] (do_fork+0xc4/0x324)
<4>[59847.658873] (0)[] (do_fork+0x0/0x324) from [] (sys_fork+0x30/0x38)
<4>[59847.658889] (0)[] (sys_fork+0x0/0x38) from [] (ret_fast_syscall+0x0/0x30)
<4>[59847.658899] (0)Mem-info:
<4>[59847.658907] (0)Normal per-cpu:
<4>[59847.658916] (0)CPU 0: hi: 186, btch: 31 usd: 0
<4>[59847.658932] (0)active_anon:74038 inactive_anon:843 isolated_anon:0
<4>[59847.658937] (0) active_file:91 inactive_file:246 isolated_file:0
<4>[59847.658942] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59847.658947] (0) free:12219 slab_reclaimable:601 slab_unreclaimable:3076
<4>[59847.658953] (0) mapped:23139 shmem:282 pagetables:2015 bounce:0
<4>[59847.658980] (0)Normal free:48876kB min:2808kB low:3508kB high:4212kB
这里因为free的内存都大于三个阀值,所以系统并不进行页面回收,以为是理想的,实际是因为有了内存碎片导致这种状况发生。
active_anon:296152kB inactive_anon:3372kB active_file:364kB inactive_file:984kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92556kB shmem:1128kB slab_reclaimable:2404kB slab_unreclaimable:12304kB kernel_stack:4864kB pagetables:8060kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
active 链表和 inactive 链表,这两个链表是 Linux 操作系统进行页面回收所依赖的关键数据结构
每个内存区域都存在一对这样的链表,进行页面回收的时候,Linux 操作系统会从 inactive 链表的尾部开始进行回收。
看这个incactive的也就3M一点。即使回收应该也没有多大作用吧?
<4>[59847.659008] (0)lowmem_reserve[]: 0 0 0
<4>[59847.659025] (0)Normal: 12131*4kB 44*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48876kB
<4>[59847.659071] (0)904 total pagecache pages
<4>[59847.670958] (0)124416 pages of RAM
<4>[59847.670971] (0)13042 free pages
<4>[59847.670979] (0)3303 reserved pages
<4>[59847.670986] (0)3618 slab pages
<4>[59847.670993] (0)127140 pages shared
<4>[59847.671000] (0)0 pages swap cached
<4>[59847.671012] (0)[111:zygote]Null page is returned, order:2, gfp_mask:0xd0, alloc_flags:0x00000040, Repeat Times:1501
<4>[59847.671076] (0)[111:zygote] fork fail retval:0xfffffff4
<4>[59847.671087] (0)[111:zygote] fork fail:[0xfffffff4, -12]
<4>[59853.890180] (0)kworker/0:2: page allocation failure: order:2, mode:0xd0
<4>[59853.890191] (0)Backtrace:
<4>[59853.890222] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59853.890234] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59853.890266] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59853.890285] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59853.890296] (0) r3:00000000 r2:00000000
<4>[59853.890568] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59853.890606] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59853.890625] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59853.890642] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[59853.890653] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[59853.890681] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[59853.890696] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<4>[59853.890714] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[59853.890724] (0) r5:c0ca21e0 r4:dcec2300
<4>[59853.890746] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[59853.890763] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x2d8/0x3bc)
<4>[59853.890780] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[59853.890801] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[59853.890812] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:d08b5ea0
<4>[59853.890834] (0)Mem-info:
<4>[59853.890842] (0)Normal per-cpu:
<4>[59853.890851] (0)CPU 0: hi: 186, btch: 31 usd: 0
<4>[59853.890868] (0)active_anon:74154 inactive_anon:843 isolated_anon:0
<4>[59853.890873] (0) active_file:65 inactive_file:138 isolated_file:0
<4>[59853.890878] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59853.890884] (0) free:12224 slab_reclaimable:601 slab_unreclaimable:3076
<4>[59853.890889] (0) mapped:23107 shmem:282 pagetables:2021 bounce:0
<4>[59853.890916] (0)Normal free:48896kB min:2808kB low:3508kB high:4212kB active_anon:296616kB inactive_anon:3372kB active_file:260kB inactive_file:552kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92428kB shmem:1128kB slab_reclaimable:2404kB slab_unreclaimable:12304kB kernel_stack:4896kB pagetables:8084kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
<4>[59853.890945] (0)lowmem_reserve[]: 0 0 0
<4>[59853.890962] (0)Normal: 12150*4kB 37*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48896kB
<4>[59853.891245] (0)776 total pagecache pages
<4>[59853.901286] (0)124416 pages of RAM
<4>[59853.901298] (0)13029 free pages
<4>[59853.901306] (0)3303 reserved pages
<4>[59853.901313] (0)3615 slab pages
<4>[59853.901320] (0)127024 pages shared
<4>[59853.901327] (0)0 pages swap cached
<4>[59853.901340] (0)[17859:kworker/0:2]Null page is returned, order:2, gfp_mask:0xd0, alloc_flags:0x00000040, Repeat Times:1501
<7>[59853.901356] (0)[cpu_ntf] 04_00, c0517c2c
<4>[59862.574993] (0)kworker/0:2: page allocation failure: order:2, mode:0xd0
<4>[59862.575006] (0)Backtrace:
<4>[59862.575036] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59862.575048] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59862.575081] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59862.575098] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59862.575111] (0) r3:00000000 r2:00000000
<4>[59862.575124] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59862.575156] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59862.575175] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59862.575190] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[59862.575201] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[59862.575228] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[59862.575244] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<4>[59862.575261] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[59862.575272] (0) r5:c0ca21e0 r4:dcec2300
<4>[59862.575294] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[59862.575312] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x2d8/0x3bc)
<4>[59862.575329] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[59862.575350] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[59862.575360] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:d08b5ea0
<4>[59862.575382] (0)Mem-info:
<4>[59862.575389] (0)Normal per-cpu:
<4>[59862.575399] (0)CPU 0: hi: 186, btch: 31 usd: 22
<4>[59862.575415] (0)active_anon:74151 inactive_anon:843 isolated_anon:0
<4>[59862.575420] (0) active_file:115 inactive_file:180 isolated_file:0
<4>[59862.575426] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59862.575430] (0) free:12097 slab_reclaimable:601 slab_unreclaimable:3076
<4>[59862.575436] (0) mapped:23158 shmem:282 pagetables:2021 bounce:0
<4>[59862.575462] (0)Normal free:48388kB min:2808kB low:3508kB high:4212kB active_anon:296604kB inactive_anon:3372kB active_file:460kB inactive_file:720kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92632kB shmem:1128kB slab_reclaimable:2404kB slab_unreclaimable:12304kB kernel_stack:4896kB pagetables:8084kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
<4>[59862.575491] (0)lowmem_reserve[]: 0 0 0
<4>[59862.575508] (0)Normal: 12025*4kB 36*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48388kB
<4>[59862.575555] (0)874 total pagecache pages
<4>[59862.585094] (0)124416 pages of RAM
<4>[59862.585107] (0)12913 free pages
<4>[59862.585114] (0)3303 reserved pages
<4>[59862.585121] (0)3616 slab pages
<4>[59862.585128] (0)127068 pages shared
<4>[59862.585135] (0)0 pages swap cached
<4>[59862.585148] (0)[17859:kworker/0:2]Null page is returned, order:2, gfp_mask:0xd0, alloc_flags:0x00000040, Repeat Times:1501
<7>[59862.585164] (0)[cpu_ntf] 04_00, c0517c2c
<4>[59879.610299] (0)kpd: Power Key generate, pressed=1
<4>[59879.610337] (0)kpd: (pressed) HW keycode =116 using PMIC
<4>[59879.610933] (0)kworker/0:6: page allocation failure: order:2, mode:0xd0
<4>[59879.610944] (0)Backtrace:
<4>[59879.611001] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59879.611013] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59879.611075] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59879.611120] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59879.611133] (0) r3:00000000 r2:00000000
<4>[59879.611147] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59879.611205] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59879.611248] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59879.611266] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[59879.611300] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[59879.611330] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[59879.611369] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<4>[59879.611387] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[59879.611398] (0) r5:c0ca21e0 r4:c0fd0bc0
<4>[59879.611447] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[59879.611489] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x154/0x3bc)
<4>[59879.611507] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[59879.611528] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[59879.611564] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:dce01ea0
<4>[59879.611586] (0)Mem-info:
<4>[59879.611713] (0)Normal per-cpu:
<4>[59879.611724] (0)CPU 0: hi: 186, btch: 31 usd: 0
<4>[59879.611741] (0)active_anon:74171 inactive_anon:843 isolated_anon:0
<4>[59879.611746] (0) active_file:100 inactive_file:125 isolated_file:0
<4>[59879.611752] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59879.611757] (0) free:12190 slab_reclaimable:602 slab_unreclaimable:3075
<4>[59879.611762] (0) mapped:23142 shmem:282 pagetables:2019 bounce:0
<4>[59879.611898] (0)Normal free:48760kB min:2808kB low:3508kB high:4212kB active_anon:296684kB inactive_anon:3372kB active_file:400kB inactive_file:500kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92568kB shmem:1128kB slab_reclaimable:2408kB slab_unreclaimable:12300kB kernel_stack:4872kB pagetables:8076kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
<4>[59879.612105] (0)lowmem_reserve[]: 0 0 0
<4>[59879.612125] (0)Normal: 12108*4kB 41*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48760kB
<4>[59879.612173] (0)801 total pagecache pages
<4>[59879.633648] (0)124416 pages of RAM
<4>[59879.638556] (0)12949 free pages
<4>[59879.638567] (0)3303 reserved pages
<4>[59879.638575] (0)3615 slab pages
<4>[59879.638582] (0)127050 pages shared
<4>[59879.638589] (0)0 pages swap cached
<4>[59879.638633] (0)[19519:kworker/0:6]Null page is returned, order:2, gfp_mask:0xd0, allo
<4>[59887.816683] (0)kpd: (released) HW keycode =116 using PMIC
<4>[59887.837985] (0)zygote: page allocation failure: order:2, mode:0xd0
<4>[59887.837998] (0)Backtrace:
<4>[59887.838028] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59887.838040] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59887.838074] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59887.838092] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59887.838104] (0) r3:00000000 r2:00000000
<4>[59887.838117] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59887.838149] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59887.838168] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59887.838187] (0)[] (pgd_alloc+0x0/0xec) from [] (mm_init+0xc4/0x10c)
<4>[59887.838197] (0) r7:dc8e4000 r6:c0745500 r5:00000000 r4:d2a3c1c0
<4>[59887.838224] (0)[] (mm_init+0x0/0x10c) from [] (dup_mm+0x80/0x484)
<4>[59887.838235] (0) r7:dc8e4000 r6:dc8e4000 r5:d2a3c1c0 r4:c7f36440
<4>[59887.838262] (0)[] (dup_mm+0x0/0x484) from [] (copy_process+0xa18/0xeac)
<4>[59887.838278] (0)[] (copy_process+0x0/0xeac) from [] (do_fork+0xc4/0x324)
<4>[59887.838295] (0)[] (do_fork+0x0/0x324) from [] (sys_fork+0x30/0x38)
<4>[59887.838312] (0)[] (sys_fork+0x0/0x38) from [] (ret_fast_syscall+0x0/0x30)
<4>[59887.838322] (0)Mem-info:
<4>[59887.838329] (0)Normal per-cpu:
<4>[59887.838338] (0)CPU 0: hi: 186, btch: 31 usd: 0
<4>[59887.838355] (0)active_anon:74176 inactive_anon:843 isolated_anon:0
<4>[59887.838360] (0) active_file:107 inactive_file:122 isolated_file:0
<4>[59887.838366] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59887.838371] (0) free:12180 slab_reclaimable:602 slab_unreclaimable:3075
<4>[59887.838376] (0) mapped:23145 shmem:282 pagetables:2019 bounce:0
<4>[59887.838411] (0)Normal free:48720kB min:2808kB low:3508kB high:4212kB active_anon:296704kB inactive_anon:3372kB active_file:428kB inactive_file:488kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92580kB shmem:1128kB slab_reclaimable:2408kB slab_unreclaimable:12300kB kernel_stack:4872kB pagetables:8076kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
<4>[59887.838440] (0)lowmem_reserve[]: 0 0 0
<4>[59887.838457] (0)Normal: 12098*4kB 41*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48720kB
<4>[59887.840622] (0)798 total pagecache pages
<4>[59887.861161] (0)124416 pages of RAM
<4>[59887.861173] (0)12952 free pages
<4>[59887.861180] (0)3303 reserved pages
<4>[59887.861188] (0)3615 slab pages
<4>[59887.861195] (0)127080 pages shared
<4>[59887.861201] (0)0 pages swap cached
<4>[59887.861213] (0)[111:zygote]Null page is returned, order:2, gfp_mask:0xd0, alloc
<4>[59893.500147] (0)kworker/0:6: page allocation failure: order:2, mode:0xd0
<4>[59893.500161] (0)Backtrace:
<4>[59893.500190] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59893.500202] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59893.500236] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59893.500254] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59893.500266] (0) r3:00000000 r2:00000000
<4>[59893.500279] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59893.500312] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59893.500330] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59893.500357] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[59893.500368] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[59893.500396] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[59893.500411] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<4>[59893.500429] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[59893.500439] (0) r5:c0ca21e0 r4:c0fd0bc0
<4>[59893.500462] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[59893.500479] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x2d8/0x3bc)
<4>[59893.500497] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[59893.500517] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[59893.500528] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:dce01ea0
<4>[59893.500549] (0)Mem-info:
<4>[59893.500557] (0)Normal per-cpu:
<4>[59893.500566] (0)CPU 0: hi: 186, btch: 31 usd: 0
<4>[59893.500583] (0)active_anon:74176 inactive_anon:843 isolated_anon:0
<4>[59893.500588] (0) active_file:85 inactive_file:146 isolated_file:0
<4>[59893.500593] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59893.500598] (0) free:12179 slab_reclaimable:602 slab_unreclaimable:3076
<4>[59893.500604] (0) mapped:23129 shmem:282 pagetables:2019 bounce:0
<4>[59893.500631] (0)Normal free:48716kB min:2808kB low:3508kB high:4212kB active_anon:296704kB inactive_anon:3372kB active_file:340kB inactive_file:584kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92516kB shmem:1128kB slab_reclaimable:2408kB slab_unreclaimable:12304kB kernel_stack:4864kB pagetables:8076kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
<4>[59893.500659] (0)lowmem_reserve[]: 0 0 0
<4>[59893.500677] (0)Normal: 12095*4kB 42*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48716kB
<4>[59893.500725] (0)806 total pagecache pages
<4>[59893.509686] (0)124416 pages of RAM
<4>[59893.509698] (0)12999 free pages
<4>[59893.509706] (0)3303 reserved pages
<4>[59893.509714] (0)3615 slab pages
<4>[59893.509720] (0)126984 pages shared
<4>[59893.509727] (0)0 pages swap cached
<4>[59893.509740] (0)[19519:kworker/0:6]Null page is returned, order:2, gfp_mask:0xd0, alloc_flags:0x00000040, Repeat Times:1501
<7>[59893.509756] (0)[cpu_ntf] 04_00, c0517c2c
<6>[59903.209613] (0)binder: 1564873 exec 19449:19471 to 266:0 total 52.484 sec (activity) dex_code 63 start_at 65253.829 2013-06-02 03:21:37.294
<6>[59903.224877] (0)binder: 1564916 exec 19501:19501 to 266:0 total 52.421 sec (activity) dex_code 17 start_at 65253.908 2013-06-02 03:21:37.373
<6>[59903.256837] (0)binder: 1565064 exec 18599:19046 to 266:0 total 40.382 sec (activity) dex_code 14 start_at 65265.979 2013-06-02 03:21:49.444
<5>[59903.293863] (0)[Power/Alarm] alarm wait (0x0)
<6>[59903.297911] (0)binder: 1564911 exec 450:450 to 266:0 total 52.498 sec (telephony.registry) dex_code 4 start_at 65253.903 2013-06-02 03:21:37.369
<5>[59903.474637] (0)[Power/clkmgr] [freq_meter] data = 15494, freq = 196 MHz
<4>[59903.610222] (0)kworker/0:0: page allocation failure: order:2, mode:0xd0
<4>[59903.610235] (0)Backtrace:
<4>[59903.610265] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59903.610277] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59903.610309] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59903.610328] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59903.610340] (0) r3:00000000 r2:00000000
<4>[59903.610353] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59903.610385] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59903.610403] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59903.610419] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[59903.610430] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[59903.610496] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[59903.610513] (0)[] (_cpu_up+0x0/0x130) from [] (cpu_up+0x70/0x8c)
<6>[59903.610553] (0)[Power/Battery] [upmu_is_chr_det] No charger
<4>[59903.610827] (0)[] (cpu_up+0x0/0x8c) from [] (hp_work_handler+0x3c/0x84)
<4>[59903.610840] (0) r5:c0ca21e0 r4:d77902c0
<4>[59903.610892] (0)[] (hp_work_handler+0x0/0x84) from [] (process_one_work+0x12c/0x410)
<4>[59903.610935] (0)[] (process_one_work+0x0/0x410) from [] (worker_thread+0x154/0x3bc)
<4>[59903.610953] (0)[] (worker_thread+0x0/0x3bc) from [] (kthread+0x90/0x98)
<4>[59903.610999] (0)[] (kthread+0x0/0x98) from [] (do_exit+0x0/0x6ec)
<4>[59903.611011] (0) r7:00000013 r6:c00a3d34 r5:c00bb990 r4:dcd97ea0
<4>[59903.611059] (0)Mem-info:
<4>[59903.611067] (0)Normal per-cpu:
<4>[59903.611076] (0)CPU 0: hi: 186, btch: 31 usd: 0
<4>[59903.611117] (0)active_anon:74212 inactive_anon:843 isolated_anon:0
<4>[59903.611123] (0) active_file:106 inactive_file:145 isolated_file:0
<4>[59903.611128] (0) unevictable:337 dirty:0 writeback:0 unstable:0
<4>[59903.611133] (0) free:12113 slab_reclaimable:602 slab_unreclaimable:3076
<4>[59903.611138] (0) mapped:23145 shmem:282 pagetables:2020 bounce:0
<4>[59903.611189] (0)Normal free:48452kB min:2808kB low:3508kB high:4212kB active_anon:296848kB inactive_anon:3372kB active_file:424kB inactive_file:580kB unevictable:1348kB isolated(anon):0kB isolated(file):0kB present:493776kB mlocked:15636kB dirty:0kB writeback:0kB mapped:92580kB shmem:1128kB slab_reclaimable:2408kB slab_unreclaimable:12304kB kernel_stack:4880kB pagetables:8080kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
<4>[59903.611241] (0)lowmem_reserve[]: 0 0 0
<4>[59903.611260] (0)Normal: 12039*4kB 37*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 48452kB
<4>[59903.611331] (0)829 total pagecache pages
<4>[59903.622512] (0)124416 pages of RAM
<4>[59903.622524] (0)12931 free pages
<4>[59903.622531] (0)3303 reserved pages
<4>[59903.622539] (0)3616 slab pages
<4>[59903.622546] (0)127366 pages shared
<4>[59903.622553] (0)0 pages swap cached
<4>[59903.622565] (0)[17990:kworker/0:0]Null page is returned, order:2, gfp_mask:0xd0, alloc
<6>[59911.484235] (0)binder: 1566597 exec 19449:19471 to 266:0 over 4.006 sec (alarm) dex_code 6 start_at 65310.582 2013-06-02 03:22:34.047
<4>[59911.557929] (0)kworker/0:0: page allocation failure: order:2, mode:0xd0
<4>[59911.557942] (0)Backtrace:
<4>[59911.557973] (0)[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
<4>[59911.557984] (0) r7:00000002 r6:00000000 r5:000000d0 r4:00000001
<4>[59911.558017] (0)[] (dump_stack+0x0/0x1c) from [] (warn_alloc_failed+0x9c/0x118)
<4>[59911.558294] (0)[] (warn_alloc_failed+0x0/0x118) from [] (__alloc_pages_nodemask+0x338/0x70c)
<4>[59911.558308] (0) r3:00000000 r2:00000000
<4>[59911.558322] (0) r8:00000000 r7:c071bfe0 r6:c06c67d8 r5:00000040 r4:00000000
<4>[59911.558356] (0)[] (__alloc_pages_nodemask+0x0/0x70c) from [] (__get_free_pages+0x18/0x30)
<4>[59911.558374] (0)[] (__get_free_pages+0x0/0x30) from [] (pgd_alloc+0x1c/0xec)
<4>[59911.558391] (0)[] (pgd_alloc+0x0/0xec) from [] (__cpu_up+0x6c/0x24c)
<4>[59911.558401] (0) r7:00000000 r6:de5c7000 r5:c0caa000 r4:00000001
<4>[59911.558428] (0)[] (__cpu_up+0x0/0x24c) from [] (_cpu_up+0xb0/0x130)
<4>[59911.558443] (0)[] (_cpu_up+0x0/0x130) from [