START sys/kern/sosplice/perf 2025-01-02T02:23:28Z ==== 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 2172780712 17382.246 100.00% Conn: 1 Mbps: 17382.246 Peak Mbps: 17382.246 Avg Mbps: 17382.246 999 2172682564 17398.859 100.00% Conn: 1 Mbps: 17398.859 Peak Mbps: 17398.859 Avg Mbps: 17398.859 2000 2180523458 17461.649 100.00% Conn: 1 Mbps: 17461.649 Peak Mbps: 17461.649 Avg Mbps: 17461.649 2000 2180654322 17445.235 100.00% Conn: 1 Mbps: 17445.235 Peak Mbps: 17445.235 Avg Mbps: 17445.235 3000 2181421552 17468.841 100.00% Conn: 1 Mbps: 17468.841 Peak Mbps: 17468.841 Avg Mbps: 17468.841 3000 2181585096 17452.681 100.00% Conn: 1 Mbps: 17452.681 Peak Mbps: 17452.681 Avg Mbps: 17452.681 4000 2181011918 17448.095 100.00% Conn: 1 Mbps: 17448.095 Peak Mbps: 17468.841 Avg Mbps: 17448.095 4000 2180848362 17446.787 100.00% Conn: 1 Mbps: 17446.787 Peak Mbps: 17452.681 Avg Mbps: 17446.787 5000 2177661876 17421.295 100.00% Conn: 1 Mbps: 17421.295 Peak Mbps: 17468.841 Avg Mbps: 17421.295 5000 2177661876 17421.295 100.00% Conn: 1 Mbps: 17421.295 Peak Mbps: 17452.681 Avg Mbps: 17421.295 --- 127.0.0.1 tcpbench statistics --- 13074135940 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17382.246/17436.425/17468.841/31.584 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13074135940 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 17398.859/17432.971/17452.681/20.148 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 1879664418 15037.315 100.00% Conn: 1 Mbps: 15037.315 Peak Mbps: 15037.315 Avg Mbps: 15037.315 999 1879631702 15052.106 100.00% Conn: 1 Mbps: 15052.106 Peak Mbps: 15052.106 Avg Mbps: 15052.106 2000 1896627660 15188.209 100.00% Conn: 1 Mbps: 15188.209 Peak Mbps: 15188.209 Avg Mbps: 15188.209 2000 1896774870 15174.199 100.00% Conn: 1 Mbps: 15174.199 Peak Mbps: 15174.199 Avg Mbps: 15174.199 3000 1896315366 15170.523 100.00% Conn: 1 Mbps: 15170.523 Peak Mbps: 15188.209 Avg Mbps: 15170.523 3000 1896299008 15170.392 100.00% Conn: 1 Mbps: 15170.392 Peak Mbps: 15174.199 Avg Mbps: 15170.392 4000 1894730476 15173.017 100.00% Conn: 1 Mbps: 15173.017 Peak Mbps: 15188.209 Avg Mbps: 15173.017 4000 1894992168 15159.937 100.00% Conn: 1 Mbps: 15159.937 Peak Mbps: 15174.199 Avg Mbps: 15159.937 5000 1891604874 15132.839 100.00% Conn: 1 Mbps: 15132.839 Peak Mbps: 15188.209 Avg Mbps: 15132.839 5000 1891474046 15131.792 100.00% Conn: 1 Mbps: 15131.792 Peak Mbps: 15174.199 Avg Mbps: 15131.792 --- 127.0.0.1 tcpbench statistics --- 11351481274 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15037.315/15140.381/15188.209/54.664 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11351481274 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15052.106/15137.685/15174.199/45.292 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: 1040 Mbps: 2484.985 Peak Mbps: 2484.985 Rx PPS: 211021 Elapsed: 1041 Mbps: 3055.097 Peak Mbps: 3055.097 Tx PPS: 259434 Elapsed: 2040 Mbps: 2506.249 Peak Mbps: 2506.249 Rx PPS: 212826 Elapsed: 2041 Mbps: 3032.161 Peak Mbps: 3055.097 Tx PPS: 257486 Elapsed: 3040 Mbps: 2475.044 Peak Mbps: 2506.249 Rx PPS: 210177 Elapsed: 3041 Mbps: 2982.413 Peak Mbps: 3055.097 Tx PPS: 253262 Elapsed: 4040 Mbps: 2463.539 Peak Mbps: 2506.249 Rx PPS: 209200 Elapsed: 4041 Mbps: 2975.937 Peak Mbps: 3055.097 Tx PPS: 252712 Elapsed: 5040 Mbps: 2484.960 Peak Mbps: 2506.249 Rx PPS: 211019 Elapsed: 5041 Mbps: 2994.802 Peak Mbps: 3055.097 Tx PPS: 254314 --- 127.0.0.1 tcpbench statistics --- 2252276288 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2975.937/3008.082/3055.097/30.525 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1855666496 bytes received over 6.017 seconds bandwidth min/avg/max/std-dev = 2463.539/2482.955/2506.249/14.073 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: 3088.762 Peak Mbps: 3088.762 Tx PPS: 262293 Elapsed: 1000 Mbps: 2230.068 Peak Mbps: 2230.068 Rx PPS: 189374 Elapsed: 2000 Mbps: 3026.432 Peak Mbps: 3088.762 Tx PPS: 257000 Elapsed: 1999 Mbps: 2132.175 Peak Mbps: 2230.068 Rx PPS: 181061 Elapsed: 3000 Mbps: 3026.291 Peak Mbps: 3088.762 Tx PPS: 256988 Elapsed: 2999 Mbps: 2103.264 Peak Mbps: 2230.068 Rx PPS: 178606 Elapsed: 4000 Mbps: 3198.668 Peak Mbps: 3198.668 Tx PPS: 271626 Elapsed: 4000 Mbps: 2240.926 Peak Mbps: 2240.926 Rx PPS: 190296 Elapsed: 5000 Mbps: 3014.939 Peak Mbps: 3198.668 Tx PPS: 256024 Elapsed: 5000 Mbps: 2123.460 Peak Mbps: 2240.926 Rx PPS: 180321 --- 127.0.0.1 tcpbench statistics --- 2290168512 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3014.939/3071.018/3198.668/68.910 Mbps Elapsed: 6000 Mbps: 2139.122 Peak Mbps: 2240.926 Rx PPS: 181651 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1620969344 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 2103.264/2161.503/2240.926/53.556 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s