OOM issues on Archer C7 v5

Hi all,

just noticed OOM error during loading file over wi-fi. Speed is about 32 Mbps.
dmesg output:

[89588.257792] IPv6: ADDRCONF(NETDEV_UP): vpn-dvpn: link is not ready
[176010.771813] IPv6: ADDRCONF(NETDEV_UP): vpn-dvpn: link is not ready
[199135.043531] hostapd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null),  order=0, oom_score_adj=0
[199135.056824] CPU: 0 PID: 13512 Comm: hostapd Not tainted 4.14.171 #0
[199135.064020] Stack : 00000000 800b2ba4 80500000 804b05e0 00000000 00000000 00000000 00000000
[199135.073156]         00000000 00000000 00000000 00000000 00000000 00000001 86461b30 17d4b2ed
[199135.082529]         86461bc8 00000000 00000000 0000e960 00000038 80448498 00000008 00000000
[199135.092006]         0000034a 8107344c 00000349 6d6d3a20 86461b10 80000000 86461d20 80489120
[199135.102377]         000000d3 00200000 ffffffff 0000012c 00000018 8027ffd4 00000000 80630000
[199135.111676]         ...
[199135.114638] Call Trace:
[199135.114657] [<800b2ba4>] 0x800b2ba4
[199135.121001] [<80500000>] 0x80500000
[199135.124848] [<80448498>] 0x80448498
[199135.128576] [<8027ffd4>] 0x8027ffd4
[199135.132265] [<8006a56c>] 0x8006a56c
[199135.136631] [<8006a574>] 0x8006a574
[199135.141515] [<800f670c>] 0x800f670c
[199135.145939] [<800f59e4>] 0x800f59e4
[199135.150427] [<800f65ac>] 0x800f65ac
[199135.154130] [<800faab0>] 0x800faab0
[199135.157847] [<800f133c>] 0x800f133c
[199135.163422] [<800f32ec>] 0x800f32ec
[199135.167125] [<8011d8ec>] 0x8011d8ec
[199135.172189] [<80119e34>] 0x80119e34
[199135.175897] [<8011e0f4>] 0x8011e0f4
[199135.181532] [<80071800>] 0x80071800
[199135.185237] [<800a8328>] 0x800a8328
[199135.191810] [<800a8a2c>] 0x800a8a2c
[199135.195506] [<800a4310>] 0x800a4310
[199135.201487] [<8044a40c>] 0x8044a40c
[199135.205190] [<80155a00>] 0x80155a00
[199135.209781] [<8007717c>] 0x8007717c
[199135.213484]
[199135.215106] Mem-Info:
[199135.217550] active_anon:17496 inactive_anon:75 isolated_anon:0
[199135.217550]  active_file:45 inactive_file:127 isolated_file:0
[199135.217550]  unevictable:0 dirty:0 writeback:0 unstable:0
[199135.217550]  slab_reclaimable:256 slab_unreclaimable:1425
[199135.217550]  mapped:2 shmem:10132 pagetables:80 bounce:0
[199135.217550]  free:4096 free_pcp:12 free_cma:0
[199135.252404] Node 0 active_anon:69984kB inactive_anon:300kB active_file:180kB inactive_file:508kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:8kB dirty:0kB writeback:0kB shmem:40528kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[199135.276681] Normal free:16320kB min:16384kB low:20480kB high:24576kB active_anon:69984kB inactive_anon:300kB active_file:180kB inactive_file:508kB unevictable:0kB writepending:0kB present:131072kB managed:124516kB mlocked:0kB kernel_stack:328kB pagetables:320kB bounce:0kB free_pcp:48kB local_pcp:48kB free_cma:0kB
[199135.306225] lowmem_reserve[]: 0 0
[199135.309836] Normal: 384*4kB (UME) 234*8kB (UME) 73*16kB (UME) 31*32kB (UME) 7*64kB (UME) 3*128kB (UME) 1*256kB (E) 3*512kB (ME) 4*1024kB (ME) 2*2048kB (M) 0*4096kB = 16384kB
[199135.326270] 10304 total pagecache pages
[199135.330357] 0 pages in swap cache
[199135.333873] Swap cache stats: add 0, delete 0, find 0/0
[199135.340412] Free swap  = 0kB
[199135.343478] Total swap = 0kB
[199135.346541] 32768 pages RAM
[199135.349945] 0 pages HighMem/MovableOnly
[199135.354102] 1639 pages reserved
[199135.357438] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[199135.367312] [  586]     0   586      315       28       5       0        0             0 ubusd
[199135.376334] [  587]     0   587      231        9       4       0        0             0 askfirst
[199135.386798] [  604]     0   604      257       12       4       0        0             0 urngd
[199135.397892] [ 1029]     0  1029      324       45       5       0        0             0 logd
[199135.408918] [ 1059]     0  1059      541       75       3       0        0             0 rpcd
[199135.419328] [ 1156]     0  1156      270       11       4       0        0             0 dropbear
[199135.429957] [ 1291]     0  1291      379       38       4       0        0             0 odhcpd
[199135.439081] [ 1350]     0  1350      335       28       4       0        0             0 uhttpd
[199135.449454] [ 1598]     0  1598     1049      163       4       0        0             0 openvpn
[199135.459675] [ 1877]     0  1877      304       12       4       0        0             0 ntpd
[199135.469763] [12139]     0 12139      442       46       4       0        0             0 netifd
[199135.480053] [12365]     0 12365      303       10       4       0        0             0 udhcpc
[199135.491255] [13488]     0 13488      445       34       3       0        0             0 hostapd
[199135.501530] [13512]     0 13512      445       38       5       0        0             0 hostapd
[199135.512738] [13698]   453 13698     6884     6569       9       0        0             0 dnsmasq
[199135.522976] [23557]     0 23557     6579      299      10       0        0             0 openconnect
[199135.533486] Out of memory: Kill process 13698 (dnsmasq) score 211 or sacrifice child
[199135.541633] Killed process 13698 (dnsmasq) total-vm:27536kB, anon-rss:26268kB, file-rss:4kB, shmem-rss:4kB
[199990.409205] hostapd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null),  order=0, oom_score_adj=0
[199990.421935] CPU: 0 PID: 13488 Comm: hostapd Not tainted 4.14.171 #0
[199990.428517] Stack : 00000000 800b2ba4 80500000 804b05e0 00000000 00000000 00000000 00000000
[199990.437316]         00000000 00000000 00000000 00000000 00000000 00000001 85ab7b30 bdc9494b
[199990.446101]         85ab7bc8 00000000 00000000 0000fd40 00000038 80448498 00000008 00000000
[199990.454845]         0000038b f687f818 0000038a 6d6d3a20 85ab7b10 80000000 85ab7d20 80489120
[199990.463593]         000000c9 00200000 ffffffff 0000187c 00000018 8027ffd4 00000000 80630000
[199990.472433]         ...
[199990.475077] Call Trace:
[199990.475088] [<800b2ba4>] 0x800b2ba4
[199990.481382] [<80500000>] 0x80500000
[199990.485175] [<80448498>] 0x80448498
[199990.488875] [<8027ffd4>] 0x8027ffd4
[199990.492565] [<8006a56c>] 0x8006a56c
[199990.496297] [<8006a574>] 0x8006a574
[199990.500025] [<800f670c>] 0x800f670c
[199990.503720] [<800f59e4>] 0x800f59e4
[199990.507444] [<800f65ac>] 0x800f65ac
[199990.511141] [<800faab0>] 0x800faab0
[199990.514855] [<800f133c>] 0x800f133c
[199990.518569] [<800f32ec>] 0x800f32ec
[199990.522270] [<8011d8ec>] 0x8011d8ec
[199990.526012] [<80119e34>] 0x80119e34
[199990.529714] [<8011e0f4>] 0x8011e0f4
[199990.533588] [<80071800>] 0x80071800
[199990.537333] [<800a8328>] 0x800a8328
[199990.541077] [<800a8a2c>] 0x800a8a2c
[199990.544800] [<8044a40c>] 0x8044a40c
[199990.548503] [<802f6f18>] 0x802f6f18
[199990.552193] [<80155a00>] 0x80155a00
[199990.555909] [<8007717c>] 0x8007717c
[199990.559613] [<802f8cb4>] 0x802f8cb4
[199990.563308]
[199990.564946] Mem-Info:
[199990.567394] active_anon:18422 inactive_anon:74 isolated_anon:0
[199990.567394]  active_file:100 inactive_file:192 isolated_file:0
[199990.567394]  unevictable:0 dirty:0 writeback:0 unstable:0
[199990.567394]  slab_reclaimable:251 slab_unreclaimable:1443
[199990.567394]  mapped:2 shmem:10132 pagetables:81 bounce:0
[199990.567394]  free:4092 free_pcp:5 free_cma:0
[199990.601446] Node 0 active_anon:73688kB inactive_anon:296kB active_file:400kB inactive_file:768kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:8kB dirty:0kB writeback:0kB shmem:40528kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[199990.625153] Normal free:16368kB min:16384kB low:20480kB high:24576kB active_anon:73688kB inactive_anon:296kB active_file:400kB inactive_file:768kB unevictable:0kB writepending:0kB present:131072kB managed:124516kB mlocked:0kB kernel_stack:336kB pagetables:324kB bounce:0kB free_pcp:20kB local_pcp:20kB free_cma:0kB
[199990.654060] lowmem_reserve[]: 0 0
[199990.657625] Normal: 46*4kB (UME) 63*8kB (UE) 16*16kB (UME) 30*32kB (UME) 14*64kB (UME) 8*128kB (UM) 9*256kB (UME) 4*512kB (UE) 2*1024kB (E) 3*2048kB (M) 0*4096kB = 16368kB
[199990.673692] 10424 total pagecache pages
[199990.677793] 0 pages in swap cache
[199990.681307] Swap cache stats: add 0, delete 0, find 0/0
[199990.687439] Free swap  = 0kB
[199990.690506] Total swap = 0kB
[199990.693562] 32768 pages RAM
[199990.696567] 0 pages HighMem/MovableOnly
[199990.701255] 1639 pages reserved
[199990.704624] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[199990.713561] [  586]     0   586      315       28       5       0        0             0 ubusd
[199990.722590] [  587]     0   587      231        9       4       0        0             0 askfirst
[199990.731922] [  604]     0   604      257       12       4       0        0             0 urngd
[199990.740971] [ 1029]     0  1029      324       45       5       0        0             0 logd
[199990.749909] [ 1059]     0  1059      541       75       3       0        0             0 rpcd
[199990.759151] [ 1156]     0  1156      270       11       4       0        0             0 dropbear
[199990.768885] [ 1291]     0  1291      379       38       4       0        0             0 odhcpd
[199990.778309] [ 1350]     0  1350      335       28       4       0        0             0 uhttpd
[199990.787433] [ 1598]     0  1598     1049      163       4       0        0             0 openvpn
[199990.796692] [ 1877]     0  1877      304       12       4       0        0             0 ntpd
[199990.805625] [12139]     0 12139      442       46       4       0        0             0 netifd
[199990.814729] [12365]     0 12365      303       10       4       0        0             0 udhcpc
[199990.823802] [13488]     0 13488      445       34       3       0        0             0 hostapd
[199990.833288] [13512]     0 13512      445       38       5       0        0             0 hostapd
[199990.843009] [23557]     0 23557     6579     1535      10       0        0             0 openconnect
[199990.852838] [25685]   453 25685     6570     6258      10       0        0             0 dnsmasq
[199990.862056] Out of memory: Kill process 25685 (dnsmasq) score 201 or sacrifice child
[199990.870179] Killed process 25685 (dnsmasq) total-vm:26280kB, anon-rss:25024kB, file-rss:4kB, shmem-rss:4kB
[199992.018484] oom_reaper: reaped process 25685 (dnsmasq), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
[204654.916256] netifd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null),  order=0, oom_score_adj=0
[204654.931424] CPU: 0 PID: 12139 Comm: netifd Not tainted 4.14.171 #0
[204654.940253] Stack : 00000000 800b2ba4 80500000 804b05e0 00000000 00000000 00000000 00000000
[204654.951058]         00000000 00000000 00000000 00000000 00000000 00000001 877ebb30 096e329e
[204654.963283]         877ebbc8 00000000 00000000 000111b0 00000038 80448498 00000008 00000000
[204654.974553]         000003ce c10d2c76 000003cd 6d6d3a20 877ebb10 80000000 877ebd20 80489120
[204654.983340]         000000c0 00200000 ffffffff 00001764 00000010 8027ffd4 00000000 80630000
[204654.996447]         ...
[204654.999080] Call Trace:
[204654.999092] [<800b2ba4>] 0x800b2ba4
[204655.005438] [<80500000>] 0x80500000
[204655.009169] [<80448498>] 0x80448498
[204655.017117] [<8027ffd4>] 0x8027ffd4
[204655.020884] [<8006a56c>] 0x8006a56c
[204655.028505] [<8006a574>] 0x8006a574
[204655.032289] [<800f670c>] 0x800f670c
[204655.040179] [<800f59e4>] 0x800f59e4
[204655.043889] [<800f65ac>] 0x800f65ac
[204655.047576] [<800faab0>] 0x800faab0
[204655.055240] [<800f133c>] 0x800f133c
[204655.058960] [<800f32ec>] 0x800f32ec
[204655.066968] [<8011d8ec>] 0x8011d8ec
[204655.070738] [<800f0f5c>] 0x800f0f5c
[204655.078370] [<80119e34>] 0x80119e34
[204655.082144] [<8011e0f4>] 0x8011e0f4
[204655.085834] [<800bf300>] 0x800bf300
[204655.091854] [<80071800>] 0x80071800
[204655.095565] [<800a8328>] 0x800a8328
[204655.102942] [<800a8a2c>] 0x800a8a2c
[204655.106639] [<800a572c>] 0x800a572c
[204655.110376] [<800bcdc4>] 0x800bcdc4
[204655.116778] [<8044a40c>] 0x8044a40c
[204655.120522] [<80185b28>] 0x80185b28
[204655.128861] [<800c9ea4>] 0x800c9ea4
[204655.136321] [<8007717c>] 0x8007717c
[204655.142168]
[204655.143805] Mem-Info:
[204655.146256] active_anon:17336 inactive_anon:74 isolated_anon:0
[204655.146256]  active_file:32 inactive_file:116 isolated_file:0
[204655.146256]  unevictable:0 dirty:0 writeback:0 unstable:0
[204655.146256]  slab_reclaimable:249 slab_unreclaimable:1419
[204655.146256]  mapped:2 shmem:10132 pagetables:80 bounce:0
[204655.146256]  free:4104 free_pcp:35 free_cma:0
[204655.183194] Node 0 active_anon:69344kB inactive_anon:296kB active_file:128kB inactive_file:464kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:8kB dirty:0kB writeback:0kB shmem:40528kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[204655.208781] Normal free:16352kB min:16384kB low:20480kB high:24576kB active_anon:69344kB inactive_anon:296kB active_file:128kB inactive_file:464kB unevictable:0kB writepending:0kB present:131072kB managed:124516kB mlocked:0kB kernel_stack:328kB pagetables:320kB bounce:0kB free_pcp:140kB local_pcp:140kB free_cma:0kB
[204655.242188] lowmem_reserve[]: 0 0
[204655.245716] Normal: 306*4kB (UME) 155*8kB (UME) 34*16kB (UME) 22*32kB (UME) 13*64kB (UME) 2*128kB (M) 3*256kB (UE) 5*512kB (ME) 2*1024kB (E) 3*2048kB (UM) 0*4096kB = 16320kB
[204655.266217] 10280 total pagecache pages
[204655.270321] 0 pages in swap cache
[204655.278160] Swap cache stats: add 0, delete 0, find 0/0
[204655.287871] Free swap  = 0kB
[204655.294794] Total swap = 0kB
[204655.297863] 32768 pages RAM
[204655.300884] 0 pages HighMem/MovableOnly
[204655.308766] 1639 pages reserved
[204655.312159] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[204655.325157] [  586]     0   586      315       28       5       0        0             0 ubusd
[204655.338447] [  587]     0   587      231        9       4       0        0             0 askfirst
[204655.352288] [  604]     0   604      257       12       4       0        0             0 urngd
[204655.365122] [ 1029]     0  1029      324       45       5       0        0             0 logd
[204655.377773] [ 1059]     0  1059      541       75       3       0        0             0 rpcd
[204655.390868] [ 1156]     0  1156      270       11       4       0        0             0 dropbear
[204655.408014] [ 1291]     0  1291      379       38       4       0        0             0 odhcpd
[204655.421803] [ 1350]     0  1350      335       28       4       0        0             0 uhttpd
[204655.434350] [ 1598]     0  1598     1049      163       4       0        0             0 openvpn
[204655.447524] [ 1877]     0  1877      304       12       4       0        0             0 ntpd
[204655.459914] [12139]     0 12139      442       46       4       0        0             0 netifd
[204655.471257] [12365]     0 12365      303       10       4       0        0             0 udhcpc
[204655.488042] [13488]     0 13488      445       34       3       0        0             0 hostapd
[204655.500601] [13512]     0 13512      445       38       5       0        0             0 hostapd
[204655.511989] [23557]     0 23557     6579      728      10       0        0             0 openconnect
[204655.525260] [25717]   453 25717     6291     5979       9       0        0             0 dnsmasq
[204655.538265] Out of memory: Kill process 25717 (dnsmasq) score 192 or sacrifice child
[204655.546412] Killed process 25717 (dnsmasq) total-vm:25164kB, anon-rss:23908kB, file-rss:4kB, shmem-rss:4kB
[204657.083079] oom_reaper: reaped process 25717 (dnsmasq), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
[205274.873397] logd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null),  order=0, oom_score_adj=0
[205274.890098] CPU: 0 PID: 1029 Comm: logd Not tainted 4.14.171 #0
[205274.898275] Stack : 00000000 800b2ba4 80500000 804b05e0 00000000 00000000 00000000 00000000
[205274.909583]         00000000 00000000 00000000 00000000 00000000 00000001 87253b30 b3e7bd8c
[205274.920711]         87253bc8 00000000 00000000 00012698 00000038 80448498 00000008 00000000
[205274.933413]         00000414 61216b5d 00000413 6d3a206c 87253b10 80000000 87253d20 80489120
[205274.945730]         00000071 00200000 ffffffff 00000dd2 00000003 8027ffd4 00000000 80630000
[205274.958178]         ...
[205274.960807] Call Trace:
[205274.960818] [<800b2ba4>] 0x800b2ba4
[205274.969346] [<80500000>] 0x80500000
[205274.973081] [<80448498>] 0x80448498
[205274.976778] [<8027ffd4>] 0x8027ffd4
[205274.986093] [<8006a56c>] 0x8006a56c
[205274.989846] [<8006a574>] 0x8006a574
[205274.997870] [<800f670c>] 0x800f670c
[205275.001651] [<800f59e4>] 0x800f59e4
[205275.010608] [<800f65ac>] 0x800f65ac
[205275.014312] [<800faab0>] 0x800faab0
[205275.022362] [<800f133c>] 0x800f133c
[205275.026081] [<800f32ec>] 0x800f32ec
[205275.034038] [<8011d8ec>] 0x8011d8ec
[205275.037790] [<80119e34>] 0x80119e34
[205275.041543] [<8011e0f4>] 0x8011e0f4
[205275.049298] [<80071800>] 0x80071800
[205275.053010] [<800a8328>] 0x800a8328
[205275.058656] [<800a8a2c>] 0x800a8a2c
[205275.062354] [<800bcdc4>] 0x800bcdc4
[205275.066059] [<8044a40c>] 0x8044a40c
[205275.072049] [<80185b28>] 0x80185b28
[205275.075783] [<8007717c>] 0x8007717c
[205275.079527]
[205275.085035] Mem-Info:
[205275.087491] active_anon:15130 inactive_anon:74 isolated_anon:0
[205275.087491]  active_file:109 inactive_file:165 isolated_file:0
[205275.087491]  unevictable:0 dirty:0 writeback:0 unstable:0
[205275.087491]  slab_reclaimable:250 slab_unreclaimable:1429
[205275.087491]  mapped:2 shmem:10132 pagetables:80 bounce:0
[205275.087491]  free:4099 free_pcp:27 free_cma:0
[205275.125463] Node 0 active_anon:60520kB inactive_anon:296kB active_file:436kB inactive_file:660kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:8kB dirty:0kB writeback:0kB shmem:40528kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[205275.152827] Normal free:16428kB min:16384kB low:20480kB high:24576kB active_anon:60520kB inactive_anon:296kB active_file:436kB inactive_file:660kB unevictable:0kB writepending:0kB present:131072kB managed:124516kB mlocked:0kB kernel_stack:336kB pagetables:320kB bounce:0kB free_pcp:108kB local_pcp:108kB free_cma:0kB
[205275.186168] lowmem_reserve[]: 0 0
[205275.194228] Normal: 321*4kB (UM) 113*8kB (UM) 36*16kB (UM) 10*32kB (UM) 89*64kB (UM) 20*128kB (UM) 2*256kB (M) 5*512kB (UM) 2*1024kB (U) 0*2048kB 0*4096kB = 16460kB
[205275.213150] 10406 total pagecache pages
[205275.217209] 0 pages in swap cache
[205275.224678] Swap cache stats: add 0, delete 0, find 0/0
[205275.230212] Free swap  = 0kB
[205275.233273] Total swap = 0kB
[205275.238465] 32768 pages RAM
[205275.241444] 0 pages HighMem/MovableOnly
[205275.245493] 1639 pages reserved
[205275.255134] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[205275.268509] [  586]     0   586      315       28       5       0        0             0 ubusd
[205275.279686] [  587]     0   587      231        9       4       0        0             0 askfirst
[205275.291330] [  604]     0   604      257       12       4       0        0             0 urngd
[205275.304473] [ 1029]     0  1029      324       45       5       0        0             0 logd
[205275.318240] [ 1059]     0  1059      541       75       3       0        0             0 rpcd
[205275.329194] [ 1156]     0  1156      270       11       4       0        0             0 dropbear
[205275.346145] [ 1291]     0  1291      379       38       4       0        0             0 odhcpd
[205275.358799] [ 1350]     0  1350      335       28       4       0        0             0 uhttpd
[205275.370085] [ 1598]     0  1598     1049      163       4       0        0             0 openvpn
[205275.383472] [ 1877]     0  1877      304       12       4       0        0             0 ntpd
[205275.396550] [12139]     0 12139      442       46       4       0        0             0 netifd
[205275.409732] [12365]     0 12365      303       10       4       0        0             0 udhcpc
[205275.422920] [13488]     0 13488      445       34       3       0        0             0 hostapd
[205275.438581] [13512]     0 13512      445       38       5       0        0             0 hostapd
[205275.447756] [23557]     0 23557     6579      972      10       0        0             0 openconnect
[205275.463088] [25935]   453 25935     3826     3529       9       0        0             0 dnsmasq
[205275.476574] Out of memory: Kill process 25935 (dnsmasq) score 113 or sacrifice child
[205275.489134] Killed process 25935 (dnsmasq) total-vm:15304kB, anon-rss:14108kB, file-rss:4kB, shmem-rss:4kB
[205277.787142] oom_reaper: reaped process 25935 (dnsmasq), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

Sometimes I can see next:

root@OpenWrt:~# dmesg
-ash: can't fork: Out of memory
root@OpenWrt:~# top
-ash: can't fork: Out of memory
root@OpenWrt:~# top
-ash: can't fork: Out of memory
root@OpenWrt:~# top
-ash: can't fork: Out of memory
root@OpenWrt:~# top
-ash: can't fork: Out of memory
root@OpenWrt:~# top
-ash: can't fork: Out of memory
root@OpenWrt:~# top
-ash: can't fork: Out of memory

top output

25938     1 dnsmasq  R    13416  11%  61% /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
    7     2 root     SW       0   0%  23% [ksoftirqd/0]
 1029     1 root     S     1296   1%   8% /sbin/logd -S 64
23505     2 root     IW       0   0%   6% [kworker/0:1]

I have adblock with all sources.

Any ideas why it happens?

How did you copy it? Web interface or ssh?

Reboot the device if you haven’t already.

When it comes up, how much memory and flash space are available? (df; free; )

Then, compare with the size of the file you copied/uploaded. At a guess I’d say the file is bigger.

It is general download from google drive via web browser. Just downloading stopped - it normalized. When I started download again - OOM. So it is somehow related. I tried to do free but see OOM error last value was:

free
              total        used        free      shared  buff/cache   available
Mem:         124516       59012       19628       40528       45876           0
Swap:             0           0           0
root@OpenWrt:~# free
              total        used        free      shared  buff/cache   available
Mem:         124516       59844       18796       40528       45876           0
Swap:             0           0           0
root@OpenWrt:~# free
-ash: can't fork: Out of memory
root@OpenWrt:~# free
-ash: can't fork: Out of memory
root@OpenWrt:~# free

df -h:

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.8M      2.8M         0 100% /rom
tmpfs                    60.8M     39.6M     21.2M  65% /tmp
/dev/mtdblock9           10.7M      4.3M      6.4M  40% /overlay
overlayfs:/overlay       10.7M      4.3M      6.4M  40% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:~# df -h
-ash: can't fork: Out of memory
root@OpenWrt:~# df -h
-ash: can't fork: Out of memory

Values after reboot:

free
              total        used        free      shared  buff/cache   available
Mem:         124516       29416       76256        4192       18844       59972
Swap:             0           0           0


 df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.8M      2.8M         0 100% /rom
tmpfs                    60.8M      5.3M     55.5M   9% /tmp
/dev/mtdblock9           10.7M      4.3M      6.4M  40% /overlay
overlayfs:/overlay       10.7M      4.3M      6.4M  40% /
tmpfs                   512.0K         0    512.0K   0% /dev

1 Like

Please connect via a wired connection and run these three commands

opkg update
opkg remove kmod-ath10k-ct
opkg install kmod-ath10k-ct-smallbuffers

Then reboot the router.

3 Likes

That last column shows that memory has definitely been exhausted.

How large is the file definitions ?

Edit: I think @patrakov just hit the nail on the head - I was just wondering why so much memory was being held by buffers/cache

1 Like

Thank you! now much better. Do you aware of side effects using kmod-ath10k-ct-smallbuffers instead of kmod-ath10k-ct?

For the archer c7, the upsides probably exceed the downsides.

Using smaller buffer sizes, like kmod-ath10k-ct-smallbuffers does, can reduce wireless performance. Wireless standards starting from 802.11n and upwards are based on aggregating traffic to improve performance, the used buffers are needed to service the firmware (which is almost a fullmac design in case of the ath10k) in time and with sufficient headroom for all circumstances, reducing this is necessary on low RAM devices (as you noticed, ath10k is very memory hungry, especially with many connected clients and fast speeds) but can have a negative impact on the overall wireless performance.

1 Like

Thank you all guys for your help and explanations. It was really fast.

Are there any cases where you can drop caches (eg. echo 3 > /proc/sys/vm/drop_caches ) , or is this issue caused by any long running process that uses lots of memory?

It's allocated by the wireless drivers (ath10k/ ath10k-ct), depending on the number of connected clients/ STAs and other runtime parameters.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.