test-bbdev: add configurable duration for throughput and latency tests#1
Open
bodushka wants to merge 1 commit into
Open
test-bbdev: add configurable duration for throughput and latency tests#1bodushka wants to merge 1 commit into
bodushka wants to merge 1 commit into
Conversation
Add -d/--duration SECONDS CLI option to dpdk-test-bbdev to allow throughput and latency tests to run for a user-specified duration instead of the hardcoded TEST_REPETITIONS (100 iterations, ~108ms). Without -d the behavior is unchanged. Changes: - main.h: declare get_duration_sec() getter - main.c: add duration_sec field to test_params struct, implement get_duration_sec(), register --duration/-d option in getopt_long, parse and store the value - test_bbdev_perf.c: add g_test_tsc_end global and SHOULD_CONTINUE(n) macro; replace TEST_REPETITIONS loop conditions in all 6 interrupt and 6 PMD throughput functions; add num_reps field to struct thread_params to record actual iteration count; set g_test_tsc_end before releasing workers via SYNC_START; fix interrupt-mode averaging divisor to use RTE_MAX(1U, num_reps) instead of constant TEST_REPETITIONS; wrap validation_latency_test op dispatch in a do-while loop controlled by the same TSC deadline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add -d/--duration seconds CLI option to dpdk-test-bbdev to allow throughput and latency tests to run for a user-specified duration instead of the hardcoded TEST_REPETITIONS (100 iterations, ~108ms).
Without -d the behavior is unchanged.
Changes: