From 0cb8b41406452c17ebcb6801e45cf114e46187fa Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 20 Oct 2016 18:23:15 +0200 Subject: memory stuff --- memory-take | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 memory-take (limited to 'memory-take') diff --git a/memory-take b/memory-take new file mode 100755 index 0000000..57289a5 --- /dev/null +++ b/memory-take @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import sys +import time + +if len(sys.argv) != 2: + print "usage: fillmem " + sys.exit() + +count = int(sys.argv[1]) + +megabyte = (0,) * (1024 * 1024 / 8) + +data = megabyte * count + +while True: + time.sleep(1) + -- cgit v1.2.3