START sys/kern/sosplice/perf 2025-03-15T06:29:00Z ==== 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 797904242 6383.234 100.00% Conn: 1 Mbps: 6383.234 Peak Mbps: 6383.234 Avg Mbps: 6383.234 999 797888196 6389.495 100.00% Conn: 1 Mbps: 6389.495 Peak Mbps: 6389.495 Avg Mbps: 6389.495 2000 866622580 6939.921 100.00% Conn: 1 Mbps: 6939.921 Peak Mbps: 6939.921 Avg Mbps: 6939.921 1999 866606326 6932.851 100.00% Conn: 1 Mbps: 6932.851 Peak Mbps: 6932.851 Avg Mbps: 6932.851 3000 873638886 6989.111 100.00% Conn: 1 Mbps: 6989.111 Peak Mbps: 6989.111 Avg Mbps: 6989.111 2999 873655244 6989.242 100.00% Conn: 1 Mbps: 6989.242 Peak Mbps: 6989.242 Avg Mbps: 6989.242 4000 852667530 6821.340 100.00% Conn: 1 Mbps: 6821.340 Peak Mbps: 6989.111 Avg Mbps: 6821.340 3999 852683692 6821.470 100.00% Conn: 1 Mbps: 6821.470 Peak Mbps: 6989.242 Avg Mbps: 6821.470 4999 853407504 6834.094 100.00% 5000 853636736 6829.094 100.00% Conn: 1 Mbps: 6834.094 Peak Mbps: 6989.242 Avg Mbps: 6834.094 Conn: 1 Mbps: 6829.094 Peak Mbps: 6989.111 Avg Mbps: 6829.094 --- 127.0.0.1 tcpbench statistics --- 5101199904 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 6383.234/6792.540/6989.111/214.503 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 5101199904 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 6389.495/6793.430/6989.242/211.369 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 1000 860395154 6883.161 100.00% Conn: 1 Mbps: 6883.161 Peak Mbps: 6883.161 Avg Mbps: 6883.161 999 860444228 6890.444 100.00% Conn: 1 Mbps: 6890.444 Peak Mbps: 6890.444 Avg Mbps: 6890.444 2000 950822074 7606.577 100.00% Conn: 1 Mbps: 7606.577 Peak Mbps: 7606.577 Avg Mbps: 7606.577 1999 950740284 7605.922 100.00% Conn: 1 Mbps: 7605.922 Peak Mbps: 7605.922 Avg Mbps: 7605.922 3000 945125014 7561.000 100.00% Conn: 1 Mbps: 7561.000 Peak Mbps: 7606.577 Avg Mbps: 7561.000 2999 945288582 7562.309 100.00% Conn: 1 Mbps: 7562.309 Peak Mbps: 7605.922 Avg Mbps: 7562.309 4000 952306272 7618.450 100.00% Conn: 1 Mbps: 7618.450 Peak Mbps: 7618.450 Avg Mbps: 7618.450 4000 952240852 7617.927 100.00% Conn: 1 Mbps: 7617.927 Peak Mbps: 7617.927 Avg Mbps: 7617.927 5000 954006600 7639.692 100.00% Conn: 1 Mbps: 7639.692 Peak Mbps: 7639.692 Avg Mbps: 7639.692 5000 954104748 7632.838 100.00% Conn: 1 Mbps: 7632.838 Peak Mbps: 7632.838 Avg Mbps: 7632.838 --- 127.0.0.1 tcpbench statistics --- 5612268844 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 6883.161/7461.776/7639.692/290.451 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 5612268844 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 6890.444/7461.888/7632.838/286.688 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: 1780.213 Peak Mbps: 1780.213 Tx PPS: 151173 Elapsed: 999 Mbps: 1773.249 Peak Mbps: 1773.249 Rx PPS: 150581 Elapsed: 2000 Mbps: 2002.745 Peak Mbps: 2002.745 Tx PPS: 170070 Elapsed: 1999 Mbps: 1993.209 Peak Mbps: 1993.209 Rx PPS: 169260 Elapsed: 3000 Mbps: 2091.865 Peak Mbps: 2091.865 Tx PPS: 177638 Elapsed: 2999 Mbps: 1754.624 Peak Mbps: 1993.209 Rx PPS: 149000 Elapsed: 4000 Mbps: 2015.404 Peak Mbps: 2091.865 Tx PPS: 171145 Elapsed: 3999 Mbps: 1973.293 Peak Mbps: 1993.209 Rx PPS: 167569 Elapsed: 5000 Mbps: 2042.924 Peak Mbps: 2091.865 Tx PPS: 173482 Elapsed: 4999 Mbps: 1988.130 Peak Mbps: 1993.209 Rx PPS: 168829 --- 127.0.0.1 tcpbench statistics --- 1499062720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1780.213/1986.630/2091.865/107.647 Mbps Elapsed: 6003 Mbps: 1959.571 Peak Mbps: 1993.209 Rx PPS: 166403 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1430523456 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 1754.624/1907.013/1993.209/101.883 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: 1787.514 Peak Mbps: 1787.514 Tx PPS: 151793 Elapsed: 999 Mbps: 1428.538 Peak Mbps: 1428.538 Rx PPS: 121309 Elapsed: 2000 Mbps: 2089.527 Peak Mbps: 2089.527 Tx PPS: 177439 Elapsed: 1999 Mbps: 1574.365 Peak Mbps: 1574.365 Rx PPS: 133692 Elapsed: 2999 Mbps: 1540.666 Peak Mbps: 1574.365 Rx PPS: 130831 Elapsed: 3007 Mbps: 2093.696 Peak Mbps: 2093.696 Tx PPS: 177793 Elapsed: 3999 Mbps: 1587.158 Peak Mbps: 1587.158 Rx PPS: 134779 Elapsed: 4007 Mbps: 2105.511 Peak Mbps: 2105.511 Tx PPS: 178796 Elapsed: 4999 Mbps: 1560.473 Peak Mbps: 1587.158 Rx PPS: 132513 Elapsed: 5007 Mbps: 2073.436 Peak Mbps: 2105.511 Tx PPS: 176073 --- 127.0.0.1 tcpbench statistics --- 1534779328 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1787.514/2029.937/2105.511/121.646 Mbps Elapsed: 5999 Mbps: 1551.406 Peak Mbps: 1587.158 Rx PPS: 131743 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1161020864 bytes received over 6.023 seconds bandwidth min/avg/max/std-dev = 1428.538/1540.434/1587.158/52.245 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m33.07s