[linux] vreemd gedrag qua page allocation failures

Daniel C. von Asmuth asmuth op bakunin.xs4all.nl
Do Sep 23 19:40:27 CEST 2021


Aldus schreef Udo van den Heuvel op Thu, Sep 23, 2021 at 06:50:28PM +0200:
> Linuxers,
> 
> Recent de AMD Ryzen 3400g vervangen door een 5700g en van 16GB naar 32 GB
> gegaan.
> Sinds die tijd zie ik, ondanks mijn gepruts met vm.min_free_kbytes,
> regelmatig page allocation failures.
> 
> Hoe krijg ik deze gefixt?
> 
> Udo
> 
> 
> [378022.045451] warn_alloc: 49 callbacks suppressed
> [378022.045455] skypeforlinux: page allocation failure: order:7,
> mode:0x40a20(GFP_ATOMIC|__GFP_COMP), nodemask=(null)
> [378022.045464] CPU: 15 PID: 793538 Comm: skypeforlinux Tainted: G  W
> 5.14.6 #5
> [378022.045467] Hardware name: Gigabyte Technology Co., Ltd. X570 AORUS
> PRO/X570 AORUS PRO, BIOS F34 07/08/2021
> [378022.045469] Call Trace:
> [378022.045472]  dump_stack_lvl+0x34/0x44
> [378022.045479]  warn_alloc.cold+0x6f/0xd3
> [378022.045483]  __alloc_pages_slowpath.constprop.0+0x71b/0xab0
> [378022.045494]  ? get_page_from_freelist+0x280/0xa40
> [378022.045500]  ? p_ed_enforce_pcfi+0x3c/0x270 [p_lkrg]
> [378022.045510]  __alloc_pages+0x16c/0x1e0
> [378022.045513]  cache_alloc_refill+0x58d/0x810
> [378022.045516]  kmem_cache_alloc+0x105/0x120
> [378022.045519]  p_dump_task_f+0x19/0xf0 [p_lkrg]
> [378022.045526]  p_wake_up_new_task_entry+0x6b/0xe0 [p_lkrg]
> [378022.045534]  pre_handler_kretprobe+0x8a/0x160
> [378022.045538]  opt_pre_handler+0x47/0x80
> [378022.045540]  optimized_callback+0xba/0xf0
> [378022.045544]  0xffffffffc03d8294
> [378022.045547]  ? wake_up_new_task+0x1/0x290
> [378022.045550]  ? kernel_clone+0xd6/0x3a0
> [378022.045553]  ? __do_sys_clone+0x60/0x80
> [378022.045555]  ? do_syscall_64+0x5c/0x80
> [378022.045558]  ? preempt_count_add+0x63/0x90
> [378022.045560]  ? _raw_spin_lock_irq+0xf/0x30
> [378022.045563]  ? _raw_spin_unlock_irq+0xe/0x20
> [378022.045565]  ? exit_to_user_mode_prepare+0x19/0xf0
> [378022.045568]  ? syscall_exit_to_user_mode+0x1d/0x40
> [378022.045570]  ? do_syscall_64+0x69/0x80
> [378022.045572]  ? exit_to_user_mode_prepare+0x19/0xf0
> [378022.045574]  ? entry_SYSCALL_64_after_hwframe+0x44/0xae
> [378022.045578] Mem-Info:
> [378022.045579] active_anon:167133 inactive_anon:1038226 isolated_anon:0
>                  active_file:2162999 inactive_file:3858298 isolated_file:0
>                  unevictable:6789 dirty:919 writeback:0
>                  slab_reclaimable:205161 slab_unreclaimable:207337
>                  mapped:265657 shmem:134253 pagetables:11926 bounce:0
>                  free:154912 free_pcp:14782 free_cma:0
> [378022.045584] Node 0 active_anon:668532kB inactive_anon:4152904kB
> active_file:8651996kB inactive_file:15433192kB unevictable:27156kB
> isolated(anon):0kB isolated(file):0kB mapped:1062628kB dirty:3676kB
> writeback:0kB shmem:537012kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp:
> 1273856kB writeback_tmp:0kB kernel_stack:27260kB pagetables:47704kB
> all_unreclaimable? no
> [378022.045588] DMA free:11264kB min:120kB low:148kB high:176kB
> reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB
> inactive_file:0kB unevictable:0kB writepending:0kB present:15984kB
> managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB
> free_cma:0kB
> [378022.045592] lowmem_reserve[]: 0 2333 31505 31505
> [378022.045595] DMA32 free:129388kB min:33636kB low:38460kB high:43284kB
> reserved_highatomic:26624KB active_anon:4408kB inactive_anon:343392kB
> active_file:346164kB inactive_file:1093152kB unevictable:0kB
> writepending:0kB present:2521312kB managed:2437132kB mlocked:0kB bounce:0kB
> free_pcp:10416kB local_pcp:0kB free_cma:0kB
> [378022.045599] lowmem_reserve[]: 0 0 29172 29172
> [378022.045602] Normal free:478996kB min:236576kB low:295720kB high:354864kB
> reserved_highatomic:2048KB active_anon:664124kB inactive_anon:3808596kB
> active_file:8305832kB inactive_file:14339912kB unevictable:27156kB
> writepending:3676kB present:30379008kB managed:29873260kB mlocked:24684kB
> bounce:0kB free_pcp:48828kB local_pcp:440kB free_cma:0kB
> [378022.045605] lowmem_reserve[]: 0 0 0 0
> [378022.045607] DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB
> 0*512kB 1*1024kB (U) 1*2048kB (M) 2*4096kB (M) = 11264kB
> [378022.045617] DMA32: 5061*4kB (UMEH) 2095*8kB (UMEH) 1558*16kB (UMEH)
> 416*32kB (UMEH) 164*64kB (UMEH) 113*128kB (UMEH) 80*256kB (UMEH) 17*512kB
> (ME) 0*1024kB 0*2048kB 0*4096kB = 129388kB
> [378022.045627] Normal: 19349*4kB (UME) 9870*8kB (UME) 7331*16kB (UME)
> 2442*32kB (UME) 1035*64kB (UME) 304*128kB (UME) 80*256kB (UME) 0*512kB
> 0*1024kB 0*2048kB 0*4096kB = 477428kB
> [378022.045638] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0
> hugepages_size=2048kB
> [378022.045640] 6160995 total pagecache pages
> [378022.045640] 1479 pages in swap cache
> [378022.045641] Swap cache stats: add 227321, delete 225841, find
> 97989/133971
> [378022.045643] Free swap  = 18510584kB
> [378022.045644] Total swap = 18874360kB
> [378022.045645] 8229076 pages RAM
> [378022.045645] 0 pages HighMem/MovableOnly
> [378022.045646] 147638 pages reserved
> [378022.045647] [p_lkrg] p_alloc_ed_pids() returned NULL for pid 793592 :(
> 
> 
> en
> 
> [373803.103180] warn_alloc: 21 callbacks suppressed
> [373803.103187] Web Content: page allocation failure: order:7,
> mode:0x40a20(GFP_ATOMIC|__GFP_COMP), nodemask=(null)
> [373803.103195] CPU: 5 PID: 790034 Comm: Web Content Tainted: G        W
> 5.14.6 #5
> [373803.103197] Hardware name: Gigabyte Technology Co., Ltd. X570 AORUS
> PRO/X570 AORUS PRO, BIOS F34 07/08/2021
> [373803.103198] Call Trace:
> [373803.103203]  dump_stack_lvl+0x34/0x44
> [373803.103207]  warn_alloc.cold+0x6f/0xd3
> [373803.103210]  __alloc_pages_slowpath.constprop.0+0x71b/0xab0
> [373803.103213]  ? get_page_from_freelist+0x280/0xa40
> [373803.103215]  ? vm_area_dup+0x7a/0xb0
> [373803.103218]  __alloc_pages+0x16c/0x1e0
> [373803.103220]  cache_alloc_refill+0x58d/0x810
> [373803.103223]  kmem_cache_alloc+0x105/0x120
> [373803.103226]  p_dump_task_f+0x19/0xf0 [p_lkrg]
> [373803.103234]  p_wake_up_new_task_entry+0x6b/0xe0 [p_lkrg]
> [373803.103241]  pre_handler_kretprobe+0x8a/0x160
> [373803.103244]  opt_pre_handler+0x47/0x80
> [373803.103246]  optimized_callback+0xba/0xf0
> [373803.103250]  0xffffffffc03d8294
> [373803.103252]  ? wake_up_new_task+0x1/0x290
> [373803.103255]  ? kernel_clone+0xd6/0x3a0
> [373803.103257]  ? _raw_spin_unlock+0xd/0x20
> [373803.103260]  ? __handle_mm_fault+0xb5f/0x1170
> [373803.103262]  ? __do_sys_clone+0x60/0x80
> [373803.103264]  ? do_syscall_64+0x5c/0x80
> [373803.103267]  ? do_user_addr_fault+0x1d4/0x5e0
> [373803.103269]  ? exit_to_user_mode_prepare+0x19/0xf0
> [373803.103271]  ? entry_SYSCALL_64_after_hwframe+0x44/0xae
> [373803.103275] Mem-Info:
> [373803.103276] active_anon:166994 inactive_anon:352269 isolated_anon:0
>                  active_file:2156860 inactive_file:4585279 isolated_file:0
>                  unevictable:6780 dirty:338 writeback:0
>                  slab_reclaimable:227707 slab_unreclaimable:154008
>                  mapped:148092 shmem:49138 pagetables:7018 bounce:0
>                  free:136927 free_pcp:8549 free_cma:0
> [373803.103280] Node 0 active_anon:667976kB inactive_anon:1409076kB
> active_file:8627440kB inactive_file:18341116kB unevictable:27120kB
> isolated(anon):0kB isolated(file):0kB mapped:592368kB dirty:1352kB
> writeback:0kB shmem:196552kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp:
> 1056768kB writeback_tmp:0kB kernel_stack:20124kB pagetables:28072kB
> all_unreclaimable? no
> [373803.103283] DMA free:11264kB min:120kB low:148kB high:176kB
> reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB
> inactive_file:0kB unevictable:0kB writepending:0kB present:15984kB
> managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB
> free_cma:0kB
> [373803.103286] lowmem_reserve[]: 0 2333 31505 31505
> [373803.103289] DMA32 free:124028kB min:19300kB low:24124kB high:28948kB
> reserved_highatomic:26624KB active_anon:4408kB inactive_anon:187544kB
> active_file:326644kB inactive_file:1318364kB unevictable:0kB
> writepending:644kB present:2521312kB managed:2437132kB mlocked:0kB
> bounce:0kB free_pcp:13832kB local_pcp:1316kB free_cma:0kB
> [373803.103292] lowmem_reserve[]: 0 0 29172 29172
> [373803.103294] Normal free:412416kB min:236576kB low:295720kB high:354864kB
> reserved_highatomic:4096KB active_anon:663568kB inactive_anon:1221084kB
> active_file:8300796kB inactive_file:17023040kB unevictable:27120kB
> writepending:708kB present:30379008kB managed:29873260kB mlocked:24648kB
> bounce:0kB free_pcp:20492kB local_pcp:732kB free_cma:0kB
> [373803.103297] lowmem_reserve[]: 0 0 0 0
> [373803.103299] DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB
> 0*512kB 1*1024kB (U) 1*2048kB (M) 2*4096kB (M) = 11264kB
> [373803.103305] DMA32: 1813*4kB (UMEH) 449*8kB (UMEH) 518*16kB (UMEH)
> 150*32kB (UMEH) 126*64kB (UMEH) 105*128kB (UMEH) 79*256kB (UMEH) 20*512kB
> (UME) 7*1024kB (UM) 12*2048kB (UM) 4*4096kB (M) = 124028kB
> [373803.103314] Normal: 18003*4kB (UME) 7206*8kB (UME) 5177*16kB (UME)
> 2187*32kB (UME) 885*64kB (UME) 303*128kB (UME) 128*256kB (UM) 0*512kB
> 0*1024kB 0*2048kB 0*4096kB = 410668kB
> [373803.103322] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0
> hugepages_size=2048kB
> [373803.103323] 6796919 total pagecache pages
> [373803.103324] 1491 pages in swap cache
> [373803.103324] Swap cache stats: add 227235, delete 225749, find
> 95628/131585
> [373803.103326] Free swap  = 18510584kB
> [373803.103327] Total swap = 18874360kB
> [373803.103327] 8229076 pages RAM
> [373803.103328] 0 pages HighMem/MovableOnly
> [373803.103329] 147638 pages reserved
> [373803.103330] [p_lkrg] p_alloc_ed_pids() returned NULL for pid 790062 :(
> 
> 
> Zie ook de linux-kernel lijst voor mijn meldingen.
> 
> Udo

Misschien helpt deze link je verder:
	https://utcc.utoronto.ca/~cks/space/blog/linux/DecodingPageAllocFailures

Suc6,



Daniel

-- 
	
		How long it takes to reach your goal
		depends less on your speed than on your direction.


Meer informatie over de Linux maillijst