touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #14459
[Bug 1364404] Re: qmlscene is leaking ~1.7K per second on an idle application on the phone
I re-flashed my mako today and tested it again and can reproduce the
issue every time I test it. Perhaps you didn't have the display forced
on (as described below).
How to reproduce:
1. Force the phone not to suspend:
powerd-cli display on bright &
2. Start calendar app and find the pid:
ps -ef | grep calendar.qml
3. Trace:
smemstat -l -p 5236 60 5
Change in memory (average per second):
PID Swap USS PSS RSS User Command
5236 0.0 B 1228.8 B 1228.8 B 1228.8 B phablet /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total: 0.0 B 1228.8 B 1228.8 B 1228.8 B
PID Swap USS PSS RSS User Command
5236 0.0 B 1228.8 B 1228.8 B 1228.8 B phablet /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total: 0.0 B 1228.8 B 1228.8 B 1228.8 B
PID Swap USS PSS RSS User Command
5236 0.0 B 1160.5 B 1160.5 B 1160.5 B phablet /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total: 0.0 B 1160.5 B 1160.5 B 1160.5 B
PID Swap USS PSS RSS User Command
5236 0.0 B 1297.1 B 1297.1 B 1297.1 B phablet /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total: 0.0 B 1297.1 B 1297.1 B 1297.1 B
PID Swap USS PSS RSS User Command
5236 0.0 B 1228.8 B 1228.8 B 1228.8 B phablet /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total: 0.0 B 1228.8 B 1228.8 B 1228.8 B
And one can see that one of the threads is expanding the heap by 4K
every ~3 seconds, which correlates with the heap expanding by a over 1K
a second:
strace -f -t -p 5236 -e memory
[pid 5255] 13:11:37 mprotect(0xab0f6000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:11:40 mprotect(0xab0f7000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:11:44 mprotect(0xab0f8000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:11:47 mprotect(0xab0f9000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:11:50 mprotect(0xab0fa000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:11:54 mprotect(0xab0fb000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:11:57 mprotect(0xab0fc000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:12:00 mprotect(0xab0fd000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:12:04 mprotect(0xab0fe000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:12:07 mprotect(0xab0ff000, 4096, PROT_READ|PROT_WRITE) = 0
[pid 5255] 13:12:10 mmap2(0xab100000, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xab100000
[pid 5255] 13:12:10 mprotect(0xab100000, 135168, PROT_READ|PROT_WRITE) = 0
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtdeclarative-opensource-
src in Ubuntu.
https://bugs.launchpad.net/bugs/1364404
Title:
qmlscene is leaking ~1.7K per second on an idle application on the
phone
Status in “qtdeclarative-opensource-src” package in Ubuntu:
New
Bug description:
Running apps on the phone using qmlscene and just keeping *idle* one
can see ~1.7K per second of heap growth. I monitored qmlscene for
~570 minutes and observed 58156K of anonymous mapped memory (normally
this is heap) growth.
Running smemstat on qmlscene, for example, an idle calendar app:
ps -ax | grep calendar.qml | grep -v grep
14006 ? Ssl 8:26 /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
smemstat -p 14006 60
Change in memory (average per second):
PID Swap USS PSS RSS User Command
14006 0.0 B 1706.7 B 1706.7 B 1706.7 B phablet /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene
Total: 0.0 B 1706.7 B 1706.7 B 1706.7 B
...etc
This seems to be a similar leak rate to bug 1364380 so it may be a
common library that is the root of the problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1364404/+subscriptions
References