START sys/kern/sosplice/perf 2025-01-06T02:30:04Z ==== 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 1921292508 15370.340 100.00% Conn: 1 Mbps: 15370.340 Peak Mbps: 15370.340 Avg Mbps: 15370.340 999 1921194360 15384.940 100.00% Conn: 1 Mbps: 15384.940 Peak Mbps: 15384.940 Avg Mbps: 15384.940 2000 1930976252 15463.273 100.00% Conn: 1 Mbps: 15463.273 Peak Mbps: 15463.273 Avg Mbps: 15463.273 1999 1931008968 15448.072 100.00% Conn: 1 Mbps: 15448.072 Peak Mbps: 15448.072 Avg Mbps: 15448.072 3000 1934311256 15474.490 100.00% Conn: 1 Mbps: 15474.490 Peak Mbps: 15474.490 Avg Mbps: 15474.490 3000 1934245824 15473.967 100.00% Conn: 1 Mbps: 15473.967 Peak Mbps: 15473.967 Avg Mbps: 15473.967 4000 1935032796 15480.262 100.00% Conn: 1 Mbps: 15480.262 Peak Mbps: 15480.262 Avg Mbps: 15480.262 4000 1935065512 15480.524 100.00% Conn: 1 Mbps: 15480.524 Peak Mbps: 15480.524 Avg Mbps: 15480.524 5000 1934914342 15479.315 100.00% Conn: 1 Mbps: 15479.315 Peak Mbps: 15480.262 Avg Mbps: 15479.315 5000 1934914342 15479.315 100.00% Conn: 1 Mbps: 15479.315 Peak Mbps: 15480.524 Avg Mbps: 15479.315 --- 127.0.0.1 tcpbench statistics --- 11591822074 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15370.340/15453.536/15480.262/42.034 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11591822074 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15384.940/15453.363/15480.524/36.181 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 1512833062 12102.664 100.00% Conn: 1 Mbps: 12102.664 Peak Mbps: 12102.664 Avg Mbps: 12102.664 1000 1512849420 12102.795 100.00% Conn: 1 Mbps: 12102.795 Peak Mbps: 12102.795 Avg Mbps: 12102.795 2000 1517382222 12139.058 100.00% Conn: 1 Mbps: 12139.058 Peak Mbps: 12139.058 Avg Mbps: 12139.058 2000 1517431296 12139.450 100.00% Conn: 1 Mbps: 12139.450 Peak Mbps: 12139.450 Avg Mbps: 12139.450 3000 1516725870 12133.807 100.00% Conn: 1 Mbps: 12133.807 Peak Mbps: 12139.058 Avg Mbps: 12133.807 3000 1516627722 12133.022 100.00% Conn: 1 Mbps: 12133.022 Peak Mbps: 12139.450 Avg Mbps: 12133.022 4000 1516449960 12143.743 100.00% Conn: 1 Mbps: 12143.743 Peak Mbps: 12143.743 Avg Mbps: 12143.743 4000 1516548108 12132.385 100.00% Conn: 1 Mbps: 12132.385 Peak Mbps: 12139.450 Avg Mbps: 12132.385 5000 1516449876 12131.599 100.00% Conn: 1 Mbps: 12131.599 Peak Mbps: 12143.743 Avg Mbps: 12131.599 5000 1516384444 12143.219 100.00% Conn: 1 Mbps: 12143.219 Peak Mbps: 12143.219 Avg Mbps: 12143.219 --- 127.0.0.1 tcpbench statistics --- 9097354436 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12102.664/12130.174/12143.743/14.388 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9097354436 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12102.795/12130.174/12143.219/14.274 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: 3090.976 Peak Mbps: 3090.976 Tx PPS: 262481 Elapsed: 1000 Mbps: 2414.987 Peak Mbps: 2414.987 Rx PPS: 205077 Elapsed: 2000 Mbps: 3079.430 Peak Mbps: 3090.976 Tx PPS: 261500 Elapsed: 1999 Mbps: 2428.933 Peak Mbps: 2428.933 Rx PPS: 206261 Elapsed: 3000 Mbps: 2989.726 Peak Mbps: 3090.976 Tx PPS: 253883 Elapsed: 2999 Mbps: 2394.379 Peak Mbps: 2428.933 Rx PPS: 203327 Elapsed: 4000 Mbps: 2971.897 Peak Mbps: 3090.976 Tx PPS: 252369 Elapsed: 3999 Mbps: 2328.987 Peak Mbps: 2428.933 Rx PPS: 197774 Elapsed: 5000 Mbps: 2968.977 Peak Mbps: 3090.976 Tx PPS: 252121 Elapsed: 4999 Mbps: 2293.644 Peak Mbps: 2428.933 Rx PPS: 194772 --- 127.0.0.1 tcpbench statistics --- 2261368832 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2968.977/3020.201/3090.976/53.671 Mbps Elapsed: 6000 Mbps: 2327.044 Peak Mbps: 2428.933 Rx PPS: 197609 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1773046080 bytes received over 6.019 seconds bandwidth min/avg/max/std-dev = 2293.644/2364.662/2428.933/50.461 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: 3094.686 Peak Mbps: 3094.686 Tx PPS: 262796 Elapsed: 1000 Mbps: 2297.133 Peak Mbps: 2297.133 Rx PPS: 195069 Elapsed: 2000 Mbps: 3020.880 Peak Mbps: 3094.686 Tx PPS: 256528 Elapsed: 1999 Mbps: 2149.739 Peak Mbps: 2297.133 Rx PPS: 182552 Elapsed: 3000 Mbps: 2996.615 Peak Mbps: 3094.686 Tx PPS: 254468 Elapsed: 2999 Mbps: 2120.116 Peak Mbps: 2297.133 Rx PPS: 180037 Elapsed: 4001 Mbps: 2194.536 Peak Mbps: 2297.133 Rx PPS: 186356 Elapsed: 4001 Mbps: 2957.952 Peak Mbps: 3094.686 Tx PPS: 251184 Elapsed: 5001 Mbps: 2317.974 Peak Mbps: 2317.974 Rx PPS: 196838 Elapsed: 5001 Mbps: 3143.473 Peak Mbps: 3143.473 Tx PPS: 266938 --- 127.0.0.1 tcpbench statistics --- 2271797952 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2957.952/3042.721/3143.473/67.290 Mbps Elapsed: 6034 Mbps: 2105.211 Peak Mbps: 2317.974 Rx PPS: 178771 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1656329728 bytes received over 6.037 seconds bandwidth min/avg/max/std-dev = 2105.211/2197.451/2317.974/82.902 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.68s