Commit 6492537
committed
Perftest: Fix BW degradation with --output flag due to CPU starvation
When using '--output=bandwidth', skipping print headers causes the test
to enter the polling loop immediately, starving the CPU core handling NIC
interrupts.
This leads to significant performance drops (e.g., ~50%) on local socket
cores.
Add a usleep(1) to yield the CPU before starting measurement, allowing
interrupts to be processed correctly.
Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>1 parent 1c4dc79 commit 6492537
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4039 | 4039 | | |
4040 | 4040 | | |
4041 | 4041 | | |
4042 | | - | |
| 4042 | + | |
| 4043 | + | |
4043 | 4044 | | |
| 4045 | + | |
4044 | 4046 | | |
4045 | 4047 | | |
4046 | 4048 | | |
| |||
0 commit comments