START sys/kern/sosplice/perf 2025-03-27T02:15:57Z ==== 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 1842017996 14736.144 100.00% Conn: 1 Mbps: 14736.144 Peak Mbps: 14736.144 Avg Mbps: 14736.144 999 1841952784 14750.373 100.00% Conn: 1 Mbps: 14750.373 Peak Mbps: 14750.373 Avg Mbps: 14750.373 2000 1854518540 14850.999 100.00% Conn: 1 Mbps: 14850.999 Peak Mbps: 14850.999 Avg Mbps: 14850.999 2000 1854583960 14836.672 100.00% Conn: 1 Mbps: 14836.672 Peak Mbps: 14836.672 Avg Mbps: 14836.672 3000 1854943284 14839.546 100.00% Conn: 1 Mbps: 14839.546 Peak Mbps: 14850.999 Avg Mbps: 14839.546 3000 1854877748 14839.022 100.00% Conn: 1 Mbps: 14839.022 Peak Mbps: 14839.022 Avg Mbps: 14839.022 4000 1853208584 14840.509 100.00% Conn: 1 Mbps: 14840.509 Peak Mbps: 14850.999 Avg Mbps: 14840.509 4000 1853273912 14841.032 100.00% Conn: 1 Mbps: 14841.032 Peak Mbps: 14841.032 Avg Mbps: 14841.032 5000 1853339220 14826.714 100.00% Conn: 1 Mbps: 14826.714 Peak Mbps: 14850.999 Avg Mbps: 14826.714 5000 1853241072 14825.929 100.00% Conn: 1 Mbps: 14825.929 Peak Mbps: 14841.032 Avg Mbps: 14825.929 --- 127.0.0.1 tcpbench statistics --- 11112020792 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14736.144/14818.783/14850.999/42.031 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11112020792 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14750.373/14818.605/14841.032/34.512 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 2011537374 16108.407 100.00% Conn: 1 Mbps: 16108.407 Peak Mbps: 16108.407 Avg Mbps: 16108.407 1000 2011700954 16093.608 100.00% Conn: 1 Mbps: 16093.608 Peak Mbps: 16093.608 Avg Mbps: 16093.608 2000 2025510010 16220.300 100.00% Conn: 1 Mbps: 16220.300 Peak Mbps: 16220.300 Avg Mbps: 16220.300 1999 2025608146 16204.865 100.00% Conn: 1 Mbps: 16204.865 Peak Mbps: 16204.865 Avg Mbps: 16204.865 3000 2021470840 16171.767 100.00% Conn: 1 Mbps: 16171.767 Peak Mbps: 16220.300 Avg Mbps: 16171.767 3000 2021503568 16172.029 100.00% Conn: 1 Mbps: 16172.029 Peak Mbps: 16204.865 Avg Mbps: 16172.029 4000 2028241748 16225.934 100.00% Conn: 1 Mbps: 16225.934 Peak Mbps: 16225.934 Avg Mbps: 16225.934 4000 2028176316 16225.411 100.00% Conn: 1 Mbps: 16225.411 Peak Mbps: 16225.411 Avg Mbps: 16225.411 5000 2026770168 16214.161 100.00% Conn: 1 Mbps: 16214.161 Peak Mbps: 16225.934 Avg Mbps: 16214.161 5000 2026835600 16214.685 100.00% Conn: 1 Mbps: 16214.685 Peak Mbps: 16225.411 Avg Mbps: 16214.685 --- 127.0.0.1 tcpbench statistics --- 12138187354 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16093.608/16185.154/16225.934/49.598 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12138187354 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16108.407/16185.079/16225.411/42.293 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: 3272.998 Peak Mbps: 3272.998 Tx PPS: 277938 Elapsed: 1000 Mbps: 2995.037 Peak Mbps: 2995.037 Rx PPS: 254334 Elapsed: 2000 Mbps: 3223.076 Peak Mbps: 3272.998 Tx PPS: 273698 Elapsed: 2000 Mbps: 2985.611 Peak Mbps: 2995.037 Rx PPS: 253533 Elapsed: 3000 Mbps: 3350.296 Peak Mbps: 3350.296 Tx PPS: 284502 Elapsed: 3000 Mbps: 2833.529 Peak Mbps: 2995.037 Rx PPS: 240619 Elapsed: 4000 Mbps: 3323.623 Peak Mbps: 3350.296 Tx PPS: 282237 Elapsed: 4000 Mbps: 2955.858 Peak Mbps: 2995.037 Rx PPS: 251007 Elapsed: 5000 Mbps: 3368.772 Peak Mbps: 3368.772 Tx PPS: 286071 Elapsed: 5000 Mbps: 2904.703 Peak Mbps: 2995.037 Rx PPS: 246663 --- 127.0.0.1 tcpbench statistics --- 2475265152 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3223.076/3307.753/3368.772/53.223 Mbps Elapsed: 6000 Mbps: 2953.409 Peak Mbps: 2995.037 Rx PPS: 250799 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2204299392 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 2833.529/2938.025/2995.037/54.923 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: 3543.952 Peak Mbps: 3543.952 Tx PPS: 300947 Elapsed: 1000 Mbps: 2630.605 Peak Mbps: 2630.605 Rx PPS: 223387 Elapsed: 2000 Mbps: 3356.938 Peak Mbps: 3543.952 Tx PPS: 285066 Elapsed: 2000 Mbps: 2722.236 Peak Mbps: 2722.236 Rx PPS: 231168 Elapsed: 3000 Mbps: 3433.234 Peak Mbps: 3543.952 Tx PPS: 291545 Elapsed: 2999 Mbps: 2686.354 Peak Mbps: 2722.236 Rx PPS: 228121 Elapsed: 4000 Mbps: 3449.932 Peak Mbps: 3543.952 Tx PPS: 292963 Elapsed: 4000 Mbps: 2665.462 Peak Mbps: 2722.236 Rx PPS: 226347 Elapsed: 5000 Mbps: 3401.024 Peak Mbps: 3543.952 Tx PPS: 288809 Elapsed: 5000 Mbps: 2723.792 Peak Mbps: 2723.792 Rx PPS: 231300 --- 127.0.0.1 tcpbench statistics --- 2575926400 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3356.938/3437.016/3543.952/62.168 Mbps Elapsed: 6000 Mbps: 2678.369 Peak Mbps: 2723.792 Rx PPS: 227443 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2018468224 bytes received over 6.017 seconds bandwidth min/avg/max/std-dev = 2630.605/2684.470/2723.792/32.342 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s