cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -S . -B build \
&& cmake --build build \
&& ./build/src/ss-tcp-latency
Tips:
- Read the excellent sled theoretical performance guide.
- Use
lstopofrom hwloc for identifying the best set of CPU cores to run the application on. I.e. to avoid Hyper-Threading, avoid efficiency cores if present, etc. - For lowest latency you likely want to run with Seastar's
--poll-mode. - ENA Linux Driver Best Practices and Performance Optimization Guide
- EC2 Placement groups
With some tuning in AWS us-west-2c
Latencies:
min: 51.0000μs
mean: 56.7302μs
max: 116.0000μs
50th percentile: 55.0002μs
75th percentile: 57.0002μs
90th percentile: 61.9990μs
95th percentile: 64.9911μs
99th percentile: 75.8890μs