START sys/kern/sosplice/perf 2024-05-15T11:45:55Z ==== 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 1000 65791876 526.335 100.00% Conn: 1 Mbps: 526.335 Peak Mbps: 526.335 Avg Mbps: 526.335 1000 65686106 525.489 100.00% Conn: 1 Mbps: 525.489 Peak Mbps: 525.489 Avg Mbps: 525.489 2000 61506080 492.049 100.00% Conn: 1 Mbps: 492.049 Peak Mbps: 526.335 Avg Mbps: 492.049 2001 61538304 491.815 100.00% Conn: 1 Mbps: 491.815 Peak Mbps: 525.489 Avg Mbps: 491.815 3001 61538796 492.310 100.00% Conn: 1 Mbps: 492.310 Peak Mbps: 526.335 Avg Mbps: 492.310 3001 61538304 492.306 100.00% Conn: 1 Mbps: 492.306 Peak Mbps: 525.489 Avg Mbps: 492.306 4001 61538796 492.803 100.00% Conn: 1 Mbps: 492.803 Peak Mbps: 526.335 Avg Mbps: 492.803 4001 61538304 492.306 100.00% Conn: 1 Mbps: 492.306 Peak Mbps: 525.489 Avg Mbps: 492.306 5001 61440648 491.525 100.00% Conn: 1 Mbps: 491.525 Peak Mbps: 526.335 Avg Mbps: 491.525 5003 61472768 491.291 100.00% Conn: 1 Mbps: 491.291 Peak Mbps: 525.489 Avg Mbps: 491.291 --- 127.0.0.1 tcpbench statistics --- 373256844 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 491.525/499.004/526.335/13.671 Mbps 6015 61276160 484.397 100.00% sleep 1 Conn: 1 Mbps: 484.397 Peak Mbps: 525.489 Avg Mbps: 484.397 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 373049946 bytes received over 6.032 seconds bandwidth min/avg/max/std-dev = 484.397/496.267/525.489/13.359 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 1001 103398438 826.361 100.00% Conn: 1 Mbps: 826.361 Peak Mbps: 826.361 Avg Mbps: 826.361 1003 102091392 814.288 100.00% Conn: 1 Mbps: 814.288 Peak Mbps: 814.288 Avg Mbps: 814.288 2001 80985410 647.883 100.00% Conn: 1 Mbps: 647.883 Peak Mbps: 826.361 Avg Mbps: 647.883 2004 81085698 648.038 100.00% Conn: 1 Mbps: 648.038 Peak Mbps: 814.288 Avg Mbps: 648.038 3001 80575848 645.252 100.00% Conn: 1 Mbps: 645.252 Peak Mbps: 826.361 Avg Mbps: 645.252 3007 80740352 643.991 100.00% Conn: 1 Mbps: 643.991 Peak Mbps: 814.288 Avg Mbps: 643.991 4002 83503798 668.030 100.00% Conn: 1 Mbps: 668.030 Peak Mbps: 826.361 Avg Mbps: 668.030 4007 83623936 669.661 100.00% Conn: 1 Mbps: 669.661 Peak Mbps: 814.288 Avg Mbps: 669.661 5002 85450304 683.602 100.00% Conn: 1 Mbps: 683.602 Peak Mbps: 826.361 Avg Mbps: 683.602 5008 85458944 683.672 100.00% Conn: 1 Mbps: 683.672 Peak Mbps: 814.288 Avg Mbps: 683.672 --- 127.0.0.1 tcpbench statistics --- 520002700 bytes sent over 6.002 seconds bandwidth min/avg/max/std-dev = 645.252/694.226/826.361/67.535 Mbps 6016 85820204 681.113 100.00% Conn: 1 Mbps: 681.113 Peak Mbps: 814.288 Avg Mbps: 681.113 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 520002700 bytes received over 6.032 seconds bandwidth min/avg/max/std-dev = 643.991/690.127/814.288/57.530 Mbps sleep 1 ==== 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: 72.752 Peak Mbps: 72.752 Tx PPS: 6178 Elapsed: 1000 Mbps: 61.859 Peak Mbps: 61.859 Rx PPS: 5253 Elapsed: 2000 Mbps: 67.579 Peak Mbps: 72.752 Tx PPS: 5738 Elapsed: 2000 Mbps: 67.603 Peak Mbps: 67.603 Rx PPS: 5740 Elapsed: 3000 Mbps: 66.322 Peak Mbps: 72.752 Tx PPS: 5632 Elapsed: 3000 Mbps: 66.334 Peak Mbps: 67.603 Rx PPS: 5633 Elapsed: 4000 Mbps: 72.129 Peak Mbps: 72.752 Tx PPS: 6125 Elapsed: 4002 Mbps: 64.715 Peak Mbps: 67.603 Rx PPS: 5495 Elapsed: 5000 Mbps: 66.570 Peak Mbps: 72.752 Tx PPS: 5653 Elapsed: 5002 Mbps: 67.053 Peak Mbps: 67.603 Rx PPS: 5694 --- 127.0.0.1 tcpbench statistics --- 51465536 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 66.322/69.071/72.752/2.791 Mbps Elapsed: 6015 Mbps: 65.518 Peak Mbps: 67.603 Rx PPS: 5563 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 49241344 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 61.859/65.514/67.603/1.888 Mbps ==== 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: 89.498 Peak Mbps: 89.498 Tx PPS: 7600 Elapsed: 1000 Mbps: 89.509 Peak Mbps: 89.509 Rx PPS: 7601 Elapsed: 2000 Mbps: 91.179 Peak Mbps: 91.179 Tx PPS: 7742 Elapsed: 2016 Mbps: 84.207 Peak Mbps: 89.509 Rx PPS: 7150 Elapsed: 3000 Mbps: 103.228 Peak Mbps: 103.228 Tx PPS: 8766 Elapsed: 3551 Mbps: 38.982 Peak Mbps: 89.509 Rx PPS: 3310 Elapsed: 4000 Mbps: 111.872 Peak Mbps: 111.872 Tx PPS: 9500 Elapsed: 4551 Mbps: 90.345 Peak Mbps: 90.345 Rx PPS: 7672 Elapsed: 5000 Mbps: 90.181 Peak Mbps: 111.872 Tx PPS: 7658 Elapsed: 5551 Mbps: 85.682 Peak Mbps: 90.345 Rx PPS: 7276 --- 127.0.0.1 tcpbench statistics --- 72228096 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 89.498/97.191/111.872/8.905 Mbps tcpbench: sleep 1 Terminated by signal 15 --- tcpbench server statistics --- 56371712 bytes received over 6.033 seconds bandwidth min/avg/max/std-dev = 38.982/77.745/90.345/19.517 Mbps PASS sys/kern/sosplice/perf Duration 0m36.65s