START sys/kern/sosplice/perf 2025-04-03T01:16:37Z ==== 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 1811503808 14492.030 100.00% Conn: 1 Mbps: 14492.030 Peak Mbps: 14492.030 Avg Mbps: 14492.030 999 1811438376 14506.013 100.00% Conn: 1 Mbps: 14506.013 Peak Mbps: 14506.013 Avg Mbps: 14506.013 2000 1823300026 14601.001 100.00% Conn: 1 Mbps: 14601.001 Peak Mbps: 14601.001 Avg Mbps: 14601.001 1999 1823332742 14586.662 100.00% Conn: 1 Mbps: 14586.662 Peak Mbps: 14586.662 Avg Mbps: 14586.662 3000 1830610600 14644.885 100.00% Conn: 1 Mbps: 14644.885 Peak Mbps: 14644.885 Avg Mbps: 14644.885 3000 1830545168 14644.361 100.00% Conn: 1 Mbps: 14644.361 Peak Mbps: 14644.361 Avg Mbps: 14644.361 4000 1823692410 14604.143 100.00% Conn: 1 Mbps: 14604.143 Peak Mbps: 14644.885 Avg Mbps: 14604.143 4000 1823758050 14590.064 100.00% Conn: 1 Mbps: 14590.064 Peak Mbps: 14644.361 Avg Mbps: 14590.064 5000 1826390224 14611.122 100.00% Conn: 1 Mbps: 14611.122 Peak Mbps: 14644.885 Avg Mbps: 14611.122 5000 1826488164 14611.905 100.00% Conn: 1 Mbps: 14611.905 Peak Mbps: 14644.361 Avg Mbps: 14611.905 --- 127.0.0.1 tcpbench statistics --- 10940267994 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14492.030/14590.636/14644.885/51.721 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10940267994 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14506.013/14587.801/14644.361/45.773 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 1980295042 15842.360 100.00% Conn: 1 Mbps: 15842.360 Peak Mbps: 15842.360 Avg Mbps: 15842.360 999 1980131462 15856.909 100.00% Conn: 1 Mbps: 15856.909 Peak Mbps: 15856.909 Avg Mbps: 15856.909 2000 1998174112 15985.393 100.00% Conn: 1 Mbps: 15985.393 Peak Mbps: 15985.393 Avg Mbps: 15985.393 1999 1998206828 15985.655 100.00% Conn: 1 Mbps: 15985.655 Peak Mbps: 15985.655 Avg Mbps: 15985.655 3000 1993579286 15948.634 100.00% Conn: 1 Mbps: 15948.634 Peak Mbps: 15985.393 Avg Mbps: 15948.634 2999 1993612002 15948.896 100.00% Conn: 1 Mbps: 15948.896 Peak Mbps: 15985.655 Avg Mbps: 15948.896 4000 1998583750 15988.670 100.00% Conn: 1 Mbps: 15988.670 Peak Mbps: 15988.670 Avg Mbps: 15988.670 4000 1998714614 15989.717 100.00% Conn: 1 Mbps: 15989.717 Peak Mbps: 15989.717 Avg Mbps: 15989.717 5000 1995917440 15967.340 100.00% Conn: 1 Mbps: 15967.340 Peak Mbps: 15988.670 Avg Mbps: 15967.340 5000 1995917440 15983.323 100.00% Conn: 1 Mbps: 15983.323 Peak Mbps: 15989.717 Avg Mbps: 15983.323 --- 127.0.0.1 tcpbench statistics --- 11965951072 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15842.360/15949.885/15989.717/55.729 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11965951072 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15856.909/15949.494/15988.670/48.442 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: 3415.193 Peak Mbps: 3415.193 Tx PPS: 290013 Elapsed: 1000 Mbps: 2914.136 Peak Mbps: 2914.136 Rx PPS: 247464 Elapsed: 2000 Mbps: 3181.925 Peak Mbps: 3415.193 Tx PPS: 270204 Elapsed: 2000 Mbps: 3035.084 Peak Mbps: 3035.084 Rx PPS: 257734 Elapsed: 3000 Mbps: 3249.175 Peak Mbps: 3415.193 Tx PPS: 275915 Elapsed: 3000 Mbps: 2940.444 Peak Mbps: 3035.084 Rx PPS: 249698 Elapsed: 4000 Mbps: 3384.222 Peak Mbps: 3415.193 Tx PPS: 287383 Elapsed: 4000 Mbps: 2930.634 Peak Mbps: 3035.084 Rx PPS: 248865 Elapsed: 5000 Mbps: 3349.589 Peak Mbps: 3415.193 Tx PPS: 284442 Elapsed: 5000 Mbps: 2968.094 Peak Mbps: 3035.084 Rx PPS: 252046 Elapsed: 6000 Mbps: 2946.014 Peak Mbps: 3035.084 Rx PPS: 250171 --- 127.0.0.1 tcpbench statistics --- 2491074432 bytes sent over 6.008 seconds bandwidth min/avg/max/std-dev = 3181.925/3316.021/3415.193/87.251 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2220454592 bytes received over 6.011 seconds bandwidth min/avg/max/std-dev = 2914.136/2955.734/3035.084/39.025 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: 3457.775 Peak Mbps: 3457.775 Tx PPS: 293629 Elapsed: 1000 Mbps: 2699.554 Peak Mbps: 2699.554 Rx PPS: 229242 Elapsed: 2000 Mbps: 3353.590 Peak Mbps: 3457.775 Tx PPS: 284781 Elapsed: 2000 Mbps: 2709.953 Peak Mbps: 2709.953 Rx PPS: 230125 Elapsed: 3000 Mbps: 3429.230 Peak Mbps: 3457.775 Tx PPS: 291205 Elapsed: 3000 Mbps: 2663.778 Peak Mbps: 2709.953 Rx PPS: 226204 Elapsed: 4000 Mbps: 2694.514 Peak Mbps: 2709.953 Rx PPS: 228814 Elapsed: 4008 Mbps: 3376.675 Peak Mbps: 3457.775 Tx PPS: 286742 Elapsed: 5000 Mbps: 2660.528 Peak Mbps: 2709.953 Rx PPS: 225928 Elapsed: 5008 Mbps: 3386.030 Peak Mbps: 3457.775 Tx PPS: 287536 --- 127.0.0.1 tcpbench statistics --- 2544444736 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3353.590/3400.660/3457.775/37.638 Mbps Elapsed: 6000 Mbps: 2721.010 Peak Mbps: 2721.010 Rx PPS: 231064 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2024154560 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2660.528/2691.556/2721.010/22.409 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s