Skip to content

Commit 3fed2b5

Browse files
committed
tester: limit cores to 8, is much faster on Ryzen
1 parent 40f3135 commit 3fed2b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/tester/tester.c2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ fn void TestQueue.summarizeFailed(const TestQueue* q) {
134134

135135
fn u32 online_cpus() {
136136
i64 ncpus = unistd.sysconf(unistd._SC_NPROCESSORS_ONLN);
137+
if (ncpus > 8) return 8; // Hack around Ryzen virtual cores. Using only physical is faster
137138
if (ncpus > 0) return cast<u32>(ncpus);
138139
return 1;
139140
}

0 commit comments

Comments
 (0)