Comment 10 for bug 1576639

Revision history for this message
Olivier Tilloy (osomon) wrote :

Testing the linked branch on M10, and I got several occurrences of the OOM killer killing the browser app while it was the foreground app, before the browser got a chance to unload any background tab.

That happens more often when there are fewer apps in the background (because the OOM killer has fewer apps to select from).

That’s with a threshold of 200MB. I’ve bumped that value by increments of 50MB until it reached 400MB, where it seems to be stable enough (i.e. it anticipates correctly the OOM killer by killing background tabs).

Obviously a hardcoded value of 400MB isn’t realistic on the E4.5 that only has 1GB RAM, so I’m thinking of going back to a percentage. 400MB on the M10 is 20% (keep in mind this is not the amount of free RAM at any given time, it’s the sum of MemFree+Buffers+Cached).

I’ll update the branch and test it on all my devices.