-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
router: Improve the accuracy and stability of the benchmark.
Summary: * In the router, prevent the Go runtime from trying to use more cores than the specified number of processor threads. Reason: * Be consistent with the default where there are as many processor threads as there are cores. * In non-default cases, we want to be able to support multiple routers on the same host. When doing that, Go's assumption that all the cores are fair game distorts the performance as all router instances compete for the same cores and so incurr far more preemption than they would in a normal deployment. * In the test harness, configure the number of cores allowed to each router based on what's available on the host running the test. * In the end2end binary, terminate the pong drain task quickly instead of waiting up to 10s. This allows to report the end-time of the test accurately, thereby removing a lot of variability in the results (before, the metrics capture window could overlap with the end of the active phase of the test). * Because the test goes faster, increase the number of packets to 1.5M, so we are sure we have a reliable 10s metrics capture window in the middle.
- Loading branch information
1 parent
dbcf003
commit 25b6f74
Showing
3 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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