diff options
| author | PMR <pmr@pmr-lander> | 2017-01-19 17:22:28 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2017-01-19 17:22:28 +0000 |
| commit | 18c78cf44dfc22a087787ce89d0c4a0884ad5753 (patch) | |
| tree | 0034245165f49e8927bbd4f0399f4dfe04b011fe | |
| parent | 85361fc323d5dc5ae66db4202cf4914384ef3f99 (diff) | |
| parent | 97398b845dff818d4530b85aa4436537bcefc989 (diff) | |
Merge #315037 from ~rodsmith/plainbox-provider-checkbox:add-numa-testing
| -rwxr-xr-x | bin/memory_stress_ng | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/memory_stress_ng b/bin/memory_stress_ng index ab65e86..e619772 100755 --- a/bin/memory_stress_ng +++ b/bin/memory_stress_ng @@ -114,6 +114,8 @@ echo "Variable run time is $variable_time seconds per stressor" had_error=0 +numa_nodes=$(numactl --hardware | grep available | head -n 1 | cut -f 2 -d " ") + # NOTE: Specify stressors in two arrays rather than rely on stress-ng's # --class memory,vm option for two reasons: # 1. We want to run some stressors (those that exhaust all memory) @@ -130,6 +132,9 @@ crt_stressors=("bsearch" "context" "hsearch" "lsearch" "matrix" \ "memcpy" "null" "pipe" "qsort" "stack" "str" "stream" \ "tsearch" "vm-rw" "wcs" "zero" "mlock" "mmapfork" "mmapmany" \ "mremap" "shm-sysv" "vm-splice") +if [ "$numa_nodes" -gt 1 ]; then + crt_stressors+=("numa") +fi crt_runtime=$((${#crt_stressors[@]}*$base_time)) # Variable-run-time stressors -- run them longer on systems with more RAM.... @@ -152,7 +157,7 @@ echo "*******************************************************************" if [ $had_error = "0" ] ; then echo "** stress-ng memory test passed!" else - echo "** stress-ng memory test failed; most recent error was $return_code" + echo "** stress-ng memory test failed; most recent error was $result" fi echo "*******************************************************************" exit $result |
