SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / doc / examples / trigger-on-event / performance / generate-data.sh
CommitLineData
2463b787
JR
1#!/bin/bash -x
2#
3# Copyright (C) 2020 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
4#
5# SPDX-License-Identifier: MIT
6
7cpu_stressor=$(nproc)
8
9while 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
19done << EOF
200 1 10000
2125 1 10000
2250 1 10000
2375 1 10000
24100 1 10000
250 10 5000
2625 10 5000
2750 10 5000
2875 10 5000
29100 10 5000
300 100 6000
3125 100 6000
3250 100 6000
3375 100 6000
34100 100 6000
350 1000 6000
3625 1000 6000
3750 1000 6000
3875 1000 6000
39100 1000 6000
400 10000 600
4125 10000 600
4250 10000 600
4375 10000 600
44100 10000 600
450 60000 100
4625 60000 100
4750 60000 100
4875 60000 100
49100 60000 60
50EOF
This page took 0.025952 seconds and 5 git commands to generate.