Page MenuHomeFreeBSD

kyua: Enable parallelism by default
Needs RevisionPublic

Authored by des on Apr 24 2026, 11:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 19, 3:27 PM
Unknown Object (File)
Thu, Jun 4, 10:29 AM
Unknown Object (File)
Thu, Jun 4, 10:28 AM
Unknown Object (File)
Thu, Jun 4, 1:13 AM
Unknown Object (File)
Mon, Jun 1, 5:05 AM
Unknown Object (File)
Sun, May 31, 7:23 PM
Unknown Object (File)
Sat, May 30, 11:27 AM
Unknown Object (File)
Fri, May 29, 8:28 PM
Subscribers

Details

Reviewers
ngie
siva
lwhsu
zlei
olivier
Group Reviewers
tests
Summary

Change the default value of the parallelism configuration variable from
1 to the number of available cores.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72514
Build 69397: arc lint + arc unit

Event Timeline

des requested review of this revision.Apr 24 2026, 11:42 AM

It appears some tests, for example tests/sys/mac/ipacl has side effect. The mac_ipacl module affects some tests running vnet jails when security.mac.ipacl.ipv4 is turned on.

Probably extra efforts is needed ( run tests those have side effects at last order and sequentially, or disable them temporally ) before change the default of kyua parallelism parameter.

It appears some tests, for example tests/sys/mac/ipacl has side effect. The mac_ipacl module affects some tests running vnet jails when security.mac.ipacl.ipv4 is turned on.

Probably extra efforts is needed ( run tests those have side effects at last order and sequentially, or disable them temporally ) before change the default of kyua parallelism parameter.

There is an option is_exclusive to prevent that as per kyuafile(5). Should be safe to enable parallelism by default.

This revision is now accepted and ready to land.Apr 29 2026, 2:46 PM
olivier requested changes to this revision.EditedApr 30 2026, 6:29 PM
olivier added a subscriber: olivier.

I was using the value of 8 and 16 at work to improve time spend, but I had to revert to 1 because:

  1. it created a large number of flaky|conflicting tests.
  2. In case of panic, you don’t know quickly which test was the root cause

And the stability of the test result was a lot more important than the time spend.
Now I have split the tests suite in multiples list that are running in parallel into multiples VM (kepping the stability of run only once).

But my tests with parallel kyua was about 4 years ago.

This revision now requires changes to proceed.Apr 30 2026, 6:29 PM