linux-rdma / qperf

GNU General Public License v2.0
84 stars 36 forks source link

Disable Nagle for testing (TCP_NODELAY), allow to change message size for socket tests #23

Open vitalif opened 4 years ago

vitalif commented 4 years ago

Hi! Current qperf always uses hard-coded message sizes for tests. Notably, 1 byte for tcp_lat and 32K for tcp_bw. Testing latency with 1 byte messages is a bit... incorrect. It's also incorrect without setting TCP_NODELAY. This PR fixes both problems.