Skip to content

Commit 44d7d7d

Browse files
committed
Fix #755: ARM benchmarks run without crash or swap
* Drain pipeline queue before destruction → removes SIGABRT on aarch64. * Reduce ctl contention iterations to 200k on aarch64 on 2 GB Pi.
1 parent 4d4abbb commit 44d7d7d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/tests/roc_ctl/bench_task_queue_contention.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ namespace ctl {
1717
namespace {
1818

1919
enum {
20+
#ifdef __aarch64__
21+
NumScheduleIterations = 200000,
22+
#else
2023
NumScheduleIterations = 2000000,
24+
#endif
2125
NumScheduleAfterIterations = 20000,
2226
NumThreads = 8,
2327
BatchSize = 1000

src/tests/roc_pipeline/bench_pipeline_loop_peak_load.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ void BM_PipelinePeakLoad_PreciseSchedOff(benchmark::State& state) {
495495
task_thr.stop();
496496
task_thr.join();
497497

498+
pipeline.stop_and_wait();
499+
498500
stats.export_counters(state);
499501
pipeline.export_counters(state);
500502
}
@@ -525,6 +527,8 @@ void BM_PipelinePeakLoad_PreciseSchedOn(benchmark::State& state) {
525527
task_thr.stop();
526528
task_thr.join();
527529

530+
pipeline.stop_and_wait();
531+
528532
stats.export_counters(state);
529533
pipeline.export_counters(state);
530534
}

0 commit comments

Comments
 (0)