[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Ted Gould
*** This bug is a duplicate of bug 1579799 ***
https://bugs.launchpad.net/bugs/1579799

I'm going to go ahead and mark this as a duplicate of bug 1579799, what
I think is important is mentioned there; we need to enumerate the states
that we want applications in. I don't think putting magic numbers in the
shell makes sense.

** This bug has been marked a duplicate of bug 1579799
   Need API to allow shell to choose custom OOM killer scores

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Gerry Boland
@ted, you're not wrong, the default kernel OOM killer isn't ideal for
us. But writing a new one is a lot of work, especially as we have
several different kernel releases to deal with.

What would be less ideal, but most likely good enough to fix most user-
visible bugs in the short term, is to allow shell (which is aware of the
connection between apps and prompt providers) to set OOM scores itself.

Shell can then use that to influence the kernel to not kill the app the
user is most likely going to return to. It would also help prevent
recently-used apps from being killed before older ones.

To achieve that will require changes to UAL, so I'm reopening.

** Changed in: ubuntu-app-launch (Ubuntu)
   Status: Invalid => Confirmed

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Gerry Boland
** Changed in: qtmir (Ubuntu)
 Assignee: Gerry Boland (gerboland) => Nick Dedekind (nick-dedekind)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Ted Gould
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ubuntu-app-launch (Ubuntu)
   Status: New => Confirmed

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: qtmir (Ubuntu)
   Status: New => Confirmed

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1583209] Re: OOM killer score calculations should be improved

2016-05-18 Thread Bill Filler
** Also affects: ubuntu-app-launch (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: qtmir (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: canonical-devices-system-image
   Importance: Undecided => High

** Changed in: canonical-devices-system-image
 Assignee: (unassigned) => kevin gunn (kgunn72)

** Changed in: qtmir (Ubuntu)
   Importance: Undecided => High

** Changed in: ubuntu-app-launch (Ubuntu)
   Importance: Undecided => High

** Changed in: canonical-devices-system-image
Milestone: None => backlog

** Changed in: ubuntu-app-launch (Ubuntu)
 Assignee: (unassigned) => Ted Gould (ted)

** Changed in: qtmir (Ubuntu)
 Assignee: (unassigned) => Gerry Boland (gerboland)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs