diff options
| author | 2026-09-28 23:58:36 -0700 | |
|---|---|---|
| committer | 2026-09-29 20:52:44 +0200 | |
| commit | 66d7274859b983a018ea672ef4790ce9b5c715d9 (patch) | |
| tree | 3092658d3b2889b518c024afef691fcb98f33e97 /tools/perf/tests/shell/test_stackcollapse_python.sh | |
| parent | perf test: Deflake failed-syscalls Python shell tests under load (diff) | |
perf test: Reduce overhead and contention in Python shell tests
When all Python shell tests run concurrently during 'perf test' under
heavy load:
1. Unfiltered 'perf list' initializes all hardware PMUs and metrics in
each test process; use 'perf list tracepoint' when checking for
tracepoint events.
2. Running 'perf record' without '-B -N --no-bpf-event' synthesizes BPF
events across the system and caches build-ids into ~/.debug; add
'-B -N --no-bpf-event' to all Python shell test recordings.
3. Drop '-a' in test_check_perf_trace_python.sh,
test_rw_by_file_python.sh, test_rw_by_pid_python.sh,
test_rwtop_python.sh, and test_syscall_counts_by_pid_python.sh where
only a single child workload ('dd' or 'sleep') is tested, avoiding
system-wide /proc synthesis and ringbuffer contention.
4. Add '-W 1' to 'ping -c 1' in test_net_dropmonitor_python.sh and
test_netdev_times_python.sh, and narrow 'compaction:*' to
'compaction:mm_compaction_begin,compaction:mm_compaction_end' in
test_compaction_times_python.sh.
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/shell/test_stackcollapse_python.sh')
| -rwxr-xr-x | tools/perf/tests/shell/test_stackcollapse_python.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/test_stackcollapse_python.sh b/tools/perf/tests/shell/test_stackcollapse_python.sh index ce0f80407eec..2048734c5e0d 100755 --- a/tools/perf/tests/shell/test_stackcollapse_python.sh +++ b/tools/perf/tests/shell/test_stackcollapse_python.sh @@ -37,7 +37,7 @@ echo "Testing stackcollapse.py..." # Create a perf.data file with callchains. Use a busy workload rather than # sleep, as an idle system may not generate any samples at all. -perf record -g -o "${temp_data}" \ +perf record -B -N --no-bpf-event -g -o "${temp_data}" \ -- perf test -w noploop >/dev/null 2>&1 || \ { echo "Skipping test, perf record failed"; exit 2; } |
