Comment 2 for bug 1201116

Revision history for this message
Daniel d'Andrada (dandrader) wrote : Re: [dash] combined memory leak & constant CPU usage when navigating through lenses

I agree the memory leak is one bug and the constant CPU consumption is another one. I say let's focus on the memory leak for this one.

Opening and closing video preview does increase the memory usage significantly. But it seems like pretty much anything does.
I left a device on overnight (with display off) and connected to a wifi network. Otherwise it was absolutely idle. Here are the results:

phablet@ubuntu-phablet:~$ pmap --device 3097 | grep writeable/private
mapped: 333780K writeable/private: 194276K shared: 56036K
 jul 22 17:27

phablet@ubuntu-phablet:~$ pmap --device 3097 | grep writeable/private
mapped: 334804K writeable/private: 195452K shared: 56036K
 jul 22 17:44

phablet@ubuntu-phablet:~$ pmap --device 3097 | grep writeable/private
mapped: 346068K writeable/private: 206944K shared: 56036K
 jul 22 20:22

phablet@ubuntu-phablet:~$ pmap --device 3097 | grep writeable/private
mapped: 405460K writeable/private: 265840K shared: 56036K
 jul 23 09:52

So it's memory consumption increases constantly even if the user doesn't interact with it.