START sys/kern/sosplice/perf 2024-03-15T19:34:52Z ==== 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 1156831402 9254.651 100.00% Conn: 1 Mbps: 9254.651 Peak Mbps: 9254.651 Avg Mbps: 9254.651 1000 1157076772 9256.614 100.00% Conn: 1 Mbps: 9256.614 Peak Mbps: 9256.614 Avg Mbps: 9256.614 2000 1162702272 9310.929 100.00% Conn: 1 Mbps: 9310.929 Peak Mbps: 9310.929 Avg Mbps: 9310.929 2000 1162980878 9303.847 100.00% Conn: 1 Mbps: 9303.847 Peak Mbps: 9303.847 Avg Mbps: 9303.847 3000 1158440406 9276.800 100.00% Conn: 1 Mbps: 9276.800 Peak Mbps: 9310.929 Avg Mbps: 9276.800 3000 1158490220 9267.922 100.00% Conn: 1 Mbps: 9267.922 Peak Mbps: 9303.847 Avg Mbps: 9267.922 4000 1160546320 9284.371 100.00% Conn: 1 Mbps: 9284.371 Peak Mbps: 9310.929 Avg Mbps: 9284.371 4000 1160646344 9285.171 100.00% Conn: 1 Mbps: 9285.171 Peak Mbps: 9303.847 Avg Mbps: 9285.171 5000 1162687030 9301.496 100.00% Conn: 1 Mbps: 9301.496 Peak Mbps: 9310.929 Avg Mbps: 9301.496 5000 1162620558 9300.964 100.00% Conn: 1 Mbps: 9300.964 Peak Mbps: 9303.847 Avg Mbps: 9300.964 --- 127.0.0.1 tcpbench statistics --- 6960704650 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9256.614/9286.042/9310.929/19.039 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6960704650 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9254.651/9282.511/9303.847/18.931 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 1261604912 10092.839 100.00% Conn: 1 Mbps: 10092.839 Peak Mbps: 10092.839 Avg Mbps: 10092.839 1000 1259973942 10079.792 100.00% Conn: 1 Mbps: 10079.792 Peak Mbps: 10079.792 Avg Mbps: 10079.792 2000 1267328898 10138.631 100.00% Conn: 1 Mbps: 10138.631 Peak Mbps: 10138.631 Avg Mbps: 10138.631 2000 1267466240 10139.730 100.00% Conn: 1 Mbps: 10139.730 Peak Mbps: 10139.730 Avg Mbps: 10139.730 3000 1265399268 10123.194 100.00% Conn: 1 Mbps: 10123.194 Peak Mbps: 10138.631 Avg Mbps: 10123.194 3000 1265369088 10122.953 100.00% Conn: 1 Mbps: 10122.953 Peak Mbps: 10139.730 Avg Mbps: 10122.953 4000 1266462704 10131.702 100.00% Conn: 1 Mbps: 10131.702 Peak Mbps: 10138.631 Avg Mbps: 10131.702 4000 1266417664 10131.341 100.00% Conn: 1 Mbps: 10131.341 Peak Mbps: 10139.730 Avg Mbps: 10131.341 5000 1263871962 10110.976 100.00% Conn: 1 Mbps: 10110.976 Peak Mbps: 10138.631 Avg Mbps: 10110.976 5000 1264058368 10112.467 100.00% Conn: 1 Mbps: 10112.467 Peak Mbps: 10139.730 Avg Mbps: 10112.467 --- 127.0.0.1 tcpbench statistics --- 7589962478 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10092.839/10119.468/10138.631/16.199 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7589962478 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10079.792/10117.256/10139.730/20.796 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: 1155.626 Peak Mbps: 1155.626 Tx PPS: 98134 Elapsed: 1000 Mbps: 1155.685 Peak Mbps: 1155.685 Rx PPS: 98139 Elapsed: 2000 Mbps: 1159.706 Peak Mbps: 1159.706 Tx PPS: 98480 Elapsed: 1999 Mbps: 1159.765 Peak Mbps: 1159.765 Rx PPS: 98485 Elapsed: 3000 Mbps: 1160.419 Peak Mbps: 1160.419 Tx PPS: 98541 Elapsed: 2999 Mbps: 1160.395 Peak Mbps: 1160.395 Rx PPS: 98539 Elapsed: 4000 Mbps: 1161.863 Peak Mbps: 1161.863 Tx PPS: 98663 Elapsed: 3999 Mbps: 1160.725 Peak Mbps: 1160.725 Rx PPS: 98567 Elapsed: 5000 Mbps: 1161.686 Peak Mbps: 1161.863 Tx PPS: 98648 Elapsed: 5000 Mbps: 1160.489 Peak Mbps: 1160.725 Rx PPS: 98547 --- 127.0.0.1 tcpbench statistics --- 869717952 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1155.626/1159.860/1161.863/2.263 Mbps Elapsed: 6002 Mbps: 1159.525 Peak Mbps: 1160.725 Rx PPS: 98465 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 869717952 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1155.685/1159.431/1160.725/1.726 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: 1042.270 Peak Mbps: 1042.270 Tx PPS: 88508 Elapsed: 999 Mbps: 1043.361 Peak Mbps: 1043.361 Rx PPS: 88600 Elapsed: 2000 Mbps: 1043.691 Peak Mbps: 1043.691 Tx PPS: 88628 Elapsed: 1999 Mbps: 1043.644 Peak Mbps: 1043.644 Rx PPS: 88624 Elapsed: 3000 Mbps: 1041.564 Peak Mbps: 1043.691 Tx PPS: 88448 Elapsed: 3000 Mbps: 1041.634 Peak Mbps: 1043.644 Rx PPS: 88454 Elapsed: 4000 Mbps: 1046.474 Peak Mbps: 1046.474 Tx PPS: 88865 Elapsed: 4000 Mbps: 1046.380 Peak Mbps: 1046.380 Rx PPS: 88857 Elapsed: 5000 Mbps: 1043.295 Peak Mbps: 1046.474 Tx PPS: 88595 Elapsed: 5000 Mbps: 1043.389 Peak Mbps: 1046.380 Rx PPS: 88603 --- 127.0.0.1 tcpbench statistics --- 781898432 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1041.564/1043.459/1046.474/1.684 Mbps Elapsed: 6002 Mbps: 1036.652 Peak Mbps: 1046.380 Rx PPS: 88030 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 781880768 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1036.652/1042.510/1046.380/2.968 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.47s