From 80af05d437ff1ccd5e2090d5536e717302f9f82b Mon Sep 17 00:00:00 2001 From: Rod Smith Date: Fri, 12 Feb 2016 09:49:26 -0500 Subject: Added new memory test based on stress-ng --- bin/memory_test_ng | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100755 bin/memory_test_ng (limited to 'bin') diff --git a/bin/memory_test_ng b/bin/memory_test_ng new file mode 100755 index 00000000..50410689 --- /dev/null +++ b/bin/memory_test_ng @@ -0,0 +1,146 @@ +#!/bin/bash + +# Script to perform memory stress tests +# +# Copyright (c) 2016 Canonical Ltd. +# +# Authors +# Rod Smith +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# The purpose of this script is to run memory stress tests using the +# stress-ng program. It also happens to impose a heavy CPU load, but +# that's a side effect of the memory stressors, not their purpose. +# +# Usage: +# memory_test_ng [ --base-time