From 5c7cf20602316143c9f023de9b317319b1318a62 Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 6 Jul 2021 13:19:57 +0000 Subject: [PATCH] This regress checks that 400 singals are evenly distributed over 4 threads. It works well on idle 4 CPU machines, but with load or fewer cores the distribution of the threads' signal handlers is worse. Reduce the limit of signals that each thread must receive from 75 to 50. This should prevent random test fails. from Christian Ludwig --- regress/sys/kern/signal/sigprof/sigprof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/sys/kern/signal/sigprof/sigprof.c b/regress/sys/kern/signal/sigprof/sigprof.c index 0cb5b23011b..c6625548fc3 100644 --- a/regress/sys/kern/signal/sigprof/sigprof.c +++ b/regress/sys/kern/signal/sigprof/sigprof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sigprof.c,v 1.1 2020/09/16 14:02:24 mpi Exp $ */ +/* $OpenBSD: sigprof.c,v 1.2 2021/07/06 13:19:57 bluhm Exp $ */ /* * Copyright (c) 2013 Joel Sing * @@ -30,7 +30,7 @@ #define NTHREADS 4 #define NSIGNALS 100 #define NSIGTOTAL (NTHREADS * NSIGNALS) -#define NMINSIG ((NSIGNALS * 75) / 100) +#define NMINSIG ((NSIGNALS * 50) / 100) void handler(int); void *spinloop(void *); -- 2.20.1