START sys/kern/sosplice/perf 2025-01-16T14:37:48Z ==== 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 1937693182 15501.545 100.00% Conn: 1 Mbps: 15501.545 Peak Mbps: 15501.545 Avg Mbps: 15501.545 1000 1937578780 15500.630 100.00% Conn: 1 Mbps: 15500.630 Peak Mbps: 15500.630 Avg Mbps: 15500.630 2000 1950207472 15617.277 100.00% Conn: 1 Mbps: 15617.277 Peak Mbps: 15617.277 Avg Mbps: 15617.277 2000 1950452830 15619.242 100.00% Conn: 1 Mbps: 15619.242 Peak Mbps: 15619.242 Avg Mbps: 15619.242 3000 1958335466 15666.684 100.00% Conn: 1 Mbps: 15666.684 Peak Mbps: 15666.684 Avg Mbps: 15666.684 3000 1958237214 15665.898 100.00% Conn: 1 Mbps: 15665.898 Peak Mbps: 15665.898 Avg Mbps: 15665.898 4000 1957583382 15660.667 100.00% Conn: 1 Mbps: 15660.667 Peak Mbps: 15666.684 Avg Mbps: 15660.667 4000 1957583394 15660.667 100.00% Conn: 1 Mbps: 15660.667 Peak Mbps: 15665.898 Avg Mbps: 15660.667 5000 1955064310 15640.514 100.00% Conn: 1 Mbps: 15640.514 Peak Mbps: 15666.684 Avg Mbps: 15640.514 5000 1955064310 15656.171 100.00% Conn: 1 Mbps: 15656.171 Peak Mbps: 15665.898 Avg Mbps: 15656.171 --- 127.0.0.1 tcpbench statistics --- 11716127392 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15501.545/15617.338/15666.684/60.428 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11716127392 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15500.630/15620.522/15665.898/62.156 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 2013541790 16108.334 100.00% Conn: 1 Mbps: 16108.334 Peak Mbps: 16108.334 Avg Mbps: 16108.334 999 2013443642 16123.673 100.00% Conn: 1 Mbps: 16123.673 Peak Mbps: 16123.673 Avg Mbps: 16123.673 2000 2031013514 16264.372 100.00% Conn: 1 Mbps: 16264.372 Peak Mbps: 16264.372 Avg Mbps: 16264.372 2000 2031046230 16248.370 100.00% Conn: 1 Mbps: 16248.370 Peak Mbps: 16248.370 Avg Mbps: 16248.370 2999 2033877472 16287.307 100.00% Conn: 1 Mbps: 16287.307 Peak Mbps: 16287.307 Avg Mbps: 16287.307 3000 2034041052 16272.328 100.00% Conn: 1 Mbps: 16272.328 Peak Mbps: 16272.328 Avg Mbps: 16272.328 4000 2030375976 16259.267 100.00% Conn: 1 Mbps: 16259.267 Peak Mbps: 16272.328 Avg Mbps: 16259.267 4000 2030441408 16243.531 100.00% Conn: 1 Mbps: 16243.531 Peak Mbps: 16287.307 Avg Mbps: 16243.531 5000 2032991936 16263.935 100.00% Conn: 1 Mbps: 16263.935 Peak Mbps: 16287.307 Avg Mbps: 16263.935 5000 2033106858 16264.855 100.00% Conn: 1 Mbps: 16264.855 Peak Mbps: 16272.328 Avg Mbps: 16264.855 --- 127.0.0.1 tcpbench statistics --- 12171783396 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16108.334/16233.831/16272.328/62.887 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12171783396 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16123.673/16233.363/16287.307/56.930 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: 1011 Mbps: 2526.133 Peak Mbps: 2526.133 Rx PPS: 214515 Elapsed: 1011 Mbps: 3110.693 Peak Mbps: 3110.693 Tx PPS: 264155 Elapsed: 2011 Mbps: 2729.168 Peak Mbps: 2729.168 Rx PPS: 231756 Elapsed: 2011 Mbps: 3066.569 Peak Mbps: 3110.693 Tx PPS: 260408 Elapsed: 3011 Mbps: 2709.893 Peak Mbps: 2729.168 Rx PPS: 230120 Elapsed: 3011 Mbps: 3089.233 Peak Mbps: 3110.693 Tx PPS: 262333 Elapsed: 4011 Mbps: 2492.143 Peak Mbps: 2729.168 Rx PPS: 211629 Elapsed: 4011 Mbps: 2885.673 Peak Mbps: 3110.693 Tx PPS: 245047 Elapsed: 5011 Mbps: 2430.260 Peak Mbps: 2729.168 Rx PPS: 206374 Elapsed: 5011 Mbps: 2940.208 Peak Mbps: 3110.693 Tx PPS: 249678 --- 127.0.0.1 tcpbench statistics --- 2249414720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2885.673/3018.475/3110.693/88.979 Mbps Elapsed: 6012 Mbps: 2398.135 Peak Mbps: 2729.168 Rx PPS: 203646 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1913981248 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2398.135/2547.622/2729.168/128.420 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: 3066.046 Peak Mbps: 3066.046 Tx PPS: 260364 Elapsed: 1000 Mbps: 2401.668 Peak Mbps: 2401.668 Rx PPS: 203946 Elapsed: 2000 Mbps: 2994.027 Peak Mbps: 3066.046 Tx PPS: 254248 Elapsed: 2000 Mbps: 2341.444 Peak Mbps: 2401.668 Rx PPS: 198831 Elapsed: 3000 Mbps: 2989.597 Peak Mbps: 3066.046 Tx PPS: 253872 Elapsed: 3000 Mbps: 2295.142 Peak Mbps: 2401.668 Rx PPS: 194900 Elapsed: 4000 Mbps: 3050.714 Peak Mbps: 3066.046 Tx PPS: 259062 Elapsed: 4000 Mbps: 2245.707 Peak Mbps: 2401.668 Rx PPS: 190702 Elapsed: 5000 Mbps: 3049.796 Peak Mbps: 3066.046 Tx PPS: 258984 Elapsed: 5000 Mbps: 2328.374 Peak Mbps: 2401.668 Rx PPS: 197722 --- 127.0.0.1 tcpbench statistics --- 2295190976 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2989.597/3030.036/3066.046/31.770 Mbps Elapsed: 6000 Mbps: 2308.803 Peak Mbps: 2401.668 Rx PPS: 196060 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1739955520 bytes received over 6.058 seconds bandwidth min/avg/max/std-dev = 2245.707/2320.190/2401.668/47.368 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.68s