~stgraber/upstart/fix-oom-containers

  • Committer: Stéphane Graber
  • Date: 2010-12-22 04:10:37 UTC
  • Revision ID: stgraber@ubuntu.com-20101222041037-37j8bbgtih8h9x7m
When setting oom_adj fails with "Operation not permitted", try with an
higher score until it works.

That fixes cases where setting oom_adj would make the job to fail when
restriction on oom_adj exist, like with containers.

On usual system, the code will behave as it used to, on containers where
oom_adj is restricted to only certain values, the code will try them one
by one until one works and will log (as warning) the various attempts.

This fixes cases where critical daemon like ssh won't start in containers
Filename Latest Rev Last Changed Committer Comment Size
..
control-alt-delete.conf 1152 14 years ago Scott James Remnant * conf/control-alt-delete.conf: Default job for Co 356 bytes Diff Download File
Makefile.am 1152 14 years ago Scott James Remnant * conf/control-alt-delete.conf: Default job for Co 174 bytes Diff Download File
rc-sysinit.conf 1209 14 years ago Scott James Remnant * conf/rc-sysinit.conf: Don't replace DEFAULT_RUNL 1.4 KB Diff Download File
rc.conf 1153 14 years ago Scott James Remnant * conf/rc.conf: This doesn't need to be an instanc 369 bytes Diff Download File
rcS.conf 1152 14 years ago Scott James Remnant * conf/control-alt-delete.conf: Default job for Co 683 bytes Diff Download File