START sys/kern/sosplice/perf 2025-01-11T02:27:23Z ==== 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 1921046284 15368.370 100.00% Conn: 1 Mbps: 15368.370 Peak Mbps: 15368.370 Avg Mbps: 15368.370 999 1920866346 15382.313 100.00% Conn: 1 Mbps: 15382.313 Peak Mbps: 15382.313 Avg Mbps: 15382.313 2000 1925871798 15422.397 100.00% Conn: 1 Mbps: 15422.397 Peak Mbps: 15422.397 Avg Mbps: 15422.397 2000 1925986292 15407.890 100.00% Conn: 1 Mbps: 15407.890 Peak Mbps: 15407.890 Avg Mbps: 15407.890 3000 1928391818 15427.135 100.00% Conn: 1 Mbps: 15427.135 Peak Mbps: 15427.135 Avg Mbps: 15427.135 3000 1928424546 15427.396 100.00% Conn: 1 Mbps: 15427.396 Peak Mbps: 15427.396 Avg Mbps: 15427.396 4000 1926560022 15412.480 100.00% Conn: 1 Mbps: 15412.480 Peak Mbps: 15427.135 Avg Mbps: 15412.480 4000 1926560022 15427.908 100.00% Conn: 1 Mbps: 15427.908 Peak Mbps: 15427.908 Avg Mbps: 15427.908 5000 1931696650 15469.042 100.00% Conn: 1 Mbps: 15469.042 Peak Mbps: 15469.042 Avg Mbps: 15469.042 5000 1931696638 15453.573 100.00% Conn: 1 Mbps: 15453.573 Peak Mbps: 15453.573 Avg Mbps: 15453.573 --- 127.0.0.1 tcpbench statistics --- 11562466676 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15368.370/15419.885/15469.042/32.199 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11562466676 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15382.313/15419.816/15453.573/23.712 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 1484648784 11877.190 100.00% Conn: 1 Mbps: 11877.190 Peak Mbps: 11877.190 Avg Mbps: 11877.190 999 1484616068 11888.817 100.00% Conn: 1 Mbps: 11888.817 Peak Mbps: 11888.817 Avg Mbps: 11888.817 2000 1489342886 11926.670 100.00% Conn: 1 Mbps: 11926.670 Peak Mbps: 11926.670 Avg Mbps: 11926.670 2000 1489342886 11914.743 100.00% Conn: 1 Mbps: 11914.743 Peak Mbps: 11914.743 Avg Mbps: 11914.743 3000 1487137060 11909.005 100.00% Conn: 1 Mbps: 11909.005 Peak Mbps: 11926.670 Avg Mbps: 11909.005 2999 1487202492 11909.529 100.00% Conn: 1 Mbps: 11909.529 Peak Mbps: 11914.743 Avg Mbps: 11909.529 4000 1491586232 11932.690 100.00% 3999 1491455368 11931.643 100.00% Conn: 1 Mbps: 11932.690 Peak Mbps: 11932.690 Avg Mbps: 11932.690 Conn: 1 Mbps: 11931.643 Peak Mbps: 11931.643 Avg Mbps: 11931.643 5000 1490995368 11927.963 100.00% 5000 1491028084 11928.225 100.00% Conn: 1 Mbps: 11927.963 Peak Mbps: 11931.643 Avg Mbps: 11927.963 Conn: 1 Mbps: 11928.225 Peak Mbps: 11932.690 Avg Mbps: 11928.225 --- 127.0.0.1 tcpbench statistics --- 8932300680 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11877.190/11914.756/11932.690/20.441 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8932300680 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11888.817/11914.539/11931.643/15.228 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: 3020.921 Peak Mbps: 3020.921 Tx PPS: 256532 Elapsed: 1000 Mbps: 2602.484 Peak Mbps: 2602.484 Rx PPS: 220999 Elapsed: 2000 Mbps: 2977.689 Peak Mbps: 3020.921 Tx PPS: 252860 Elapsed: 1999 Mbps: 2628.241 Peak Mbps: 2628.241 Rx PPS: 223186 Elapsed: 3000 Mbps: 2982.837 Peak Mbps: 3020.921 Tx PPS: 253298 Elapsed: 2999 Mbps: 2597.350 Peak Mbps: 2628.241 Rx PPS: 220563 Elapsed: 4000 Mbps: 2983.450 Peak Mbps: 3020.921 Tx PPS: 253350 Elapsed: 4000 Mbps: 2591.238 Peak Mbps: 2628.241 Rx PPS: 220044 Elapsed: 5000 Mbps: 3016.281 Peak Mbps: 3020.921 Tx PPS: 256138 Elapsed: 5000 Mbps: 2576.283 Peak Mbps: 2628.241 Rx PPS: 218774 --- 127.0.0.1 tcpbench statistics --- 2242621440 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2977.689/2996.236/3020.921/18.429 Mbps Elapsed: 6005 Mbps: 2431.609 Peak Mbps: 2628.241 Rx PPS: 206488 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1929716928 bytes received over 6.008 seconds bandwidth min/avg/max/std-dev = 2431.609/2571.201/2628.241/64.329 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: 3002.409 Peak Mbps: 3002.409 Tx PPS: 254960 Elapsed: 1000 Mbps: 2279.292 Peak Mbps: 2279.292 Rx PPS: 193554 Elapsed: 2000 Mbps: 2939.438 Peak Mbps: 3002.409 Tx PPS: 249612 Elapsed: 1999 Mbps: 2213.369 Peak Mbps: 2279.292 Rx PPS: 187955 Elapsed: 3036 Mbps: 2171.899 Peak Mbps: 2279.292 Rx PPS: 184434 Elapsed: 3036 Mbps: 2990.524 Peak Mbps: 3002.409 Tx PPS: 253950 Elapsed: 4036 Mbps: 2327.962 Peak Mbps: 2327.962 Rx PPS: 197687 Elapsed: 4036 Mbps: 3161.750 Peak Mbps: 3161.750 Tx PPS: 268491 Elapsed: 5036 Mbps: 2135.695 Peak Mbps: 2327.962 Rx PPS: 181360 Elapsed: 5036 Mbps: 2972.427 Peak Mbps: 3161.750 Tx PPS: 252414 --- 127.0.0.1 tcpbench statistics --- 2248304832 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2939.438/3013.310/3161.750/77.202 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1667009088 bytes received over 6.027 seconds bandwidth min/avg/max/std-dev = 2135.695/2225.644/2327.962/69.967 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s