Comment 3 for bug 1863242

Revision history for this message
Francis Ginther (fginther) wrote :

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.