On Mon, Jan 19, 2026 at 05:55:05PM -0800, Stephen Hemminger wrote:
> The atomic test uses tight spinloops to synchronize worker threads
> and performs a fixed 1,000,000 iterations per worker. This causes
> two problems on high core count systems:
>
> With many cores (e.g., 32), the massive contention on shared
> atomic variables causes the test to exceed the 10 second timeout.
>
> Scale iterations inversely with core count to maintain roughly
> constant test duration regardless of system size
>
> With 32 cores, iterations drop from 1,000,000 to 31,250 per worker,
> which keeps the test well within the timeout while still providing
> meaningful coverage.
>
> Bugzilla ID: 952
> Fixes: af75078fece3 ("first public release")
> Cc: [email protected]
>
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
> app/test/test_atomic.c | 52 ++++++++++++++++++++++++++----------------
> 1 file changed, 32 insertions(+), 20 deletions(-)
>
Tested-by: Bruce Richardson <[email protected]>
Acked-by: Bruce Richardson <[email protected]>
Tested this on a system with 96 cores and test no longer times out or fails
for me.