START sys/kern/sosplice/perf 2024-06-15T19:53:46Z ==== 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 1181889866 9455.119 100.00% Conn: 1 Mbps: 9455.119 Peak Mbps: 9455.119 Avg Mbps: 9455.119 999 1181751800 9463.478 100.00% Conn: 1 Mbps: 9463.478 Peak Mbps: 9463.478 Avg Mbps: 9463.478 2000 1188185588 9515.000 100.00% Conn: 1 Mbps: 9515.000 Peak Mbps: 9515.000 Avg Mbps: 9515.000 1999 1188276568 9506.213 100.00% Conn: 1 Mbps: 9506.213 Peak Mbps: 9506.213 Avg Mbps: 9506.213 3000 1186026480 9488.212 100.00% Conn: 1 Mbps: 9488.212 Peak Mbps: 9515.000 Avg Mbps: 9488.212 2999 1185993336 9487.947 100.00% Conn: 1 Mbps: 9487.947 Peak Mbps: 9506.213 Avg Mbps: 9487.947 4000 1185324238 9482.594 100.00% Conn: 1 Mbps: 9482.594 Peak Mbps: 9515.000 Avg Mbps: 9482.594 4000 1185323198 9482.586 100.00% Conn: 1 Mbps: 9482.586 Peak Mbps: 9506.213 Avg Mbps: 9482.586 5000 1187417554 9499.340 100.00% Conn: 1 Mbps: 9499.340 Peak Mbps: 9515.000 Avg Mbps: 9499.340 5000 1187417902 9499.343 100.00% Conn: 1 Mbps: 9499.343 Peak Mbps: 9506.213 Avg Mbps: 9499.343 --- 127.0.0.1 tcpbench statistics --- 7116587508 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9455.119/9488.053/9515.000/19.839 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7116587508 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9463.478/9487.913/9506.213/14.771 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 1318245540 10545.964 100.00% Conn: 1 Mbps: 10545.964 Peak Mbps: 10545.964 Avg Mbps: 10545.964 1000 1316441074 10531.529 100.00% Conn: 1 Mbps: 10531.529 Peak Mbps: 10531.529 Avg Mbps: 10531.529 2000 1328629940 10639.679 100.00% Conn: 1 Mbps: 10639.679 Peak Mbps: 10639.679 Avg Mbps: 10639.679 2000 1328807936 10630.463 100.00% Conn: 1 Mbps: 10630.463 Peak Mbps: 10630.463 Avg Mbps: 10630.463 3000 1322691598 10581.533 100.00% Conn: 1 Mbps: 10581.533 Peak Mbps: 10639.679 Avg Mbps: 10581.533 3000 1322778624 10592.822 100.00% Conn: 1 Mbps: 10592.822 Peak Mbps: 10630.463 Avg Mbps: 10592.822 4000 1320639394 10565.115 100.00% Conn: 1 Mbps: 10565.115 Peak Mbps: 10639.679 Avg Mbps: 10565.115 4000 1320681472 10565.452 100.00% Conn: 1 Mbps: 10565.452 Peak Mbps: 10630.463 Avg Mbps: 10565.452 5000 1327742942 10621.944 100.00% Conn: 1 Mbps: 10621.944 Peak Mbps: 10639.679 Avg Mbps: 10621.944 5000 1327759360 10622.075 100.00% Conn: 1 Mbps: 10622.075 Peak Mbps: 10630.463 Avg Mbps: 10622.075 --- 127.0.0.1 tcpbench statistics --- 7948633472 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 10545.964/10590.847/10639.679/34.971 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7948633472 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10531.529/10588.468/10630.463/36.562 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: 1194.134 Peak Mbps: 1194.134 Tx PPS: 101404 Elapsed: 999 Mbps: 1195.376 Peak Mbps: 1195.376 Rx PPS: 101509 Elapsed: 2000 Mbps: 1199.160 Peak Mbps: 1199.160 Tx PPS: 101830 Elapsed: 1999 Mbps: 1199.207 Peak Mbps: 1199.207 Rx PPS: 101834 Elapsed: 3000 Mbps: 1202.341 Peak Mbps: 1202.341 Tx PPS: 102101 Elapsed: 2999 Mbps: 1202.365 Peak Mbps: 1202.365 Rx PPS: 102103 Elapsed: 4000 Mbps: 1202.954 Peak Mbps: 1202.954 Tx PPS: 102153 Elapsed: 3999 Mbps: 1202.918 Peak Mbps: 1202.918 Rx PPS: 102150 Elapsed: 5000 Mbps: 1200.893 Peak Mbps: 1202.954 Tx PPS: 101978 Elapsed: 5000 Mbps: 1200.916 Peak Mbps: 1202.918 Rx PPS: 101980 --- 127.0.0.1 tcpbench statistics --- 900173632 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1194.134/1199.896/1202.954/3.165 Mbps Elapsed: 6002 Mbps: 1200.600 Peak Mbps: 1202.918 Rx PPS: 101953 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 900173632 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1195.376/1200.230/1202.918/2.483 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: 1254.615 Peak Mbps: 1254.615 Tx PPS: 106540 Elapsed: 1000 Mbps: 1252.955 Peak Mbps: 1252.955 Rx PPS: 106399 Elapsed: 2000 Mbps: 1255.340 Peak Mbps: 1255.340 Tx PPS: 106601 Elapsed: 1999 Mbps: 1247.891 Peak Mbps: 1252.955 Rx PPS: 105968 Elapsed: 3000 Mbps: 1254.097 Peak Mbps: 1255.340 Tx PPS: 106496 Elapsed: 3000 Mbps: 1250.564 Peak Mbps: 1252.955 Rx PPS: 106196 Elapsed: 4000 Mbps: 1254.674 Peak Mbps: 1255.340 Tx PPS: 106545 Elapsed: 4000 Mbps: 1252.731 Peak Mbps: 1252.955 Rx PPS: 106380 Elapsed: 5000 Mbps: 1253.478 Peak Mbps: 1255.340 Tx PPS: 106443 Elapsed: 5000 Mbps: 1247.161 Peak Mbps: 1252.955 Rx PPS: 105907 --- 127.0.0.1 tcpbench statistics --- 940441664 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1253.478/1254.441/1255.340/0.623 Mbps Elapsed: 6002 Mbps: 1251.241 Peak Mbps: 1252.955 Rx PPS: 106253 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 937974592 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1247.161/1250.424/1252.955/2.217 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s