apps die randomly when the system hits ~80% RAM usage

Bug #1267092 reported by Oliver Grawert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-mir (Ubuntu)
New
Undecided
Unassigned

Bug Description

during tests with disabling swap (http://paste.ubuntu.com/6714261/) it turns out that you can in max run 4 webapps on maguro ... thne flicking through them by swiping from the right edge a few times will stop at some point. going back to the home screen you will notice that one or two thumbnails are empty and the apps are dead...

doing the same with only native apps i can have up to 6 apps open until teh same behavior shows.

both of this is on maguro ... but i remember testing the same on mako about 6 months ago when we last discussed disabling swap and back then i noticed the same, just with about twice the amount of apps open (since mako has more ram)

Oliver Grawert (ogra)
summary: - apps die randomly when the system hits 100% RAM usage
+ apps die randomly when the system hits ~80% RAM usage
Revision history for this message
Oliver Grawert (ogra) wrote :

/* drivers/misc/lowmemorykiller.c
 *
 * The lowmemorykiller driver lets user-space specify a set of memory thresholds
 * where processes with a range of oom_adj values will get killed. Specify the
 * minimum oom_adj values in /sys/module/lowmemorykiller/parameters/adj and the
 * number of free pages in /sys/module/lowmemorykiller/parameters/minfree. Both
 * files take a comma separated list of numbers in ascending order.
 *
 * For example, write "0,8" to /sys/module/lowmemorykiller/parameters/adj and
 * "1024,4096" to /sys/module/lowmemorykiller/parameters/minfree to kill processes
 * with a oom_adj value of 8 or higher when the free memory drops below 4096 pages
 * and kill processes with a oom_adj value of 0 or higher when the free memory
 * drops below 1024 pages.
 *
 * The driver considers memory used for caches to be free, but if a large
 * percentage of the cached memory is locked this can be very inaccurate
 * and processes may not get killed until the normal oom killer is triggered.
 *

root@ubuntu-phablet:/# cat /sys/module/lowmemorykiller/parameters/adj
0,1,6,12
root@ubuntu-phablet:/# cat /sys/module/lowmemorykiller/parameters/minfree
1536,2048,4096,16384
root@ubuntu-phablet:/# grep oom /etc/init/lightdm.override
oom score -10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.