Linux: simulate memory usage

Bschelst/ November 14, 2017/ Linux/ 0 comments

Using the “stress” application, you can simulate high memory usage of your system.
You may use the following command line:

stress --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1
Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *