START sys/kern/sosplice/perf 2025-03-06T02:21:32Z ==== 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 1826587856 14612.703 100.00% Conn: 1 Mbps: 14612.703 Peak Mbps: 14612.703 Avg Mbps: 14612.703 999 1826489708 14626.544 100.00% Conn: 1 Mbps: 14626.544 Peak Mbps: 14626.544 Avg Mbps: 14626.544 2000 1835637590 14699.801 100.00% Conn: 1 Mbps: 14699.801 Peak Mbps: 14699.801 Avg Mbps: 14699.801 2000 1835703230 14685.626 100.00% Conn: 1 Mbps: 14685.626 Peak Mbps: 14685.626 Avg Mbps: 14685.626 3000 1830759846 14646.079 100.00% Conn: 1 Mbps: 14646.079 Peak Mbps: 14699.801 Avg Mbps: 14646.079 3000 1830726922 14645.815 100.00% Conn: 1 Mbps: 14645.815 Peak Mbps: 14685.626 Avg Mbps: 14645.815 4000 1839004978 14712.040 100.00% Conn: 1 Mbps: 14712.040 Peak Mbps: 14712.040 Avg Mbps: 14712.040 4000 1839004978 14712.040 100.00% Conn: 1 Mbps: 14712.040 Peak Mbps: 14712.040 Avg Mbps: 14712.040 5000 1835683836 14700.171 100.00% Conn: 1 Mbps: 14700.171 Peak Mbps: 14712.040 Avg Mbps: 14700.171 5000 1835749360 14685.995 100.00% Conn: 1 Mbps: 14685.995 Peak Mbps: 14712.040 Avg Mbps: 14685.995 --- 127.0.0.1 tcpbench statistics --- 11008657742 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14612.703/14674.159/14712.040/38.300 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11008657742 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14626.544/14671.204/14712.040/30.768 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 2009708698 16093.763 100.00% Conn: 1 Mbps: 16093.763 Peak Mbps: 16093.763 Avg Mbps: 16093.763 1000 2009888636 16079.109 100.00% Conn: 1 Mbps: 16079.109 Peak Mbps: 16079.109 Avg Mbps: 16079.109 2000 2029713844 16253.965 100.00% Conn: 1 Mbps: 16253.965 Peak Mbps: 16253.965 Avg Mbps: 16253.965 2000 2029893782 16239.150 100.00% Conn: 1 Mbps: 16239.150 Peak Mbps: 16239.150 Avg Mbps: 16239.150 3000 2030464876 16259.979 100.00% Conn: 1 Mbps: 16259.979 Peak Mbps: 16259.979 Avg Mbps: 16259.979 3000 2030432160 16243.457 100.00% Conn: 1 Mbps: 16243.457 Peak Mbps: 16243.457 Avg Mbps: 16243.457 4000 2029175370 16233.403 100.00% Conn: 1 Mbps: 16233.403 Peak Mbps: 16259.979 Avg Mbps: 16233.403 4000 2029273518 16234.188 100.00% Conn: 1 Mbps: 16234.188 Peak Mbps: 16243.457 Avg Mbps: 16234.188 5000 2030662212 16245.298 100.00% Conn: 1 Mbps: 16245.298 Peak Mbps: 16259.979 Avg Mbps: 16245.298 5000 2030596780 16244.774 100.00% Conn: 1 Mbps: 16244.774 Peak Mbps: 16244.774 Avg Mbps: 16244.774 --- 127.0.0.1 tcpbench statistics --- 12157835944 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16079.109/16214.351/16259.979/68.209 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12157835944 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16093.763/16211.067/16244.774/58.769 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: 3463.675 Peak Mbps: 3463.675 Tx PPS: 294130 Elapsed: 999 Mbps: 3126.829 Peak Mbps: 3126.829 Rx PPS: 265525 Elapsed: 1999 Mbps: 3043.277 Peak Mbps: 3126.829 Rx PPS: 258430 Elapsed: 2009 Mbps: 3255.591 Peak Mbps: 3463.675 Tx PPS: 276459 Elapsed: 2999 Mbps: 3014.362 Peak Mbps: 3126.829 Rx PPS: 255975 Elapsed: 3009 Mbps: 3380.419 Peak Mbps: 3463.675 Tx PPS: 287060 Elapsed: 3999 Mbps: 3045.780 Peak Mbps: 3126.829 Rx PPS: 258643 Elapsed: 4009 Mbps: 3327.003 Peak Mbps: 3463.675 Tx PPS: 282524 Elapsed: 4999 Mbps: 3088.809 Peak Mbps: 3126.829 Rx PPS: 262297 Elapsed: 5009 Mbps: 3283.667 Peak Mbps: 3463.675 Tx PPS: 278844 --- 127.0.0.1 tcpbench statistics --- 2493874176 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3255.591/3342.071/3463.675/73.993 Mbps Elapsed: 6000 Mbps: 3103.306 Peak Mbps: 3126.829 Rx PPS: 263528 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2302278656 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 3014.362/3070.394/3126.829/38.919 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: 3405.584 Peak Mbps: 3405.584 Tx PPS: 289197 Elapsed: 1000 Mbps: 2765.158 Peak Mbps: 2765.158 Rx PPS: 234813 Elapsed: 2000 Mbps: 3323.237 Peak Mbps: 3405.584 Tx PPS: 282204 Elapsed: 1999 Mbps: 2792.103 Peak Mbps: 2792.103 Rx PPS: 237101 Elapsed: 3000 Mbps: 3414.946 Peak Mbps: 3414.946 Tx PPS: 289992 Elapsed: 2999 Mbps: 2720.185 Peak Mbps: 2792.103 Rx PPS: 230994 Elapsed: 4000 Mbps: 3394.491 Peak Mbps: 3414.946 Tx PPS: 288255 Elapsed: 3999 Mbps: 2765.358 Peak Mbps: 2792.103 Rx PPS: 234830 Elapsed: 5000 Mbps: 3353.769 Peak Mbps: 3414.946 Tx PPS: 284797 Elapsed: 4999 Mbps: 2790.465 Peak Mbps: 2792.103 Rx PPS: 236962 --- 127.0.0.1 tcpbench statistics --- 2526314112 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3323.237/3378.405/3414.946/34.592 Mbps Elapsed: 5999 Mbps: 2809.648 Peak Mbps: 2809.648 Rx PPS: 238591 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2086174336 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2720.185/2773.819/2809.648/28.630 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.64s