Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* Page Allocation Failure and Page allocation stalls
@ 2019-05-01 23:26 Pankaj Suryawanshi
  2019-05-02  5:21 ` Valdis Klētnieks
  0 siblings, 1 reply; 5+ messages in thread
From: Pankaj Suryawanshi @ 2019-05-01 23:26 UTC (permalink / raw)
  To: linux-kernel, linux-mm, kernelnewbies, Vlastimil Babka,
	Michal Hocko, minchan

[-- Attachment #1.1: Type: text/plain, Size: 6193 bytes --]

Hi All,

Please help me to decode the error messages and reason for this errors.

System Configuration
1. Kernel 4.14.65 For Android Pie.
2. RAM 2GB

As per my understanding its because of
i) I am out of memory or due to fragmentation.

I also tried to set /proc/sys/vm/min_freekbytes from 3MB to 64MB, but issue
still persists.

Below are the errors.

1)
[ 3205.818891] HwBinder:1894_6: page allocation failure: order:7,
mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)
[ 3205.830189] CPU: 3 PID: 23012 Comm: HwBinder:1894_6 Tainted: P
O    4.14.65 #261
[ 3205.838803] Hardware name: Android(Flattened Device Tree)
[ 3205.845153] Backtrace:
[ 3205.847617] [<8020dbec>] (dump_backtrace) from [<8020ded0>]
(show_stack+0x18/0x1c)
[ 3205.855187]  r6:600f0013 r5:8141c21c r4:00000000 r3:d98a4108
[ 3205.860852] [<8020deb8>] (show_stack) from [<80bab014>]
(dump_stack+0x94/0xa8)
[ 3205.868081] [<80baaf80>] (dump_stack) from [<80350674>]
(warn_alloc+0xe0/0x194)
[ 3205.875389]  r6:80e09abc r5:00000000 r4:81216588 r3:d98a4108
[ 3205.881054] [<80350598>] (warn_alloc) from [<80351544>]
(__alloc_pages_nodemask+0xd70/0x124c)
[ 3205.889576]  r3:00000007 r2:80e09abc
[ 3205.893149]  r6:00000040 r5:00000000 r4:00000000
[ 3205.897771] [<803507d4>] (__alloc_pages_nodemask) from [<80375484>]
(kmalloc_order_trace+0x34/0x124)
[ 3205.906906]  r10:00080000 r9:803a983c r8:00080000 r7:00000007
r6:17c00000 r5:014000c0
[ 3205.914731]  r4:bf20b800
[ 3205.917268] [<80375450>] (kmalloc_order_trace) from [<803a983c>]
(__kmalloc+0x1e0/0x318)
[ 3205.925358]  r9:80607760 r8:014000c0 r7:20000008 r6:17c00000 r5:17c00000
r4:bf20b800
[ 3205.933107] [<803a965c>] (__kmalloc) from [<806a9464>]
(dma_common_contiguous_remap+0x40/0xc8)
[ 3205.941721]  r10:bf20b800 r9:80607760 r8:af78bd34 r7:20000008
r6:17c00000 r5:17c00000
[ 3205.949546]  r4:bf20b800
[ 3205.952085] [<806a9424>] (dma_common_contiguous_remap) from [<802187e4>]
(__alloc_from_contiguous+0x118/0x144)
[ 3205.962086]  r7:00017c00 r6:17c00000 r5:81216588 r4:00000001
[ 3205.967748] [<802186cc>] (__alloc_from_contiguous) from [<80218854>]
(cma_allocator_alloc+0x44/0x4c)
[ 3205.976881]  r10:00000000 r9:af78bdd8 r8:81216588 r7:00c00000
r6:b93ac300 r5:80607760
[ 3205.984707]  r4:00000001
[ 3205.987241] [<80218810>] (cma_allocator_alloc) from [<80217e28>]
(__dma_alloc+0x19c/0x2e4)
[ 3205.995501]  r5:be30a400 r4:014000c0
[ 3205.999094] [<80217c8c>] (__dma_alloc) from [<80218000>]
(arm_dma_alloc+0x4c/0x54)
[ 3206.006677]  r10:00000080 r9:17c00000 r8:80c01778 r7:be30a400
r6:81216588 r5:00c00000
[ 3206.014533]  r4:00000707
[ 3206.017100] [<80217fb4>] (arm_dma_alloc) from [<80607760>]
(pmap_cma_alloc+0xbc/0x14c)
[ 3206.025048]  r5:814278b8 r4:814901f8


2)

[  671.925663] kworker/u8:13: page allocation stalls for 10090ms, order:1,
mode:0x15080c0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), nodemask=(null)
[  671.938469] CPU: 2 PID: 3551 Comm: kworker/u8:13 Tainted: P           O
   4.14.65#273
[  671.946822] Hardware name: Android (Flattened Device Tree)
[  671.953184] Workqueue: events_unbound call_usermodehelper_exec_work
[  671.959449] Backtrace:
[  671.961901] [<8020dbec>] (dump_backtrace) from [<8020ded0>]
(show_stack+0x18/0x1c)
[  671.969469]  r6:60060113 r5:8141c09c r4:00000000 r3:db12065c
[  671.975129] [<8020deb8>] (show_stack) from [<80ba6850>]
(dump_stack+0x94/0xa8)
[  671.982356] [<80ba67bc>] (dump_stack) from [<80350610>]
(warn_alloc+0xe0/0x194)
[  671.989664]  r6:80e09180 r5:00000000 r4:81216588 r3:db12065c
[  671.995326] [<80350534>] (warn_alloc) from [<80351520>]
(__alloc_pages_nodemask+0xdb0/0x124c)
[  672.003846]  r3:0000276a r2:80e09180
[  672.007417]  r6:812166a4 r5:8141d880 r4:00000000
[  672.012039] [<80350770>] (__alloc_pages_nodemask) from [<8021e914>]
(copy_process.part.5+0x114/0x1a28)
[  672.021345]  r10:00000000 r9:99848780 r8:00000000 r7:81447c48
r6:81216588 r5:00808111
[  672.029169]  r4:9b355280
[  672.031702] [<8021e800>] (copy_process.part.5) from [<802203b0>]
(_do_fork+0xd0/0x464)
[  672.039617]  r10:00000000 r9:00000000 r8:9d008400 r7:00000000
r6:81216588 r5:9b62f840
[  672.047441]  r4:00808111
[  672.049972] [<802202e0>] (_do_fork) from [<802207a4>]
(kernel_thread+0x38/0x40)
[  672.057281]  r10:00000000 r9:81422554 r8:9d008400 r7:00000000
r6:9d004500 r5:9b62f840
[  672.065105]  r4:81216588
[  672.067642] [<8022076c>] (kernel_thread) from [<802399b4>]
(call_usermodehelper_exec_work+0x44/0xe0)
[  672.076775] [<80239970>] (call_usermodehelper_exec_work) from
[<8023cfc8>] (process_one_work+0x154/0x518)
[  672.086338]  r5:9b62f840 r4:98b43480
[  672.089913] [<8023ce74>] (process_one_work) from [<8023d3e4>]
(worker_thread+0x58/0x56c)
[  672.098003]  r10:00000088 r9:98b43480 r8:98b43498 r7:8120f900
r6:88eea038 r5:9d008424
[  672.105827]  r4:9d008400
[  672.108362] [<8023d38c>] (worker_thread) from [<802440d8>]
(kthread+0x134/0x164)
[  672.115757]  r10:838dbe68 r9:99e7a2a8 r8:8023d38c r7:98b43480
r6:9bf0d600 r5:00000000
[  672.123581]  r4:99e7a280
[  672.126116] [<80243fa4>] (kthread) from [<80209258>]
(ret_from_fork+0x14/0x3c)
[  672.133338]  r10:00000000 r9:00000000 r8:00000000 r7:00000000
r6:00000000 r5:80243fa4
[  672.141162]  r4:9bf0d600 r3:00000000
[  672.147376] Mem-Info:
[  672.149667] active_anon:68540 inactive_anon:101042 isolated_anon:207
[  672.149667]  active_file:26674 inactive_file:17535 isolated_file:2
[  672.149667]  unevictable:610 dirty:0 writeback:152 unstable:0
[  672.149667]  slab_reclaimable:5039 slab_unreclaimable:9749
[  672.149667]  mapped:32149 shmem:45729 pagetables:4266 bounce:0
[  672.149667]  free:18378 free_pcp:59 free_cma:0
[  672.183745] Node 0 active_anon:274456kB inactive_anon:404216kB
active_file:106672kB inactive_file:70164kB unevictable:2440kB
isolated(anon):416kB isolated(file):8kB mapped:128596kB dirty:0kB
writeback:544kB shmem:182916kB writeback_tmp:0kB unstable:0kB
all_unreclaimable? no
[  672.208055] DMA free:72984kB min:65536kB low:87004kB high:103388kB
active_anon:109860kB inactive_anon:109304kB active_file:408kB
inactive_file:772kB unevictable:0kB writepending:616kB present:450560kB
managed:414704kB mlocked:0kB kernel_stack:5984kB pagetables:7024kB
bounce:0kB free_pcp:708kB local_pcp:4kB free_cma:0kB


Regards,
Pankaj

[-- Attachment #1.2: Type: text/html, Size: 6981 bytes --]

<div dir="ltr">Hi All,<br><br>Please help me to decode the error messages and reason for this errors.<br><br>System Configuration<br>1. Kernel 4.14.65 For Android Pie.<br>2. RAM 2GB<div><br></div><div>As per my understanding its because of</div><div>i) I am out of memory or due to fragmentation.</div><div><br></div><div>I also tried to set /proc/sys/vm/min_freekbytes from 3MB to 64MB, but issue still persists.<br><br>Below are the errors.<br><br>1)<br>[ 3205.818891] HwBinder:1894_6: page allocation failure: order:7, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)<br>[ 3205.830189] CPU: 3 PID: 23012 Comm: HwBinder:1894_6 Tainted: P           O    4.14.65 #261<br>[ 3205.838803] Hardware name: Android(Flattened Device Tree)<br>[ 3205.845153] Backtrace:<br>[ 3205.847617] [&lt;8020dbec&gt;] (dump_backtrace) from [&lt;8020ded0&gt;] (show_stack+0x18/0x1c)<br>[ 3205.855187]  r6:600f0013 r5:8141c21c r4:00000000 r3:d98a4108<br>[ 3205.860852] [&lt;8020deb8&gt;] (show_stack) from [&lt;80bab014&gt;] (dump_stack+0x94/0xa8)<br>[ 3205.868081] [&lt;80baaf80&gt;] (dump_stack) from [&lt;80350674&gt;] (warn_alloc+0xe0/0x194)<br>[ 3205.875389]  r6:80e09abc r5:00000000 r4:81216588 r3:d98a4108<br>[ 3205.881054] [&lt;80350598&gt;] (warn_alloc) from [&lt;80351544&gt;] (__alloc_pages_nodemask+0xd70/0x124c)<br>[ 3205.889576]  r3:00000007 r2:80e09abc<br>[ 3205.893149]  r6:00000040 r5:00000000 r4:00000000<br>[ 3205.897771] [&lt;803507d4&gt;] (__alloc_pages_nodemask) from [&lt;80375484&gt;] (kmalloc_order_trace+0x34/0x124)<br>[ 3205.906906]  r10:00080000 r9:803a983c r8:00080000 r7:00000007 r6:17c00000 r5:014000c0<br>[ 3205.914731]  r4:bf20b800<br>[ 3205.917268] [&lt;80375450&gt;] (kmalloc_order_trace) from [&lt;803a983c&gt;] (__kmalloc+0x1e0/0x318)<br>[ 3205.925358]  r9:80607760 r8:014000c0 r7:20000008 r6:17c00000 r5:17c00000 r4:bf20b800<br>[ 3205.933107] [&lt;803a965c&gt;] (__kmalloc) from [&lt;806a9464&gt;] (dma_common_contiguous_remap+0x40/0xc8)<br>[ 3205.941721]  r10:bf20b800 r9:80607760 r8:af78bd34 r7:20000008 r6:17c00000 r5:17c00000<br>[ 3205.949546]  r4:bf20b800<br>[ 3205.952085] [&lt;806a9424&gt;] (dma_common_contiguous_remap) from [&lt;802187e4&gt;] (__alloc_from_contiguous+0x118/0x144)<br>[ 3205.962086]  r7:00017c00 r6:17c00000 r5:81216588 r4:00000001<br>[ 3205.967748] [&lt;802186cc&gt;] (__alloc_from_contiguous) from [&lt;80218854&gt;] (cma_allocator_alloc+0x44/0x4c)<br>[ 3205.976881]  r10:00000000 r9:af78bdd8 r8:81216588 r7:00c00000 r6:b93ac300 r5:80607760<br>[ 3205.984707]  r4:00000001<br>[ 3205.987241] [&lt;80218810&gt;] (cma_allocator_alloc) from [&lt;80217e28&gt;] (__dma_alloc+0x19c/0x2e4)<br>[ 3205.995501]  r5:be30a400 r4:014000c0<br>[ 3205.999094] [&lt;80217c8c&gt;] (__dma_alloc) from [&lt;80218000&gt;] (arm_dma_alloc+0x4c/0x54)<br>[ 3206.006677]  r10:00000080 r9:17c00000 r8:80c01778 r7:be30a400 r6:81216588 r5:00c00000<br>[ 3206.014533]  r4:00000707<br>[ 3206.017100] [&lt;80217fb4&gt;] (arm_dma_alloc) from [&lt;80607760&gt;] (pmap_cma_alloc+0xbc/0x14c)<br>[ 3206.025048]  r5:814278b8 r4:814901f8<br><br><br>2)<br><br>[  671.925663] kworker/u8:13: page allocation stalls for 10090ms, order:1, mode:0x15080c0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), nodemask=(null)<br>[  671.938469] CPU: 2 PID: 3551 Comm: kworker/u8:13 Tainted: P           O    4.14.65#273<br>[  671.946822] Hardware name: Android (Flattened Device Tree)<br>[  671.953184] Workqueue: events_unbound call_usermodehelper_exec_work<br>[  671.959449] Backtrace:<br>[  671.961901] [&lt;8020dbec&gt;] (dump_backtrace) from [&lt;8020ded0&gt;] (show_stack+0x18/0x1c)<br>[  671.969469]  r6:60060113 r5:8141c09c r4:00000000 r3:db12065c<br>[  671.975129] [&lt;8020deb8&gt;] (show_stack) from [&lt;80ba6850&gt;] (dump_stack+0x94/0xa8)<br>[  671.982356] [&lt;80ba67bc&gt;] (dump_stack) from [&lt;80350610&gt;] (warn_alloc+0xe0/0x194)<br>[  671.989664]  r6:80e09180 r5:00000000 r4:81216588 r3:db12065c<br>[  671.995326] [&lt;80350534&gt;] (warn_alloc) from [&lt;80351520&gt;] (__alloc_pages_nodemask+0xdb0/0x124c)<br>[  672.003846]  r3:0000276a r2:80e09180<br>[  672.007417]  r6:812166a4 r5:8141d880 r4:00000000<br>[  672.012039] [&lt;80350770&gt;] (__alloc_pages_nodemask) from [&lt;8021e914&gt;] (copy_process.part.5+0x114/0x1a28)<br>[  672.021345]  r10:00000000 r9:99848780 r8:00000000 r7:81447c48 r6:81216588 r5:00808111<br>[  672.029169]  r4:9b355280<br>[  672.031702] [&lt;8021e800&gt;] (copy_process.part.5) from [&lt;802203b0&gt;] (_do_fork+0xd0/0x464)<br>[  672.039617]  r10:00000000 r9:00000000 r8:9d008400 r7:00000000 r6:81216588 r5:9b62f840<br>[  672.047441]  r4:00808111<br>[  672.049972] [&lt;802202e0&gt;] (_do_fork) from [&lt;802207a4&gt;] (kernel_thread+0x38/0x40)<br>[  672.057281]  r10:00000000 r9:81422554 r8:9d008400 r7:00000000 r6:9d004500 r5:9b62f840<br>[  672.065105]  r4:81216588<br>[  672.067642] [&lt;8022076c&gt;] (kernel_thread) from [&lt;802399b4&gt;] (call_usermodehelper_exec_work+0x44/0xe0)<br>[  672.076775] [&lt;80239970&gt;] (call_usermodehelper_exec_work) from [&lt;8023cfc8&gt;] (process_one_work+0x154/0x518)<br>[  672.086338]  r5:9b62f840 r4:98b43480<br>[  672.089913] [&lt;8023ce74&gt;] (process_one_work) from [&lt;8023d3e4&gt;] (worker_thread+0x58/0x56c)<br>[  672.098003]  r10:00000088 r9:98b43480 r8:98b43498 r7:8120f900 r6:88eea038 r5:9d008424<br>[  672.105827]  r4:9d008400<br>[  672.108362] [&lt;8023d38c&gt;] (worker_thread) from [&lt;802440d8&gt;] (kthread+0x134/0x164)<br>[  672.115757]  r10:838dbe68 r9:99e7a2a8 r8:8023d38c r7:98b43480 r6:9bf0d600 r5:00000000<br>[  672.123581]  r4:99e7a280<br>[  672.126116] [&lt;80243fa4&gt;] (kthread) from [&lt;80209258&gt;] (ret_from_fork+0x14/0x3c)<br>[  672.133338]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:80243fa4<br>[  672.141162]  r4:9bf0d600 r3:00000000<br>[  672.147376] Mem-Info:<br>[  672.149667] active_anon:68540 inactive_anon:101042 isolated_anon:207<br>[  672.149667]  active_file:26674 inactive_file:17535 isolated_file:2<br>[  672.149667]  unevictable:610 dirty:0 writeback:152 unstable:0<br>[  672.149667]  slab_reclaimable:5039 slab_unreclaimable:9749<br>[  672.149667]  mapped:32149 shmem:45729 pagetables:4266 bounce:0<br>[  672.149667]  free:18378 free_pcp:59 free_cma:0<br>[  672.183745] Node 0 active_anon:274456kB inactive_anon:404216kB active_file:106672kB inactive_file:70164kB unevictable:2440kB isolated(anon):416kB isolated(file):8kB mapped:128596kB dirty:0kB writeback:544kB shmem:182916kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no<br>[  672.208055] DMA free:72984kB min:65536kB low:87004kB high:103388kB active_anon:109860kB inactive_anon:109304kB active_file:408kB inactive_file:772kB unevictable:0kB writepending:616kB present:450560kB managed:414704kB mlocked:0kB kernel_stack:5984kB pagetables:7024kB bounce:0kB free_pcp:708kB local_pcp:4kB free_cma:0kB</div><div><br></div><div><br></div><div>Regards,</div><div>Pankaj</div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-01 23:26 Page Allocation Failure and Page allocation stalls Pankaj Suryawanshi
2019-05-02  5:21 ` Valdis Klētnieks
2019-05-03 17:44   ` Pankaj Suryawanshi
2019-05-06  9:05     ` Vlastimil Babka
2019-05-09 16:47       ` Pankaj Suryawanshi

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org kernelnewbies@archiver.kernel.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/ public-inbox