This program is provided for educational purposes only.
It intentionally allocates large amounts of memory and may heavily use CPU resources. Running it can slow down or freeze your system or trigger the OS OOM killer.
Do not use on production or critical systems.
Use at your own risk.
A simple C script to allocate RAM and crank up CPU
to compile this program, run this command (linux target)
gcc -o ./memcranker ./memcranker.c
Then, to execute this program with default heap (4gb if not modified):
./memcranker
If you want to allocate specifically 1gb of ram, for example:
./memcranker 1024
This tool is good if you want to stress test systems for example.
If you want to give feedback, please open an issue !
Made with love by FrenchPythonLover