-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples/proxy: add wait batch count
Use -w to set the desired number of CQEs to wait for before processing them. This is typical batching behavior in processing. Can be used with -t for setting the wait timeout as well. This allows tightly controlling latencies, while still providing efficiency. Batching can make a substantial difference in effiency. For example, running proxy as a sink and using the default wait of 1, and sending it 32 byte packets over a 10G link yields the following performance based on wait_batch size: Wait batch QPS ============================ 1 5.7M 4 7.7M 32 8.7M Even just a small wait batch can drastically improve the performance at which a single threaded application (like proxy) can receive. Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
7 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