START sys/kern/sosplice/perf 2025-03-25T02:18:34Z ==== 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 1819138554 14553.108 100.00% Conn: 1 Mbps: 14553.108 Peak Mbps: 14553.108 Avg Mbps: 14553.108 999 1819138554 14567.676 100.00% Conn: 1 Mbps: 14567.676 Peak Mbps: 14567.676 Avg Mbps: 14567.676 2000 1838457784 14722.385 100.00% Conn: 1 Mbps: 14722.385 Peak Mbps: 14722.385 Avg Mbps: 14722.385 1999 1838392364 14707.139 100.00% Conn: 1 Mbps: 14707.139 Peak Mbps: 14707.139 Avg Mbps: 14707.139 3000 1836971362 14695.771 100.00% Conn: 1 Mbps: 14695.771 Peak Mbps: 14722.385 Avg Mbps: 14695.771 2999 1836971350 14695.771 100.00% Conn: 1 Mbps: 14695.771 Peak Mbps: 14707.139 Avg Mbps: 14695.771 4000 1837083736 14696.670 100.00% Conn: 1 Mbps: 14696.670 Peak Mbps: 14722.385 Avg Mbps: 14696.670 4000 1837051228 14696.410 100.00% Conn: 1 Mbps: 14696.410 Peak Mbps: 14707.139 Avg Mbps: 14696.410 5000 1838604190 14708.834 100.00% Conn: 1 Mbps: 14708.834 Peak Mbps: 14722.385 Avg Mbps: 14708.834 5000 1838669414 14709.355 100.00% Conn: 1 Mbps: 14709.355 Peak Mbps: 14709.355 Avg Mbps: 14709.355 --- 127.0.0.1 tcpbench statistics --- 11011659674 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14553.108/14675.353/14722.385/61.884 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11011659674 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14567.676/14675.270/14709.355/54.076 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 1981096872 15864.640 100.00% Conn: 1 Mbps: 15864.640 Peak Mbps: 15864.640 Avg Mbps: 15864.640 1000 1981276810 15850.214 100.00% Conn: 1 Mbps: 15850.214 Peak Mbps: 15850.214 Avg Mbps: 15850.214 2000 2000056742 16016.470 100.00% Conn: 1 Mbps: 16016.470 Peak Mbps: 16016.470 Avg Mbps: 16016.470 2000 2000236680 16001.893 100.00% Conn: 1 Mbps: 16001.893 Peak Mbps: 16001.893 Avg Mbps: 16001.893 3000 2000580630 16004.645 100.00% Conn: 1 Mbps: 16004.645 Peak Mbps: 16016.470 Avg Mbps: 16004.645 3000 2000515198 16004.122 100.00% Conn: 1 Mbps: 16004.122 Peak Mbps: 16004.122 Avg Mbps: 16004.122 4000 1997423828 15995.386 100.00% Conn: 1 Mbps: 15995.386 Peak Mbps: 16016.470 Avg Mbps: 15995.386 4000 1997456532 15979.652 100.00% Conn: 1 Mbps: 15979.652 Peak Mbps: 16004.122 Avg Mbps: 15979.652 5000 1999940256 15999.522 100.00% Conn: 1 Mbps: 15999.522 Peak Mbps: 16016.470 Avg Mbps: 15999.522 5000 2000005700 16000.046 100.00% Conn: 1 Mbps: 16000.046 Peak Mbps: 16004.122 Avg Mbps: 16000.046 --- 127.0.0.1 tcpbench statistics --- 11978271230 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15850.214/15973.248/16016.470/61.922 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11978271230 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15864.640/15970.070/16004.122/53.438 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: 3367.995 Peak Mbps: 3367.995 Tx PPS: 286005 Elapsed: 1000 Mbps: 2868.104 Peak Mbps: 2868.104 Rx PPS: 243555 Elapsed: 2000 Mbps: 3398.749 Peak Mbps: 3398.749 Tx PPS: 288616 Elapsed: 1999 Mbps: 2933.250 Peak Mbps: 2933.250 Rx PPS: 249087 Elapsed: 2999 Mbps: 2857.658 Peak Mbps: 2933.250 Rx PPS: 242668 Elapsed: 3008 Mbps: 3319.757 Peak Mbps: 3398.749 Tx PPS: 281908 Elapsed: 3999 Mbps: 2880.092 Peak Mbps: 2933.250 Rx PPS: 244573 Elapsed: 4008 Mbps: 3418.093 Peak Mbps: 3418.093 Tx PPS: 290259 Elapsed: 5000 Mbps: 2884.084 Peak Mbps: 2933.250 Rx PPS: 244912 Elapsed: 5008 Mbps: 3369.938 Peak Mbps: 3418.093 Tx PPS: 286170 --- 127.0.0.1 tcpbench statistics --- 2527705152 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3319.757/3374.906/3418.093/33.309 Mbps Elapsed: 6000 Mbps: 2857.988 Peak Mbps: 2933.250 Rx PPS: 242696 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2165841920 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2857.658/2880.196/2933.250/25.746 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: 3497.130 Peak Mbps: 3497.130 Tx PPS: 296971 Elapsed: 1000 Mbps: 2669.148 Peak Mbps: 2669.148 Rx PPS: 226660 Elapsed: 1999 Mbps: 2709.812 Peak Mbps: 2709.812 Rx PPS: 230113 Elapsed: 2009 Mbps: 3370.095 Peak Mbps: 3497.130 Tx PPS: 286183 Elapsed: 2999 Mbps: 2641.993 Peak Mbps: 2709.812 Rx PPS: 224354 Elapsed: 3009 Mbps: 3461.779 Peak Mbps: 3497.130 Tx PPS: 293969 Elapsed: 3999 Mbps: 2671.127 Peak Mbps: 2709.812 Rx PPS: 226828 Elapsed: 4009 Mbps: 3403.158 Peak Mbps: 3497.130 Tx PPS: 288991 Elapsed: 4999 Mbps: 2724.036 Peak Mbps: 2724.036 Rx PPS: 231321 Elapsed: 5009 Mbps: 3347.670 Peak Mbps: 3497.130 Tx PPS: 284279 --- 127.0.0.1 tcpbench statistics --- 2569702784 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3347.670/3415.966/3497.130/55.891 Mbps Elapsed: 6000 Mbps: 2669.407 Peak Mbps: 2724.036 Rx PPS: 226682 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2016665024 bytes received over 6.017 seconds bandwidth min/avg/max/std-dev = 2641.993/2680.920/2724.036/27.617 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s