START sys/kern/sosplice/perf 2025-03-07T02:25: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 1800662538 14405.300 100.00% Conn: 1 Mbps: 14405.300 Peak Mbps: 14405.300 Avg Mbps: 14405.300 1000 1800564390 14404.515 100.00% Conn: 1 Mbps: 14404.515 Peak Mbps: 14404.515 Avg Mbps: 14404.515 2000 1817541926 14554.890 100.00% Conn: 1 Mbps: 14554.890 Peak Mbps: 14554.890 Avg Mbps: 14554.890 1999 1817607358 14555.414 100.00% Conn: 1 Mbps: 14555.414 Peak Mbps: 14555.414 Avg Mbps: 14555.414 3000 1811884094 14509.582 100.00% Conn: 1 Mbps: 14509.582 Peak Mbps: 14554.890 Avg Mbps: 14509.582 3000 1811949514 14495.596 100.00% Conn: 1 Mbps: 14495.596 Peak Mbps: 14555.414 Avg Mbps: 14495.596 4000 1812587648 14500.701 100.00% Conn: 1 Mbps: 14500.701 Peak Mbps: 14554.890 Avg Mbps: 14500.701 4000 1812538690 14500.310 100.00% Conn: 1 Mbps: 14500.310 Peak Mbps: 14555.414 Avg Mbps: 14500.310 5000 1811180944 14489.448 100.00% Conn: 1 Mbps: 14489.448 Peak Mbps: 14554.890 Avg Mbps: 14489.448 5000 1811197198 14489.578 100.00% Conn: 1 Mbps: 14489.578 Peak Mbps: 14555.414 Avg Mbps: 14489.578 --- 127.0.0.1 tcpbench statistics --- 10870894830 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14405.300/14491.984/14554.890/48.710 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10870894830 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14404.515/14489.083/14555.414/48.415 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 1978122628 15824.981 100.00% Conn: 1 Mbps: 15824.981 Peak Mbps: 15824.981 Avg Mbps: 15824.981 999 1977991764 15839.774 100.00% Conn: 1 Mbps: 15839.774 Peak Mbps: 15839.774 Avg Mbps: 15839.774 2000 2000188246 16017.523 100.00% Conn: 1 Mbps: 16017.523 Peak Mbps: 16017.523 Avg Mbps: 16017.523 1999 2000253678 16002.029 100.00% Conn: 1 Mbps: 16002.029 Peak Mbps: 16002.029 Avg Mbps: 16002.029 3000 2000172808 16017.400 100.00% Conn: 1 Mbps: 16017.400 Peak Mbps: 16017.523 Avg Mbps: 16017.400 3000 2000238228 16001.906 100.00% Conn: 1 Mbps: 16001.906 Peak Mbps: 16002.029 Avg Mbps: 16001.906 4000 1995607082 15964.857 100.00% Conn: 1 Mbps: 15964.857 Peak Mbps: 16017.523 Avg Mbps: 15964.857 3999 1995574378 15980.576 100.00% Conn: 1 Mbps: 15980.576 Peak Mbps: 16002.029 Avg Mbps: 15980.576 5000 1999255804 15994.046 100.00% Conn: 1 Mbps: 15994.046 Peak Mbps: 16017.523 Avg Mbps: 15994.046 5000 1999255804 15994.046 100.00% Conn: 1 Mbps: 15994.046 Peak Mbps: 16002.029 Avg Mbps: 15994.046 --- 127.0.0.1 tcpbench statistics --- 11970997620 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15824.981/15963.761/16017.523/72.036 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11970997620 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15839.774/15963.666/16002.029/62.437 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: 3353.310 Peak Mbps: 3353.310 Tx PPS: 284758 Elapsed: 1000 Mbps: 2960.816 Peak Mbps: 2960.816 Rx PPS: 251428 Elapsed: 2000 Mbps: 3284.337 Peak Mbps: 3353.310 Tx PPS: 278900 Elapsed: 1999 Mbps: 3094.129 Peak Mbps: 3094.129 Rx PPS: 262748 Elapsed: 3000 Mbps: 3387.649 Peak Mbps: 3387.649 Tx PPS: 287674 Elapsed: 2999 Mbps: 3189.848 Peak Mbps: 3189.848 Rx PPS: 270877 Elapsed: 4000 Mbps: 3422.683 Peak Mbps: 3422.683 Tx PPS: 290649 Elapsed: 4000 Mbps: 3332.997 Peak Mbps: 3332.997 Rx PPS: 283033 Elapsed: 5000 Mbps: 3284.279 Peak Mbps: 3422.683 Tx PPS: 278896 Elapsed: 5000 Mbps: 3186.962 Peak Mbps: 3332.997 Rx PPS: 270632 --- 127.0.0.1 tcpbench statistics --- 2508398400 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3284.279/3346.452/3422.683/55.279 Mbps Elapsed: 6000 Mbps: 2991.092 Peak Mbps: 3332.997 Rx PPS: 253999 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2350267328 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2960.816/3125.974/3332.997/127.241 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: 3374.060 Peak Mbps: 3374.060 Tx PPS: 286520 Elapsed: 1000 Mbps: 2762.956 Peak Mbps: 2762.956 Rx PPS: 234626 Elapsed: 2000 Mbps: 3287.531 Peak Mbps: 3374.060 Tx PPS: 279172 Elapsed: 1999 Mbps: 2833.961 Peak Mbps: 2833.961 Rx PPS: 240655 Elapsed: 3000 Mbps: 3354.606 Peak Mbps: 3374.060 Tx PPS: 284868 Elapsed: 2999 Mbps: 2725.532 Peak Mbps: 2833.961 Rx PPS: 231448 Elapsed: 4000 Mbps: 3303.827 Peak Mbps: 3374.060 Tx PPS: 280556 Elapsed: 4000 Mbps: 2765.770 Peak Mbps: 2833.961 Rx PPS: 234865 Elapsed: 5000 Mbps: 2765.017 Peak Mbps: 2833.961 Rx PPS: 234801 Elapsed: 5009 Mbps: 3295.214 Peak Mbps: 3374.060 Tx PPS: 279824 --- 127.0.0.1 tcpbench statistics --- 2496785792 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3287.531/3323.048/3374.060/34.651 Mbps Elapsed: 6000 Mbps: 2704.841 Peak Mbps: 2833.961 Rx PPS: 229691 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2075241792 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2704.841/2759.679/2833.961/40.347 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s