咨询,为什么OOM的时候log里看还是有4932KB的,还是被killed?
-
[__alloc_pages_may_oom:3950]order:0, gfp_mask:100cca [out_of_memory:1125] [oom_kill_process:980] totalram_pages:13941, hugetlb_total_pages:0, sysctl_overcommit_ratio:95 entry_ui invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0 CPU: 0 PID: 816 Comm: entry_ui Not tainted 5.4.61 #3 Call Trace: [<ffffffff8001dca2>] 0xffffffff8001dca2 [<ffffffff800578da>] 0xffffffff800578da [<ffffffff80057178>] 0xffffffff80057178 [<ffffffff8005782a>] 0xffffffff8005782a [<ffffffff800754d0>] 0xffffffff800754d0 [<ffffffff800756a0>] 0xffffffff800756a0 [<ffffffff800557fc>] 0xffffffff800557fc [<ffffffff80055ac0>] 0xffffffff80055ac0 [<ffffffff80068c26>] 0xffffffff80068c26 [<ffffffff8006a576>] 0xffffffff8006a576 [<ffffffff8001ed7e>] 0xffffffff8001ed7e [<ffffffff8001cd00>] 0xffffffff8001cd00 Mem-Info: active_anon:2971 inactive_anon:2 isolated_anon:0 active_file:491 inactive_file:408 isolated_file:32 unevictable:9 dirty:0 writeback:0 unstable:0 slab_reclaimable:177 slab_unreclaimable:2478 mapped:457 shmem:11 pagetables:60 bounce:0 free:1233 free_pcp:15 free_cma:0 Node 0 active_anon:11884kB inactive_anon:8kB active_file:1964kB inactive_file:1632kB unevictable:36kB isolated(anon):0kB isolated(file):128kB mapped:1828kB dirty:0kB writeback:0kB shmem:44kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no DMA32 free:4932kB min:5036kB low:5268kB high:5500kB active_anon:11884kB inactive_anon:8kB active_file:1964kB inactive_file:1632kB unevictable:36kB writepending:0kB present:65536kB managed:55764kB mlocked:36kB kernel_stack:1088kB pagetables:240kB bounce:0kB free_pcp:60kB local_pcp:60kB free_cma:0kB lowmem_reserve[]: 0 0 0 DMA32: 209*4kB (UMEH) 138*8kB (UMEH) 59*16kB (UMEH) 16*32kB (UEH) 16*64kB (EH) 4*128kB (H) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 4932kB Free pages count per migrate typeat order: 0 1 2 3 4 5 6 7 8 9 10 zone DMA32, type Unmovable 106 97 42 5 0 0 0 0 0 0 0 zone DMA32, type Movable 67 26 6 0 0 0 0 0 0 0 0 zone DMA32, type Reclaimable 1 1 1 1 10 0 0 0 0 0 0 zone DMA32, type HighAtomic 35 14 10 10 6 4 0 0 0 0 0 937 total pagecache pages 16384 pages RAM 0 pages HighMem/MovableOnly 2443 pages reserved Tasks state (memory values in pages): [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name [ 816] 0 816 141124 3242 155648 0 0 entry_ui [ 817] 0 817 629 38 28672 0 0 sh [ 843] 65534 843 469 84 28672 0 0 dnsmasq [ 855] 0 855 66229 57 45056 0 0 adbd oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=entry_ui,pid=816,uid=0 [oom_kill_process:991] [__oom_kill_process:891]entry_ui Out of memory: Killed process 816 (entry_ui) total-vm:564496kB, anon-rss:11140kB, file-rss:1792kB, shmem-rss:36kB, UID:0 pgtables:152kB oom_score_adj:0 [oom_kill_process:1004] oom_reaper: reaped process 816 (entry_ui), now anon-rss:0kB, file-rss:76kB, shmem-rss:36kB VE: release lost-lock... ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(__owner_task(owner) != current) WARNING: CPU: 0 PID: 847 at 0xffffffff8030cc7e Modules linked in: hgic_sdio hgicf CPU: 0 PID: 847 Comm: TimerEntry Not tainted 5.4.61 #3 sepc: ffffffff8030cc7e ra : ffffffff8030cc7e sp : ffffffff817f3c60 gp : ffffffff8045f948 tp : ffffffff8396b480 t0 : ffffffff80476228 t1 : 0000000000000063 t2 : 0000000000000000 s0 : ffffffff83060980 s1 : ffffffff82ca8a80 a0 : 0000000000000033 a1 : ffffffff8046a4db a2 : 0000000000000033 a3 : 0000000000000000 a4 : 0000000200000020 a5 : 0000000000000000 a6 : 0000000000000004 a7 : 0000000000000037 s2 : ffffffff80488000 s3 : ffffffff8046b000 s4 : ffffffff830f2620 s5 : ffffffff80367000 s6 : ffffffff80367000 s7 : ffffffff80367000 s8 : ffffffff80417000 s9 : 0000003fe7ef6290 s10: 0000003fe7ef61d0 s11: 0000003feccd2090 t3 : ffffffffffffffff t4 : 0000000000400014 t5 : 0000000000400015 t6 : ffffffff80469c7b sstatus: 0000000200000120 sbadaddr: 0000000000000000 scause: 0000000000000003 ---[ end trace 820754eaa6713c12 ]---
-
4M是CMA内存,在env.cfg里配置大小
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号