发现1G的 DDR跑安卓还是不太够,动不动内存警告,使用交换分区:
[ 1354.972377] warn_alloc: 86 callbacks suppressed
[ 1354.972383] dashi.benchmark: page allocation failure: order:0, mode:0x240000a(GFP_NOIO|__GFP_HIGHMEM|__GFP_MOVABLE)
[ 1355.001185] CPU: 1 PID: 2532 Comm: dashi.benchmark Tainted: G O 4.9.170 #13
[ 1355.010298] Hardware name: sun50iw10 (DT)
[ 1355.014823] Call trace:
[ 1355.017588] [<ffffff800808c038>] dump_backtrace+0x0/0x2b8
[ 1355.023649] [<ffffff800808c314>] show_stack+0x24/0x30
[ 1355.029322] [<ffffff800847c160>] dump_stack+0x90/0xb0
[ 1355.035004] [<ffffff80081d3118>] warn_alloc+0x130/0x148
[ 1355.040882] [<ffffff80081d34f4>] __alloc_pages_nodemask+0x334/0xba8
[ 1355.047935] [<ffffff8008232190>] zs_malloc+0x168/0x4e8
[ 1355.053713] [<ffffff80085f69b0>] zram_bvec_rw.isra.22+0x410/0x880
[ 1355.060575] [<ffffff80085f6ea8>] zram_rw_page+0x88/0x110
[ 1355.066562] [<ffffff800827d58c>] bdev_write_page+0x84/0xc8
[ 1355.072744] [<ffffff8008217300>] __swap_writepage+0x78/0x3b0
[ 1355.079113] [<ffffff8008217674>] swap_writepage+0x3c/0x60
[ 1355.085191] [<ffffff80081e1c8c>] shrink_page_list+0x5c4/0xda0
[ 1355.091659] [<ffffff80081e2be0>] shrink_inactive_list+0x1a8/0x540
[ 1355.098522] [<ffffff80081e3784>] shrink_node_memcg+0x4b4/0x6d0
[ 1355.105086] [<ffffff80081e3a74>] shrink_node+0xd4/0x350
[ 1355.110962] [<ffffff80081e3dc8>] do_try_to_free_pages+0xd8/0x330
[ 1355.117729] [<ffffff80081e4120>] try_to_free_pages+0x100/0x290
[ 1355.124300] [<ffffff80081d370c>] __alloc_pages_nodemask+0x54c/0xba8
[ 1355.131355] [<ffffff800885c358>] binder_update_page_range+0x2c0/0x800
[ 1355.138603] [<ffffff800885d248>] binder_alloc_new_buf_locked+0x208/0x580
[ 1355.146147] [<ffffff800885d610>] binder_alloc_new_buf+0x50/0x78
[ 1355.152812] [<ffffff8008857284>] binder_transaction+0x594/0x2370
[ 1355.159576] [<ffffff8008859d70>] binder_thread_write+0xd10/0x1850
[ 1355.166432] [<ffffff800885b2d0>] binder_ioctl+0xa20/0xd58
[ 1355.172509] [<ffffff80082a5fdc>] compat_SyS_ioctl+0xbc/0x1d78
[ 1355.178984] [<ffffff8008083540>] el0_svc_naked+0x34/0x38
[ 1355.186067] Mem-Info:
[ 1355.188740] active_anon:57061 inactive_anon:57057 isolated_anon:35
[ 1355.188740] active_file:10273 inactive_file:8539 isolated_file:16
[ 1355.188740] unevictable:743 dirty:21 writeback:0 unstable:0
[ 1355.188740] slab_reclaimable:7022 slab_unreclaimable:12955
[ 1355.188740] mapped:18343 shmem:1087 pagetables:4604 bounce:0
[ 1355.188740] free:3231 free_pcp:156 free_cma:26
[ 1355.228120] Node 0 active_anon:227160kB inactive_anon:227024kB active_file:39480kB inactive_file:34020kB unevictable:2972kB isolated(anon):140kB isolated(file):64kB mapped:73272kB dirty:84kB writeback:0kB shmem:4348kB writeback_tmp:0kB unstable:0kB pages_scanned:44 all_unreclaimable? no
[ 1355.256809] DMA free:4212kB min:3960kB low:7548kB high:8540kB active_anon:226332kB inactive_anon:226368kB active_file:37716kB inactive_file:34028kB unevictable:2972kB writepending:88kB present:1048576kB managed:993884kB mlocked:2972kB slab_reclaimable:27864kB slab_unreclaimable:51816kB kernel_stack:16240kB pagetables:18416kB bounce:0kB free_pcp:2264kB local_pcp:124kB free_cma:264kB
[ 1355.295277] lowmem_reserve[]: 0 0 0
[ 1355.299328] DMA: 823*4kB (UMHC) 97*8kB (UMHC) 22*16kB (MHC) 22*32kB (H) 18*64kB (H) 3*128kB (H) 3*256kB (H) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 7428kB
[ 1355.315230] 21280 total pagecache pages
[ 1355.319695] 2429 pages in swap cache
[ 1355.323904] Swap cache stats: add 172850, delete 170430, find 20693/40184
[ 1355.331619] Free swap = 606220kB
[ 1355.335356] Total swap = 745408kB
[ 1355.339184] 262144 pages RAM
[ 1355.342467] 0 pages HighMem/MovableOnly
[ 1355.346834] 13673 pages reserved
[ 1355.350529] 2048 pages cma reserved
[ 1390.266736] type=1400 audit(1648307183.535:471): avc: denied { getattr } for comm="dashi.benchmark" path="/proc/vmstat" dev="proc" ino=4026532021 scontext=u:r:untrusted_app_27:s0:c68,c256,c512,c768 tcontext=u:object_r:proc_vmstat:s0 tclass=file permissive=1 app=com.ludashi.benchmark
[ 1390.298115] type=1400 audit(1648307268.141:472): avc: denied { open } for comm="GC_start_routin" path="/proc/uptime" dev="proc" ino=4026531978 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_uptime:s0 tclass=file permissive=1 app=com.ludashi.benchmark2
[ 1390.326671] type=1400 audit(1648307268.141:473): avc: denied { open } for comm="GC_start_routin" path="/proc/uptime" dev="proc" ino=4026531978 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_uptime:s0 tclass=file permissive=1 app=com.ludashi.benchmark2 duplicate messages suppressed
[ 1390.364207] type=1400 audit(1648307268.141:475): avc: denied { getattr } for comm="GC_start_routin" path="/proc/uptime" dev="proc" ino=4026531978 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_uptime:s0 tclass=file permissive=1 app=com.ludashi.benchmark2