group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #37341
[Bug 1863242] Re: [SRU] OOM errors with new kernels on resuming
@fginther Xenial does not need the backport, right?
** Also affects: ec2-hibinit-agent (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: ec2-hibinit-agent (Ubuntu Xenial)
Status: New => Incomplete
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1863242
Title:
[SRU] OOM errors with new kernels on resuming
Status in ec2-hibinit-agent package in Ubuntu:
Fix Released
Status in ec2-hibinit-agent source package in Xenial:
Incomplete
Status in ec2-hibinit-agent source package in Bionic:
Fix Released
Status in ec2-hibinit-agent source package in Eoan:
Fix Released
Bug description:
[Impact]
* During resuming EC2 instances from hibernation sometimes processes
are killed OOM manager.
[Test Case]
* Set up an EC2 instance to allow hibernation as the stop instance action.
* Start the attached Python script in a screen session to reserve 85% of the memory:
python3 mem-waster-pct.py -p 85
* Log out, hibernate, then resume the instance.
* Observe the Python script still running after resuming
[Regression Potential]
* The fix is setting memory overcommit policy to 'always overcommit'
while removing the swap file. This helps dealing with the shrinking
swap space during the swap removal. There is no expected side effect,
since processes trying to allocate excessive amount of memory would
fail with stricter policies, too.
The fix introduces a potential race condition with processes detecting
the overcommit policy:
The policy used when the hibernation took place is saved shortly after
resuming and it is restored after the swap file is removed. In this
time window other processes detect the policy as 'always overcommit',
despite it may not have been set as such before hibernation and may be
restored to a different policy after removing the swap file. Hitting
this race condition seems to be unlikely and there seem to be no good
way of avoiding it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/1863242/+subscriptions