I did some extensive stress-testing on an M10, an MX4 and a E4.5, all
running the latest rc-proposed image. I launched a number of
applications (some native, some webapps) in the background, and then
opened a number of tabs in the browser app (with the mechanism to unload
tabs temporarily disabled).

I observed that even when under quite some pressure (with more than 10
tabs open and active, including memory-hungry apps like google plus,
hangouts, google docs, google maps, twitter, facebook), the free memory
(MemFree+Buffers+Cached) rarely seems to go below 200MB (more often on
the E4.5 than on the other two devices, which is expected because the
E4.5 has 1GB RAM whereas the other two have 2GB RAM).

I had to push the limits quite a bit to get the system OOM killer to
kick in, and it never killed the browser app, always a background app.

Those numbers and observations seem to indicate that an arbitrary
threshold of 200MB should work reasonably well, instead of a percentage
of the available memory. I’ll experiment further with that value.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1576639

Title:
  memory threshold is too high

Status in Canonical Device Images:
  New
Status in Canonical System Image:
  Confirmed
Status in webbrowser-app package in Ubuntu:
  Confirmed

Bug description:
  When opening new tabs in the browser, it decides if it should close
  existing ones based on level of free memory available in the system.
  My understanding is that this is currenly set to 30% percentage of
  memory in the device.

  There are two issues with this approach and setting:
  1) a percentage means that the threshold changes from device to device. While 
theamount of memory needed to open a webpage is not device specific. For 
example at 30%, the browser would close open tabs if there less than 1.2Gb mem 
free in a 4Gb device, but will only need 300Mb free on a 1Gb device. This is a 
very large difference.

  2) In M10 with 2Gb it requires 600mb free. From idle, just opening the
  gmail in the browser, takes the avilable system memory below this.
  This means that in 2gb devices the threshold is never met, and the
  browser never runs more than one tab at the same time.  this impacts
  user experience, specially in desktop mode. For example is not
  possible to open a document in the browser while attending a hangout.

  How to reproduce
  open a tab in the browser, go to youtube and play any video
  then open a new tab

  expected:
  music/sound in the video continues to play

  actual in m10:
  sound stops playing shortly after opening the tab

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-device-images/+bug/1576639/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to