Ram Filler is a Python program designed to intentionally fill the system's RAM until it crashes. It serves as a demonstration of how resource-intensive loops can impact a system's performance. This tool should only be used for educational or experimental purposes on systems where you can safely handle a crash.
The script continuously doubles the size of a string in an infinite loop. This rapidly consumes the system's memory, ultimately leading to a crash.
-
Introduction:
- The program introduces itself via a print statement.
print('Ram Filler\n----------\n\nThis program will crash automatically after filling ram\n')
-
User Input:
- It prompts the user to press Enter to start.
input('Enter to fill ram : ')
-
Infinite Loop:
- A string variable
data
is continuously doubled, causing memory consumption to grow exponentially.
data = '0' print('Filling ram...') while True: data += data
- A string variable
- Python 3
-
Clone the repository:
git clone https://github.com/godwin-binoy/Ram-filler.git
-
Navigate to the directory:
cd Ram-filler
-
Run the script (use caution):
python3 "Ram filler.py"
Note: Save all work and close unnecessary programs before running the script.
- Educational Purposes: Learn how memory usage works and the impact of infinite loops.
- System Testing: Test how well a system handles memory overloads (e.g., for debugging or stress testing).
- Run this program only in a controlled environment, such as a virtual machine or test system.
- Ensure no critical work is open on the system.
- Monitor system resources while running the script to observe its behavior.
Contributions are welcome! If you have ideas to improve this project or add additional features, feel free to fork the repository and submit a pull request.
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
- Inspired by the need to understand memory consumption behavior in programming.
This program is designed to crash the system by consuming all available RAM. Use it at your own risk. Only run it on systems where a crash will not result in data loss or other consequences. The creator of this repository is not responsible for any damage caused by the misuse of this program.
This program is highly destructive by design. Do not use it on production systems or devices with critical data.
https://github.com/godwin-binoy