diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2017-11-10 17:58:32 -0500 |
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2017-11-10 17:58:32 -0500 |
| commit | a1a4b02b82d3cfe7f3aae06f7575cc19a3c068ad (patch) | |
| tree | aa00722a2266a56c8790c964924fe1a1ca7789ce | |
| parent | 240d65d62b849b5fbeb13eaca30ba2f2d3ea0450 (diff) | |
add a logger command to write stressor info into syslog to more quickly identify stressors causing OOPSes lp: #1731560
| -rwxr-xr-x | bin/memory_stress_ng | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/memory_stress_ng b/bin/memory_stress_ng index a2b232b..181404a 100755 --- a/bin/memory_stress_ng +++ b/bin/memory_stress_ng @@ -74,6 +74,7 @@ run_stressor() { # fails to return in that time. end_time=$((runtime*15/10)) echo "Running stress-ng $1 stressor for $2 seconds...." + logger -t "memory_stress_ng" "Running stress-ng $1 stressor for $2 seconds..." # Use "timeout" command to launch stress-ng, to catch it should it go into la-la land timeout -s 14 $end_time stress-ng -k --aggressive --verify --timeout $runtime --$1 0 return_code="$?" |
