Agree that this would be a good feature, along with others, if we were to write our own OOM killer algorithm. For reference, here is the code in the kernel:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/mm/oom_kill.c#n155 (I think we're also using the lowmemory driver from Android, but it's roughly the same with earlier penalties) I think it should take into account LRU, but then also the processes in the cgroup as for us we know that a cgroup represents an application. Killing one process in an application is kinda silly. There has be some discussion of doing this in userspace at the low memory levels which we could definitely do, then let the kernel be stupid and quick in emergencies, but that currently isn't on the list of things that UAL does (and I think it should be a different project) so marking invalid for UAL. ** Changed in: ubuntu-app-launch (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1583209 Title: OOM killer score calculations should be improved To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1583209/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
