START sys/kern/sosplice/perf 2024-11-05T12:49:00Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -MD -MP -c /usr/src/regress/sys/kern/sosplice/perf/relay.c cc -o relay relay.o ln -s relay copy pkill -x tcpbench *** Error 1 in target 'run-tcp-copy' (ignored) ./copy -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1001 68867180 550.387 100.00% Conn: 1 Mbps: 550.387 Peak Mbps: 550.387 Avg Mbps: 550.387 1000 68786816 550.295 100.00% Conn: 1 Mbps: 550.295 Peak Mbps: 550.295 Avg Mbps: 550.295 2000 65152488 521.742 100.00% Conn: 1 Mbps: 521.742 Peak Mbps: 550.295 Avg Mbps: 521.742 2006 65072124 518.503 100.00% Conn: 1 Mbps: 518.503 Peak Mbps: 550.387 Avg Mbps: 518.503 3002 58823368 472.477 100.00% Conn: 1 Mbps: 472.477 Peak Mbps: 550.387 Avg Mbps: 472.477 3002 58719008 469.283 100.00% Conn: 1 Mbps: 469.283 Peak Mbps: 550.295 Avg Mbps: 469.283 4002 61342500 490.740 100.00% Conn: 1 Mbps: 490.740 Peak Mbps: 550.387 Avg Mbps: 490.740 4002 61341696 490.734 100.00% Conn: 1 Mbps: 490.734 Peak Mbps: 550.295 Avg Mbps: 490.734 5003 60851760 486.814 100.00% Conn: 1 Mbps: 486.814 Peak Mbps: 550.387 Avg Mbps: 486.814 5003 60882944 487.064 100.00% Conn: 1 Mbps: 487.064 Peak Mbps: 550.295 Avg Mbps: 487.064 --- 127.0.0.1 tcpbench statistics --- 376135852 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 472.477/503.784/550.387/27.665 Mbps sleep 1 6028 61014016 476.207 100.00% Conn: 1 Mbps: 476.207 Peak Mbps: 550.295 Avg Mbps: 476.207 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 375896968 bytes received over 6.030 seconds bandwidth min/avg/max/std-dev = 469.283/499.221/550.295/28.171 Mbps ==== run-tcp-splice ==== ln -s relay splice pkill -x tcpbench *** Error 1 in target 'run-tcp-splice' (ignored) ./splice -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1000 106637802 853.102 100.00% Conn: 1 Mbps: 853.102 Peak Mbps: 853.102 Avg Mbps: 853.102 1003 106654160 850.681 100.00% Conn: 1 Mbps: 850.681 Peak Mbps: 850.681 Avg Mbps: 850.681 2000 106277926 851.074 100.00% Conn: 1 Mbps: 851.074 Peak Mbps: 853.102 Avg Mbps: 851.074 2004 106392432 850.289 100.00% Conn: 1 Mbps: 850.289 Peak Mbps: 850.681 Avg Mbps: 850.289 3000 106245210 849.962 100.00% Conn: 1 Mbps: 849.962 Peak Mbps: 853.102 Avg Mbps: 849.962 3005 106261568 850.093 100.00% Conn: 1 Mbps: 850.093 Peak Mbps: 850.681 Avg Mbps: 850.093 4001 109680390 876.567 100.00% Conn: 1 Mbps: 876.567 Peak Mbps: 876.567 Avg Mbps: 876.567 4006 109794896 878.359 100.00% Conn: 1 Mbps: 878.359 Peak Mbps: 878.359 Avg Mbps: 878.359 5002 109009712 872.078 100.00% Conn: 1 Mbps: 872.078 Peak Mbps: 876.567 Avg Mbps: 872.078 5006 109009712 872.078 100.00% Conn: 1 Mbps: 872.078 Peak Mbps: 878.359 Avg Mbps: 872.078 --- 127.0.0.1 tcpbench statistics --- 622075166 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 850.093/860.300/878.359/12.343 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 620801104 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 849.962/860.557/876.567/11.373 Mbps ==== run-udp-copy ==== pkill -x tcpbench *** Error 1 in target 'run-udp-copy' (ignored) ./copy -u -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -u -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -u -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench Elapsed: 1000 Mbps: 69.266 Peak Mbps: 69.266 Tx PPS: 5882 Elapsed: 1000 Mbps: 69.278 Peak Mbps: 69.278 Rx PPS: 5883 Elapsed: 2000 Mbps: 68.831 Peak Mbps: 69.266 Tx PPS: 5845 Elapsed: 2000 Mbps: 68.923 Peak Mbps: 69.278 Rx PPS: 5852 Elapsed: 3000 Mbps: 69.502 Peak Mbps: 69.502 Tx PPS: 5902 Elapsed: 3000 Mbps: 69.502 Peak Mbps: 69.502 Rx PPS: 5902 Elapsed: 4000 Mbps: 72.234 Peak Mbps: 72.234 Tx PPS: 6134 Elapsed: 4000 Mbps: 72.222 Peak Mbps: 72.222 Rx PPS: 6133 Elapsed: 5000 Mbps: 72.305 Peak Mbps: 72.305 Tx PPS: 6140 Elapsed: 5000 Mbps: 66.334 Peak Mbps: 72.222 Rx PPS: 5633 --- 127.0.0.1 tcpbench statistics --- 56368768 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 68.831/70.428/72.305/1.519 Mbps Elapsed: 6015 Mbps: 54.970 Peak Mbps: 72.222 Rx PPS: 4667 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 50248192 bytes received over 6.017 seconds bandwidth min/avg/max/std-dev = 54.970/66.872/72.222/5.590 Mbps sleep 1 ==== run-udp-splice ==== pkill -x tcpbench *** Error 1 in target 'run-udp-splice' (ignored) ./splice -u -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -u -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -u -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench Elapsed: 1000 Mbps: 80.889 Peak Mbps: 80.889 Tx PPS: 6869 Elapsed: 1000 Mbps: 80.901 Peak Mbps: 80.901 Rx PPS: 6870 Elapsed: 2000 Mbps: 80.829 Peak Mbps: 80.889 Tx PPS: 6863 Elapsed: 2000 Mbps: 80.783 Peak Mbps: 80.901 Rx PPS: 6860 Elapsed: 3000 Mbps: 81.007 Peak Mbps: 81.007 Tx PPS: 6879 Elapsed: 3000 Mbps: 81.007 Peak Mbps: 81.007 Rx PPS: 6879 Elapsed: 4000 Mbps: 87.449 Peak Mbps: 87.449 Tx PPS: 7426 Elapsed: 4000 Mbps: 65.192 Peak Mbps: 81.007 Rx PPS: 5536 Elapsed: 5000 Mbps: 80.772 Peak Mbps: 87.449 Tx PPS: 6859 Elapsed: 5000 Mbps: 80.772 Peak Mbps: 81.007 Rx PPS: 6859 --- 127.0.0.1 tcpbench statistics --- 62792576 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 80.772/82.189/87.449/2.631 Mbps Elapsed: 6016 Mbps: 52.162 Peak Mbps: 81.007 Rx PPS: 4429 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 55200000 bytes received over 6.020 seconds bandwidth min/avg/max/std-dev = 52.162/73.470/81.007/11.116 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m36.59s