START sys/kern/sosplice/perf 2025-03-29T19:24:58Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 1356336604 10850.693 100.00% Conn: 1 Mbps: 10850.693 Peak Mbps: 10850.693 Avg Mbps: 10850.693 1000 1356254814 10850.039 100.00% Conn: 1 Mbps: 10850.039 Peak Mbps: 10850.039 Avg Mbps: 10850.039 2000 1367168288 10948.295 100.00% Conn: 1 Mbps: 10948.295 Peak Mbps: 10948.295 Avg Mbps: 10948.295 2000 1367282794 10938.262 100.00% Conn: 1 Mbps: 10938.262 Peak Mbps: 10938.262 Avg Mbps: 10938.262 3000 1371518520 10983.131 100.00% Conn: 1 Mbps: 10983.131 Peak Mbps: 10983.131 Avg Mbps: 10983.131 3000 1371567594 10972.541 100.00% Conn: 1 Mbps: 10972.541 Peak Mbps: 10972.541 Avg Mbps: 10972.541 4000 1370946842 10967.575 100.00% Conn: 1 Mbps: 10967.575 Peak Mbps: 10983.131 Avg Mbps: 10967.575 4000 1370865052 10966.920 100.00% Conn: 1 Mbps: 10966.920 Peak Mbps: 10972.541 Avg Mbps: 10966.920 5000 1366904360 10935.235 100.00% Conn: 1 Mbps: 10935.235 Peak Mbps: 10983.131 Avg Mbps: 10935.235 5000 1366904464 10935.236 100.00% Conn: 1 Mbps: 10935.236 Peak Mbps: 10972.541 Avg Mbps: 10935.236 --- 127.0.0.1 tcpbench statistics --- 8203365364 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10850.693/10936.986/10983.131/46.136 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8203365364 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10850.039/10932.600/10972.541/43.883 Mbps sleep 1 ==== 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 999 1514021546 12124.297 100.00% Conn: 1 Mbps: 12124.297 Peak Mbps: 12124.297 Avg Mbps: 12124.297 1000 1514201484 12113.612 100.00% Conn: 1 Mbps: 12113.612 Peak Mbps: 12113.612 Avg Mbps: 12113.612 2000 1530096618 12253.026 100.00% 1999 1530145692 12241.166 100.00% Conn: 1 Mbps: 12253.026 Peak Mbps: 12253.026 Avg Mbps: 12253.026 Conn: 1 Mbps: 12241.166 Peak Mbps: 12241.166 Avg Mbps: 12241.166 2999 1530894220 12247.154 100.00% Conn: 1 Mbps: 12247.154 Peak Mbps: 12247.154 Avg Mbps: 12247.154 3000 1530959652 12247.677 100.00% Conn: 1 Mbps: 12247.677 Peak Mbps: 12253.026 Avg Mbps: 12247.677 3999 1533988132 12271.905 100.00% Conn: 1 Mbps: 12271.905 Peak Mbps: 12271.905 Avg Mbps: 12271.905 4000 1534069922 12272.559 100.00% Conn: 1 Mbps: 12272.559 Peak Mbps: 12272.559 Avg Mbps: 12272.559 5000 1531984716 12255.878 100.00% Conn: 1 Mbps: 12255.878 Peak Mbps: 12271.905 Avg Mbps: 12255.878 5000 1532082864 12256.663 100.00% Conn: 1 Mbps: 12256.663 Peak Mbps: 12272.559 Avg Mbps: 12256.663 --- 127.0.0.1 tcpbench statistics --- 9170254282 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12113.612/12228.707/12272.559/58.142 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9170254282 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12124.297/12228.080/12271.905/52.914 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: 1942.063 Peak Mbps: 1942.063 Tx PPS: 164917 Elapsed: 1000 Mbps: 1942.192 Peak Mbps: 1942.192 Rx PPS: 164928 Elapsed: 2000 Mbps: 1945.775 Peak Mbps: 1945.775 Tx PPS: 165232 Elapsed: 1999 Mbps: 1945.810 Peak Mbps: 1945.810 Rx PPS: 165235 Elapsed: 3000 Mbps: 1946.820 Peak Mbps: 1946.820 Tx PPS: 165321 Elapsed: 2999 Mbps: 1946.855 Peak Mbps: 1946.855 Rx PPS: 165324 Elapsed: 4000 Mbps: 1947.091 Peak Mbps: 1947.091 Tx PPS: 165344 Elapsed: 3999 Mbps: 1947.067 Peak Mbps: 1947.067 Rx PPS: 165342 Elapsed: 5000 Mbps: 1945.301 Peak Mbps: 1947.091 Tx PPS: 165192 Elapsed: 5000 Mbps: 1945.325 Peak Mbps: 1947.067 Rx PPS: 165194 --- 127.0.0.1 tcpbench statistics --- 1458919808 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1942.063/1945.410/1947.091/1.798 Mbps Elapsed: 6002 Mbps: 1942.170 Peak Mbps: 1947.067 Rx PPS: 164926 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1458919808 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1942.170/1944.903/1947.067/2.013 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: 1867.155 Peak Mbps: 1867.155 Tx PPS: 158556 Elapsed: 1000 Mbps: 1867.273 Peak Mbps: 1867.273 Rx PPS: 158566 Elapsed: 2000 Mbps: 1867.221 Peak Mbps: 1867.221 Tx PPS: 158561 Elapsed: 1999 Mbps: 1867.268 Peak Mbps: 1867.273 Rx PPS: 158565 Elapsed: 3000 Mbps: 1867.862 Peak Mbps: 1867.862 Tx PPS: 158616 Elapsed: 3000 Mbps: 1867.886 Peak Mbps: 1867.886 Rx PPS: 158618 Elapsed: 4000 Mbps: 1866.614 Peak Mbps: 1867.862 Tx PPS: 158510 Elapsed: 4000 Mbps: 1866.602 Peak Mbps: 1867.886 Rx PPS: 158509 Elapsed: 5000 Mbps: 1867.626 Peak Mbps: 1867.862 Tx PPS: 158596 Elapsed: 5000 Mbps: 1867.638 Peak Mbps: 1867.886 Rx PPS: 158597 --- 127.0.0.1 tcpbench statistics --- 1400085440 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1866.614/1867.296/1867.862/0.429 Mbps Elapsed: 6002 Mbps: 1862.159 Peak Mbps: 1867.886 Rx PPS: 158131 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1400085440 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1862.159/1866.471/1867.886/1.969 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.50s