当我使用以下选项运行 httperf 时,输出很容易理解。
选项:以 10 个(速率)连接/秒的速率建立总共 10 个连接(num-conns),每个连接 2 个请求调用(num-calls)。输出:10 个连接和 20 个请求调用
httperf -v --server www.example.com --wlog=n,$HOME/tmp/reqs.txt_httperf --rate=10 --num-conns=10 --num-calls=2 --hog
Total: connections 10 requests 20 replies 10 test-duration 1.575 s
但是,当我使用以下选项时,httperf 输出,输出令人困惑。选项:以 10(速率)连接/秒的速率总共建立 4 个连接(num-conns),每个连接 6 个请求调用(num-calls)。
httperf -v --server www.example.com --wlog=n,$HOME/tmp/reqs.txt_httperf --rate=10 --num-conns=4 --num-calls=6 --hog
Total: connections 4 requests 8 replies 4 test-duration 0.455 s
似乎当 num-calls 大于 num-conns 时,发出的请求数是 2*num-conns。
我没有理解为什么 num-calls 大于 num-conns。我错过了什么吗?