Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v3] improve validation testing with 1 or 2 CPUs #2001

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

JannePeltonen
Copy link
Collaborator

  • Let validation tests pass in 1-CPU systems by relaxing tolerances in 2-thread globl time sync test.
  • Enable sched order wait test in systems with less than 1 worker.

@odpbuild odpbuild changed the title improve validation testing with 1 or 2 CPUs [PATCH v1] improve validation testing with 1 or 2 CPUs Jan 19, 2024
@odpbuild odpbuild changed the title [PATCH v1] improve validation testing with 1 or 2 CPUs [PATCH v2] improve validation testing with 1 or 2 CPUs Jan 19, 2024
@psavol psavol enabled auto-merge (rebase) January 22, 2024 09:18
Run the 2-thread odp_schedule_order_wait() test regardless of the
number of worker CPUs. The test anyway uses just single worker thread
and the main (control) thread. This enables the test in systems with
just one or two CPUs.

Signed-off-by: Janne Peltonen <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
When running the 2-thread time_test_global_sync_control() test in a system
with only one CPU core, the control and worker threads run in the same
core, which shows up as time differences of the order of the thread
scheduling interval of the underlying OS. Increase the allowed error when
the threads run in the same CPU core.

Signed-off-by: Janne Peltonen <[email protected]>
Reviewed-by: Matias Elo <[email protected]>
@odpbuild odpbuild changed the title [PATCH v2] improve validation testing with 1 or 2 CPUs [PATCH v3] improve validation testing with 1 or 2 CPUs Jan 22, 2024
@psavol psavol merged commit dd5a231 into OpenDataPlane:master Jan 22, 2024
171 checks passed
@JannePeltonen JannePeltonen deleted the val-one-cpu branch January 22, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants