START sys/kern/sosplice/perf 2024-05-05T19:11:44Z ==== 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 1134471652 9075.773 100.00% Conn: 1 Mbps: 9075.773 Peak Mbps: 9075.773 Avg Mbps: 9075.773 1000 1134391586 9075.133 100.00% Conn: 1 Mbps: 9075.133 Peak Mbps: 9075.133 Avg Mbps: 9075.133 2000 1138172180 9114.492 100.00% Conn: 1 Mbps: 9114.492 Peak Mbps: 9114.492 Avg Mbps: 9114.492 2000 1138187150 9105.497 100.00% Conn: 1 Mbps: 9105.497 Peak Mbps: 9105.497 Avg Mbps: 9105.497 3000 1141619738 9132.958 100.00% Conn: 1 Mbps: 9132.958 Peak Mbps: 9132.958 Avg Mbps: 9132.958 3000 1141603148 9132.825 100.00% Conn: 1 Mbps: 9132.825 Peak Mbps: 9132.825 Avg Mbps: 9132.825 4000 1140083190 9129.795 100.00% Conn: 1 Mbps: 9129.795 Peak Mbps: 9132.958 Avg Mbps: 9129.795 4000 1140149662 9121.197 100.00% Conn: 1 Mbps: 9121.197 Peak Mbps: 9132.825 Avg Mbps: 9121.197 5000 1141524470 9132.196 100.00% Conn: 1 Mbps: 9132.196 Peak Mbps: 9132.958 Avg Mbps: 9132.196 5000 1141529914 9132.239 100.00% Conn: 1 Mbps: 9132.239 Peak Mbps: 9132.825 Avg Mbps: 9132.239 --- 127.0.0.1 tcpbench statistics --- 6837997942 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9075.773/9117.043/9132.958/21.704 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6837997942 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9075.133/9113.378/9132.825/21.540 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 1250838206 10006.706 100.00% Conn: 1 Mbps: 10006.706 Peak Mbps: 10006.706 Avg Mbps: 10006.706 1000 1248971086 9991.769 100.00% Conn: 1 Mbps: 9991.769 Peak Mbps: 9991.769 Avg Mbps: 9991.769 2000 1263699830 10109.599 100.00% Conn: 1 Mbps: 10109.599 Peak Mbps: 10109.599 Avg Mbps: 10109.599 2000 1263796224 10110.370 100.00% Conn: 1 Mbps: 10110.370 Peak Mbps: 10110.370 Avg Mbps: 10110.370 3000 1262771572 10102.173 100.00% Conn: 1 Mbps: 10102.173 Peak Mbps: 10109.599 Avg Mbps: 10102.173 3000 1263009792 10104.078 100.00% Conn: 1 Mbps: 10104.078 Peak Mbps: 10110.370 Avg Mbps: 10104.078 4000 1262355624 10098.845 100.00% Conn: 1 Mbps: 10098.845 Peak Mbps: 10109.599 Avg Mbps: 10098.845 4000 1262485504 10099.884 100.00% Conn: 1 Mbps: 10099.884 Peak Mbps: 10110.370 Avg Mbps: 10099.884 5000 1265675800 10125.406 100.00% Conn: 1 Mbps: 10125.406 Peak Mbps: 10125.406 Avg Mbps: 10125.406 5000 1265631232 10125.050 100.00% Conn: 1 Mbps: 10125.050 Peak Mbps: 10125.050 Avg Mbps: 10125.050 --- 127.0.0.1 tcpbench statistics --- 7563997244 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10006.706/10088.546/10125.406/41.932 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7563997244 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9991.769/10086.230/10125.050/47.995 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: 1180.144 Peak Mbps: 1180.144 Tx PPS: 100216 Elapsed: 1000 Mbps: 1180.191 Peak Mbps: 1180.191 Rx PPS: 100220 Elapsed: 2000 Mbps: 1185.227 Peak Mbps: 1185.227 Tx PPS: 100647 Elapsed: 1999 Mbps: 1185.262 Peak Mbps: 1185.262 Rx PPS: 100650 Elapsed: 3000 Mbps: 1190.201 Peak Mbps: 1190.201 Tx PPS: 101070 Elapsed: 2999 Mbps: 1189.011 Peak Mbps: 1189.011 Rx PPS: 100969 Elapsed: 4000 Mbps: 1187.351 Peak Mbps: 1190.201 Tx PPS: 100828 Elapsed: 4000 Mbps: 1187.374 Peak Mbps: 1189.011 Rx PPS: 100830 Elapsed: 5000 Mbps: 1188.128 Peak Mbps: 1190.201 Tx PPS: 100894 Elapsed: 5000 Mbps: 1188.175 Peak Mbps: 1189.011 Rx PPS: 100898 --- 127.0.0.1 tcpbench statistics --- 889464832 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1180.144/1186.210/1190.201/3.426 Mbps Elapsed: 6002 Mbps: 1184.522 Peak Mbps: 1189.011 Rx PPS: 100587 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 889464832 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1180.191/1185.756/1189.011/2.938 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: 1221.689 Peak Mbps: 1221.689 Tx PPS: 103744 Elapsed: 1000 Mbps: 1221.524 Peak Mbps: 1221.524 Rx PPS: 103730 Elapsed: 2000 Mbps: 1224.869 Peak Mbps: 1224.869 Tx PPS: 104014 Elapsed: 1999 Mbps: 1224.893 Peak Mbps: 1224.893 Rx PPS: 104016 Elapsed: 3000 Mbps: 1222.608 Peak Mbps: 1224.869 Tx PPS: 103822 Elapsed: 3000 Mbps: 1222.620 Peak Mbps: 1224.893 Rx PPS: 103823 Elapsed: 4000 Mbps: 1223.785 Peak Mbps: 1224.869 Tx PPS: 103922 Elapsed: 4000 Mbps: 1223.621 Peak Mbps: 1224.893 Rx PPS: 103908 Elapsed: 5000 Mbps: 1223.621 Peak Mbps: 1224.869 Tx PPS: 103908 Elapsed: 5000 Mbps: 1223.562 Peak Mbps: 1224.893 Rx PPS: 103903 --- 127.0.0.1 tcpbench statistics --- 917285632 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1221.689/1223.314/1224.869/1.084 Mbps Elapsed: 6002 Mbps: 1220.403 Peak Mbps: 1224.893 Rx PPS: 103634 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 917229696 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1220.403/1222.770/1224.893/1.474 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s