Merge ~bladernr/plainbox-provider-checkbox:1731560-vocal-memory-stress into plainbox-provider-checkbox:master

Proposed by Jeff Lane 
Status: Merged
Approved by: Jeff Lane 
Approved revision: a1a4b02b82d3cfe7f3aae06f7575cc19a3c068ad
Merged at revision: 36076482a0d11cdc9af6c94f9c61946ebea16748
Proposed branch: ~bladernr/plainbox-provider-checkbox:1731560-vocal-memory-stress
Merge into: plainbox-provider-checkbox:master
Diff against target: 12 lines (+1/-0)
1 file modified
bin/memory_stress_ng (+1/-0)
Reviewer Review Type Date Requested Status
Paul Larson Approve
Review via email: mp+333572@code.launchpad.net

Description of the change

Add markers to syslog so we can quickly identify the memory stressor that causes an OOPS

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

Easier debugging is always good, +1!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bin/memory_stress_ng b/bin/memory_stress_ng
2index a2b232b..181404a 100755
3--- a/bin/memory_stress_ng
4+++ b/bin/memory_stress_ng
5@@ -74,6 +74,7 @@ run_stressor() {
6 # fails to return in that time.
7 end_time=$((runtime*15/10))
8 echo "Running stress-ng $1 stressor for $2 seconds...."
9+ logger -t "memory_stress_ng" "Running stress-ng $1 stressor for $2 seconds..."
10 # Use "timeout" command to launch stress-ng, to catch it should it go into la-la land
11 timeout -s 14 $end_time stress-ng -k --aggressive --verify --timeout $runtime --$1 0
12 return_code="$?"

Subscribers

People subscribed via source and target branches