SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / doc / examples / trigger-on-event / performance / generate-data.sh
1 #!/bin/bash -x
2 #
3 # Copyright (C) 2020 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
4 #
5 # SPDX-License-Identifier: MIT
6
7 cpu_stressor=$(nproc)
8
9 while read -r load delay count; do
10 stress-ng --cpu-load "$load" --cpu "$cpu_stressor" &
11 stress_ng_id=$!
12
13 # Let the workload stabilize
14 sleep 5
15
16 ./perform-experience.sh 0 "${load}_cpuload_${delay}ms" "$delay" "$count"
17 kill "$stress_ng_id"
18 wait
19 done << EOF
20 0 1 10000
21 25 1 10000
22 50 1 10000
23 75 1 10000
24 100 1 10000
25 0 10 5000
26 25 10 5000
27 50 10 5000
28 75 10 5000
29 100 10 5000
30 0 100 6000
31 25 100 6000
32 50 100 6000
33 75 100 6000
34 100 100 6000
35 0 1000 6000
36 25 1000 6000
37 50 1000 6000
38 75 1000 6000
39 100 1000 6000
40 0 10000 600
41 25 10000 600
42 50 10000 600
43 75 10000 600
44 100 10000 600
45 0 60000 100
46 25 60000 100
47 50 60000 100
48 75 60000 100
49 100 60000 60
50 EOF
This page took 0.047147 seconds and 5 git commands to generate.