START sys/kern/sosplice/perf 2024-11-27T06:28:47Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -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 86386466 691.092 100.00% 999 86310912 691.178 100.00% Conn: 1 Mbps: 691.092 Peak Mbps: 691.092 Avg Mbps: 691.092 Conn: 1 Mbps: 691.178 Peak Mbps: 691.178 Avg Mbps: 691.178 2000 86190206 690.212 100.00% Conn: 1 Mbps: 690.212 Peak Mbps: 691.092 Avg Mbps: 690.212 1999 86189742 689.518 100.00% Conn: 1 Mbps: 689.518 Peak Mbps: 691.178 Avg Mbps: 689.518 3000 86157538 689.260 100.00% Conn: 1 Mbps: 689.260 Peak Mbps: 691.092 Avg Mbps: 689.260 3000 86157498 689.260 100.00% Conn: 1 Mbps: 689.260 Peak Mbps: 691.178 Avg Mbps: 689.260 4000 86059330 688.475 100.00% Conn: 1 Mbps: 688.475 Peak Mbps: 691.092 Avg Mbps: 688.475 4000 86026574 688.213 100.00% Conn: 1 Mbps: 688.213 Peak Mbps: 691.178 Avg Mbps: 688.213 5001 85846664 686.773 100.00% Conn: 1 Mbps: 686.773 Peak Mbps: 691.092 Avg Mbps: 686.773 5001 85917696 687.342 100.00% Conn: 1 Mbps: 687.342 Peak Mbps: 691.178 Avg Mbps: 687.342 --- 127.0.0.1 tcpbench statistics --- 516192484 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 686.773/689.162/691.092/1.484 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 516192484 bytes received over 6.041 seconds bandwidth min/avg/max/std-dev = 687.342/689.102/691.178/1.296 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 1002 115994260 926.102 100.00% Conn: 1 Mbps: 926.102 Peak Mbps: 926.102 Avg Mbps: 926.102 1002 114759134 916.241 100.00% Conn: 1 Mbps: 916.241 Peak Mbps: 916.241 Avg Mbps: 916.241 2001 112697710 903.388 100.00% Conn: 1 Mbps: 903.388 Peak Mbps: 926.102 Avg Mbps: 903.388 2003 112721920 900.874 100.00% Conn: 1 Mbps: 900.874 Peak Mbps: 916.241 Avg Mbps: 900.874 3000 113968056 913.572 100.00% Conn: 1 Mbps: 913.572 Peak Mbps: 926.102 Avg Mbps: 913.572 3002 114032640 914.089 100.00% Conn: 1 Mbps: 914.089 Peak Mbps: 916.241 Avg Mbps: 914.089 4003 113912314 909.480 100.00% Conn: 1 Mbps: 909.480 Peak Mbps: 926.102 Avg Mbps: 909.480 4004 113770496 909.255 100.00% Conn: 1 Mbps: 909.255 Peak Mbps: 916.241 Avg Mbps: 909.255 5002 112784836 903.182 100.00% Conn: 1 Mbps: 903.182 Peak Mbps: 926.102 Avg Mbps: 903.182 5005 112984064 902.970 100.00% Conn: 1 Mbps: 902.970 Peak Mbps: 916.241 Avg Mbps: 902.970 --- 127.0.0.1 tcpbench statistics --- 682785454 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 903.182/911.145/926.102/8.437 Mbps 6005 113770496 910.164 100.00% Conn: 1 Mbps: 910.164 Peak Mbps: 916.241 Avg Mbps: 910.164 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 682785454 bytes received over 6.044 seconds bandwidth min/avg/max/std-dev = 900.874/908.932/916.241/5.509 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: 254.738 Peak Mbps: 254.738 Tx PPS: 21632 Elapsed: 999 Mbps: 204.601 Peak Mbps: 204.601 Rx PPS: 17374 Elapsed: 2000 Mbps: 271.378 Peak Mbps: 271.378 Tx PPS: 23045 Elapsed: 2022 Mbps: 203.096 Peak Mbps: 204.601 Rx PPS: 17246 Elapsed: 3000 Mbps: 260.273 Peak Mbps: 271.378 Tx PPS: 22102 Elapsed: 3022 Mbps: 223.391 Peak Mbps: 223.391 Rx PPS: 18970 Elapsed: 4000 Mbps: 276.077 Peak Mbps: 276.077 Tx PPS: 23444 Elapsed: 4049 Mbps: 219.245 Peak Mbps: 223.391 Rx PPS: 18617 Elapsed: 5000 Mbps: 252.795 Peak Mbps: 276.077 Tx PPS: 21467 Elapsed: 5049 Mbps: 226.217 Peak Mbps: 226.217 Rx PPS: 19210 --- 127.0.0.1 tcpbench statistics --- 197270080 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 252.795/263.052/276.077/9.176 Mbps Elapsed: 6052 Mbps: 206.444 Peak Mbps: 226.217 Rx PPS: 17530 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 161671232 bytes received over 6.052 seconds bandwidth min/avg/max/std-dev = 203.096/213.832/226.217/9.391 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: 276.583 Peak Mbps: 276.583 Tx PPS: 23487 Elapsed: 999 Mbps: 201.901 Peak Mbps: 201.901 Rx PPS: 17145 Elapsed: 2000 Mbps: 247.331 Peak Mbps: 276.583 Tx PPS: 21003 Elapsed: 2002 Mbps: 201.426 Peak Mbps: 201.901 Rx PPS: 17104 Elapsed: 3000 Mbps: 268.340 Peak Mbps: 276.583 Tx PPS: 22787 Elapsed: 3032 Mbps: 195.161 Peak Mbps: 201.901 Rx PPS: 16572 Elapsed: 4000 Mbps: 254.444 Peak Mbps: 276.583 Tx PPS: 21607 Elapsed: 4032 Mbps: 214.794 Peak Mbps: 214.794 Rx PPS: 18240 Elapsed: 5000 Mbps: 260.191 Peak Mbps: 276.583 Tx PPS: 22095 Elapsed: 5032 Mbps: 206.304 Peak Mbps: 214.794 Rx PPS: 17519 --- 127.0.0.1 tcpbench statistics --- 195778944 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 247.331/261.378/276.583/10.261 Mbps Elapsed: 6044 Mbps: 211.129 Peak Mbps: 214.794 Rx PPS: 17928 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 154886784 bytes received over 6.047 seconds bandwidth min/avg/max/std-dev = 195.161/205.119/214.794/6.510 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m37.90s