diff options
| author | PMR <pmr@pmr-lander> | 2017-02-23 19:35:35 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2017-02-23 19:35:35 +0000 |
| commit | b8e5fb6158ef5ee9b819228aee58266a3b23506b (patch) | |
| tree | 8d4ad8cd01a2e6324d55f1c845947eb60afe92a4 | |
| parent | 122d0c4abd73de6c441f12ad48adbf411e0b315f (diff) | |
| parent | 4cfbd35b20fb48ccb551b3aa1d9caf17a4acde9b (diff) | |
Merge #318144 from ~rodsmith/plainbox-provider-checkbox:fix-no-numactl
| -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 e619772..35c7725 100755 --- a/bin/memory_stress_ng +++ b/bin/memory_stress_ng @@ -114,7 +114,12 @@ 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 " ") +command -v numactl >/dev/null 2>&1 +if [ $? == 0 ] ; then + numa_nodes=$(numactl --hardware | grep available | head -n 1 | cut -f 2 -d " ") +else + numa_nodes=1 +fi # NOTE: Specify stressors in two arrays rather than rely on stress-ng's # --class memory,vm option for two reasons: |
