Created
December 22, 2018 20:54
-
-
Save ksaylor11/1f08d5a8492ca8d5d08a15b8f3e6cc83 to your computer and use it in GitHub Desktop.
python script to eat up specified amount of memory
This file contains 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
# script to use up 512 MB of memory | |
import time | |
some_str = bytearray(512000000) | |
while True: | |
time.sleep(60) | |
print('still holding on') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment