I'm attaching the script I've been using to consume and hold memory, mem-waster-pct.py. It can be invoked with:
nohup /usr/bin/python3 /root/mem-waster-pct.py -p 85 This will cause the script to consume memory by appending data to a list until 85% of memory is consumed by all processes. It will then hold that memory until the process is killed. ** Attachment added: "mem-waster-pct.py" https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/1863242/+attachment/5337655/+files/mem-waster-pct.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863242 Title: [SRU] OOM errors with new kernels on resuming To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/1863242/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs