START sys/kern/sosplice/perf 2025-03-25T19:20:45Z ==== 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 1342502040 10740.016 100.00% 999 1342305848 10749.196 100.00% Conn: 1 Mbps: 10740.016 Peak Mbps: 10740.016 Avg Mbps: 10740.016 Conn: 1 Mbps: 10749.196 Peak Mbps: 10749.196 Avg Mbps: 10749.196 2000 1349639180 10807.921 100.00% Conn: 1 Mbps: 10807.921 Peak Mbps: 10807.921 Avg Mbps: 10807.921 2000 1349672312 10797.378 100.00% Conn: 1 Mbps: 10797.378 Peak Mbps: 10797.378 Avg Mbps: 10797.378 3000 1353475718 10827.806 100.00% Conn: 1 Mbps: 10827.806 Peak Mbps: 10827.806 Avg Mbps: 10827.806 3000 1353672534 10829.380 100.00% Conn: 1 Mbps: 10829.380 Peak Mbps: 10829.380 Avg Mbps: 10829.380 4000 1354233478 10833.868 100.00% Conn: 1 Mbps: 10833.868 Peak Mbps: 10833.868 Avg Mbps: 10833.868 4000 1354151144 10844.053 100.00% Conn: 1 Mbps: 10844.053 Peak Mbps: 10844.053 Avg Mbps: 10844.053 5000 1354623454 10847.835 100.00% Conn: 1 Mbps: 10847.835 Peak Mbps: 10847.835 Avg Mbps: 10847.835 5000 1354704700 10837.638 100.00% Conn: 1 Mbps: 10837.638 Peak Mbps: 10837.638 Avg Mbps: 10837.638 --- 127.0.0.1 tcpbench statistics --- 8107994416 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10740.016/10813.841/10847.835/39.484 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8107994416 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10749.196/10809.177/10837.638/33.177 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 1496037334 11968.299 100.00% Conn: 1 Mbps: 11968.299 Peak Mbps: 11968.299 Avg Mbps: 11968.299 999 1495939186 11979.493 100.00% Conn: 1 Mbps: 11979.493 Peak Mbps: 11979.493 Avg Mbps: 11979.493 2000 1515939636 12127.517 100.00% Conn: 1 Mbps: 12127.517 Peak Mbps: 12127.517 Avg Mbps: 12127.517 2000 1515939636 12127.517 100.00% Conn: 1 Mbps: 12127.517 Peak Mbps: 12127.517 Avg Mbps: 12127.517 3000 1514201188 12113.610 100.00% Conn: 1 Mbps: 12113.610 Peak Mbps: 12127.517 Avg Mbps: 12113.610 3000 1514282978 12114.264 100.00% Conn: 1 Mbps: 12114.264 Peak Mbps: 12127.517 Avg Mbps: 12114.264 4000 1511636762 12093.094 100.00% Conn: 1 Mbps: 12093.094 Peak Mbps: 12127.517 Avg Mbps: 12093.094 4000 1511751268 12094.010 100.00% Conn: 1 Mbps: 12094.010 Peak Mbps: 12127.517 Avg Mbps: 12094.010 5000 1514540006 12116.320 100.00% Conn: 1 Mbps: 12116.320 Peak Mbps: 12127.517 Avg Mbps: 12116.320 5000 1514556364 12128.579 100.00% Conn: 1 Mbps: 12128.579 Peak Mbps: 12128.579 Avg Mbps: 12128.579 --- 127.0.0.1 tcpbench statistics --- 9067608470 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11968.299/12086.534/12128.579/60.418 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9067608470 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11979.493/12086.007/12127.517/54.405 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: 1998.611 Peak Mbps: 1998.611 Tx PPS: 169719 Elapsed: 1000 Mbps: 1998.729 Peak Mbps: 1998.729 Rx PPS: 169729 Elapsed: 2000 Mbps: 2003.676 Peak Mbps: 2003.676 Tx PPS: 170149 Elapsed: 1999 Mbps: 2003.771 Peak Mbps: 2003.771 Rx PPS: 170157 Elapsed: 3000 Mbps: 2004.911 Peak Mbps: 2004.911 Tx PPS: 170254 Elapsed: 3000 Mbps: 2004.899 Peak Mbps: 2004.899 Rx PPS: 170253 Elapsed: 4000 Mbps: 2004.240 Peak Mbps: 2004.911 Tx PPS: 170197 Elapsed: 4000 Mbps: 2004.240 Peak Mbps: 2004.899 Rx PPS: 170197 Elapsed: 5000 Mbps: 2005.700 Peak Mbps: 2005.700 Tx PPS: 170321 Elapsed: 5000 Mbps: 2005.712 Peak Mbps: 2005.712 Rx PPS: 170322 --- 127.0.0.1 tcpbench statistics --- 1502273152 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1998.611/2003.428/2005.700/2.501 Mbps Elapsed: 6002 Mbps: 1998.841 Peak Mbps: 2005.712 Rx PPS: 169738 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1502273152 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1998.729/2002.699/2005.712/2.831 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: 1903.543 Peak Mbps: 1903.543 Tx PPS: 161646 Elapsed: 1000 Mbps: 1903.626 Peak Mbps: 1903.626 Rx PPS: 161653 Elapsed: 2000 Mbps: 1903.586 Peak Mbps: 1903.586 Tx PPS: 161649 Elapsed: 1999 Mbps: 1903.657 Peak Mbps: 1903.657 Rx PPS: 161655 Elapsed: 3000 Mbps: 1904.238 Peak Mbps: 1904.238 Tx PPS: 161705 Elapsed: 2999 Mbps: 1904.250 Peak Mbps: 1904.250 Rx PPS: 161706 Elapsed: 4000 Mbps: 1903.296 Peak Mbps: 1904.238 Tx PPS: 161625 Elapsed: 4000 Mbps: 1903.284 Peak Mbps: 1904.250 Rx PPS: 161624 Elapsed: 5000 Mbps: 1903.225 Peak Mbps: 1904.238 Tx PPS: 161619 Elapsed: 5000 Mbps: 1903.237 Peak Mbps: 1904.250 Rx PPS: 161620 --- 127.0.0.1 tcpbench statistics --- 1426942080 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1903.225/1903.578/1904.238/0.358 Mbps Elapsed: 6002 Mbps: 1895.595 Peak Mbps: 1904.250 Rx PPS: 160971 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1426942080 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1895.595/1902.275/1904.250/3.006 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s