Created
February 10, 2022 11:43
-
-
Save KSXGitHub/7c95adc20bf5cf0a06ea09e7958ff107 to your computer and use it in GitHub Desktop.
Consume 2GiB of RAM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit -o pipefail -o nounset | |
echo 'Consuming RAM. Press Ctrl-C to stop.' >&2 | |
while true; do | |
echo {0..8388608} >/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment