[OpenWrt-Devel] ath10k memory leak on 19.07 branch and mikrotik RB952Ui-5ac2nD?
Joe Ayers
joe at ayerscasa.com
Thu Dec 5 13:17:22 EST 2019
> I'm not able to reproduce it on TP-Link Archer C7 v5.
>
> > Attempting to use the hAP ac lite model RB952Ui-5ac2nD with the 5GHz
> > radio0 802.11ac seems to be unstable and consume available memory.
> > This is only enabling radio0 with no other changes and bringing wifi
> > up/down to reproduce. Am I doing something silly, or should I submit
> > a bug?
>
> uptime > /tmp/wifi.log && \
> cat /etc/openwrt_release >> /tmp/wifi.log && \
> uci set wireless.radio0.disabled=0 && \
> uci commit wireless && \
> wifi up && \
> echo "up: $(free | grep Mem:)" >> /tmp/wifi.log && \
> sleep 120 && \
> wifi down && sleep 1 && \
> echo "dn: $(free | grep Mem:)" >> /tmp/wifi.log && \
> for i in $(seq 1 10); do \
> wifi up; sleep 15; echo "up: $(free | grep Mem:)" >> /tmp/wifi.log; \
> wifi down; sleep 15; wifi down; sleep 1; wifi down; sleep 1; \
> wifi down; sleep 1; echo "dn: $(free | grep Mem:)" >> /tmp/wifi.log; \
> done; cat /tmp/wifi.log
>
> 14:06:05 up 2 min, load average: 0.24, 0.19, 0.08
> DISTRIB_ID='OpenWrt'
> DISTRIB_RELEASE='19.07.0-rc2'
> DISTRIB_REVISION='r10775-db8345d8e4'
> DISTRIB_TARGET='ath79/generic'
> DISTRIB_ARCH='mips_24kc'
> DISTRIB_DESCRIPTION='OpenWrt 19.07.0-rc2 r10775-db8345d8e4'
> DISTRIB_TAINTS=''
> up: Mem: 124528 15128 99536 76 9864 80684
> dn: Mem: 124528 14860 99076 84 10592 80596
> up: Mem: 124528 22592 91340 84 10596 72872
> dn: Mem: 124528 14884 99048 84 10596 80580
> up: Mem: 124528 22848 91084 84 10596 72616
> dn: Mem: 124528 14884 99048 84 10596 80576
> up: Mem: 124528 22848 91084 84 10596 72612
> dn: Mem: 124528 14884 99048 84 10596 80576
> up: Mem: 124528 22848 91084 84 10596 72612
> dn: Mem: 124528 14884 99048 84 10596 80576
> up: Mem: 124528 22940 90992 84 10596 72520
> dn: Mem: 124528 14916 99016 84 10596 80544
> up: Mem: 124528 22808 91124 84 10596 72652
> dn: Mem: 124528 14868 99064 84 10596 80592
> up: Mem: 124528 22900 91032 84 10596 72560
> dn: Mem: 124528 14876 99056 84 10596 80584
> up: Mem: 124528 22676 91256 84 10596 72784
> dn: Mem: 124528 14904 99028 84 10596 80556
> up: Mem: 124528 22712 91220 84 10596 72748
> dn: Mem: 124528 14936 98996 84 10596 80524
> up: Mem: 124528 22708 91224 84 10596 72752
> dn: Mem: 124528 14936 98996 84 10596 80524
>
> 15:53:35 up 1 min, load average: 1.35, 0.41, 0.14
> DISTRIB_ID='OpenWrt'
> DISTRIB_RELEASE='19.07.0-rc2'
> DISTRIB_REVISION='r10775-db8345d8e4'
> DISTRIB_TARGET='ar71xx/generic'
> DISTRIB_ARCH='mips_24kc'
> DISTRIB_DESCRIPTION='OpenWrt 19.07.0-rc2 r10775-db8345d8e4'
> DISTRIB_TAINTS=''
> up: Mem: 124624 14068 100680 120 9876 81760
> dn: Mem: 124624 14368 99524 140 10732 80996
> up: Mem: 124624 22072 91816 140 10736 73296
> dn: Mem: 124624 14360 99528 140 10736 81004
> up: Mem: 124624 22072 91816 140 10736 73292
> dn: Mem: 124624 14360 99528 140 10736 81004
> up: Mem: 124624 22068 91820 140 10736 73296
> dn: Mem: 124624 14360 99528 140 10736 81004
> up: Mem: 124624 22196 91692 140 10736 73168
> dn: Mem: 124624 14360 99528 140 10736 81004
> up: Mem: 124624 22356 91532 140 10736 73008
> dn: Mem: 124624 14392 99496 140 10736 80972
> up: Mem: 124624 22164 91724 140 10736 73200
> dn: Mem: 124624 14344 99544 140 10736 81020
> up: Mem: 124624 22956 90932 140 10736 72408
> dn: Mem: 124624 14352 99536 140 10736 81012
> up: Mem: 124624 22924 90964 140 10736 72440
> dn: Mem: 124624 14352 99536 140 10736 81012
> up: Mem: 124624 22444 91444 140 10736 72920
> dn: Mem: 124624 14384 99504 140 10736 80980
> up: Mem: 124624 22188 91700 140 10736 73176
> dn: Mem: 124624 14352 99536 140 10736 81012
>
Possibly the same symptoms don't exist on 128MB RAM devices. Also,
I'm not seeing a consistent result on the 64MB device I'm testing.
Multiple reports of 64MB RAM devices being mostly unusable:
Ref: https://github.com/openwrt/openwrt/pull/1077
"The default setup of the OpenWrt snapshots is more or less unusable
on ath10k devices with 64MB RAM (which is a common configuration for
cheap ath79 dual-band devices). How do you suggest we proceed?"
Comparable results between above and my 64MB device. However, if the
sleep time is extended the consumption is more--but doesn't seem to be
predictable. In the original post of this thread, free went down
below 8M, consuming almost 30M of RAM. I suspect this is not the
intended behavior.
19:54:32 up 33 min, load average: 0.00, 0.00, 0.00
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='19.07-SNAPSHOT'
DISTRIB_REVISION='r10779-d2d12346e8'
DISTRIB_TARGET='ar71xx/mikrotik'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='OpenWrt 19.07-SNAPSHOT r10779-d2d12346e8'
DISTRIB_TAINTS='no-all'
up: Mem: 59264 14844 35240 108
9180 28124
dn: Mem: 59264 14672 34696 116
9896 27964
up: Mem: 59264 22564 26800 116
9900 20072
dn: Mem: 59264 14720 34644 116
9900 27916
up: Mem: 59264 22500 26864 116
9900 20136
dn: Mem: 59264 14688 34676 116
9900 27948
up: Mem: 59264 21964 27400 116
9900 20672
dn: Mem: 59264 14688 34676 116
9900 27948
up: Mem: 59264 22328 27036 116
9900 20308
dn: Mem: 59264 14688 34676 116
9900 27948
up: Mem: 59264 22444 26920 116
9900 20192
dn: Mem: 59264 14688 34676 116
9900 27948
up: Mem: 59264 22552 26812 116
9900 20084
dn: Mem: 59264 14684 34680 116
9900 27952
up: Mem: 59264 22512 26852 116
9900 20124
dn: Mem: 59264 14680 34684 116
9900 27956
up: Mem: 59264 22480 26884 116
9900 20156
dn: Mem: 59264 14704 34660 116
9900 27932
up: Mem: 59264 22556 26808 116
9900 20080
dn: Mem: 59264 14692 34672 116
9900 27944
up: Mem: 59264 22588 26776 116
9900 20048
dn: Mem: 59264 14704 34660 116
9900 27932
Consuming ~23MB (~35M starting point):
root at OpenWrt:~# wifi up; for i in $(seq 1 100); do free | grep Mem
; sleep 20; done
'radio1' is disabled
'radio1' is disabled
Mem: 59264 21568 27784 116 9912 21064
Mem: 59264 23216 26136 116 9912 19420
Mem: 59264 27664 21688 116 9912 14972
Mem: 59264 32112 17240 116 9912 10524
Mem: 59264 32112 17240 116 9912 10524
Mem: 59264 32164 17188 116 9912 10472
Mem: 59264 32208 17144 116 9912 10428
Mem: 59264 32240 17112 116 9912 10396
Mem: 59264 33456 15896 116 9912 9180
Mem: 59264 35144 14208 116 9912 7492
Mem: 59264 36680 12672 116 9912 5956
Mem: 59264 38024 11328 116 9912 4612
Mem: 59264 39276 13796 116 6192 5196
Mem: 59264 40600 12472 116 6192 3872
Mem: 59264 40612 12460 116 6192 3860
Mem: 59264 40408 12664 116 6192 4064
Mem: 59264 40260 12812 116 6192 4212
Mem: 59264 40372 12700 116 6192 4100
Mem: 59264 40664 12408 116 6192 3808
Mem: 59264 40516 12556 116 6192 3956
Mem: 59264 40440 12632 116 6192 4032
Mem: 59264 40580 12492 116 6192 3892
Mem: 59264 40664 12408 116 6192 3808
Mem: 59264 40760 12312 116 6192 3712
...
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list