START sys/kern/sosplice/perf 2024-07-16T01:27:21Z ==== 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 1571725912 12573.807 100.00% Conn: 1 Mbps: 12573.807 Peak Mbps: 12573.807 Avg Mbps: 12573.807 1000 1571713426 12573.707 100.00% Conn: 1 Mbps: 12573.707 Peak Mbps: 12573.707 Avg Mbps: 12573.707 2000 1571306604 12570.453 100.00% Conn: 1 Mbps: 12570.453 Peak Mbps: 12573.807 Avg Mbps: 12570.453 2000 1571368892 12570.951 100.00% Conn: 1 Mbps: 12570.951 Peak Mbps: 12573.707 Avg Mbps: 12570.951 3000 1571860304 12574.882 100.00% Conn: 1 Mbps: 12574.882 Peak Mbps: 12574.882 Avg Mbps: 12574.882 3000 1571764388 12574.115 100.00% Conn: 1 Mbps: 12574.115 Peak Mbps: 12574.115 Avg Mbps: 12574.115 4000 1571650182 12573.201 100.00% Conn: 1 Mbps: 12573.201 Peak Mbps: 12574.882 Avg Mbps: 12573.201 4000 1571748422 12573.987 100.00% Conn: 1 Mbps: 12573.987 Peak Mbps: 12574.115 Avg Mbps: 12573.987 5000 1578921224 12631.370 100.00% Conn: 1 Mbps: 12631.370 Peak Mbps: 12631.370 Avg Mbps: 12631.370 5000 1578967246 12644.382 100.00% Conn: 1 Mbps: 12644.382 Peak Mbps: 12644.382 Avg Mbps: 12644.382 --- 127.0.0.1 tcpbench statistics --- 9436490080 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12570.453/12584.743/12631.370/23.359 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9436490080 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12570.951/12587.429/12644.382/28.501 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 1894373742 15154.990 100.00% Conn: 1 Mbps: 15154.990 Peak Mbps: 15154.990 Avg Mbps: 15154.990 1000 1892549334 15140.395 100.00% Conn: 1 Mbps: 15140.395 Peak Mbps: 15140.395 Avg Mbps: 15140.395 2000 1905974298 15247.794 100.00% Conn: 1 Mbps: 15247.794 Peak Mbps: 15247.794 Avg Mbps: 15247.794 2000 1906049024 15248.392 100.00% Conn: 1 Mbps: 15248.392 Peak Mbps: 15248.392 Avg Mbps: 15248.392 3000 1905961044 15247.688 100.00% Conn: 1 Mbps: 15247.688 Peak Mbps: 15247.794 Avg Mbps: 15247.688 3000 1906311168 15250.489 100.00% Conn: 1 Mbps: 15250.489 Peak Mbps: 15250.489 Avg Mbps: 15250.489 4000 1907978540 15263.828 100.00% Conn: 1 Mbps: 15263.828 Peak Mbps: 15263.828 Avg Mbps: 15263.828 4000 1907884032 15263.072 100.00% Conn: 1 Mbps: 15263.072 Peak Mbps: 15263.072 Avg Mbps: 15263.072 5000 1904060064 15232.481 100.00% Conn: 1 Mbps: 15232.481 Peak Mbps: 15263.828 Avg Mbps: 15232.481 5000 1903951872 15231.615 100.00% Conn: 1 Mbps: 15231.615 Peak Mbps: 15263.072 Avg Mbps: 15231.615 --- 127.0.0.1 tcpbench statistics --- 11422967646 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15154.990/15229.356/15263.828/38.482 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11422967646 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15140.395/15226.793/15263.072/44.344 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: 1543.504 Peak Mbps: 1543.504 Tx PPS: 131072 Elapsed: 1000 Mbps: 1543.516 Peak Mbps: 1543.516 Rx PPS: 131073 Elapsed: 2000 Mbps: 1547.819 Peak Mbps: 1547.819 Tx PPS: 131438 Elapsed: 2000 Mbps: 1547.878 Peak Mbps: 1547.878 Rx PPS: 131443 Elapsed: 3000 Mbps: 1551.759 Peak Mbps: 1551.759 Tx PPS: 131773 Elapsed: 3000 Mbps: 1551.747 Peak Mbps: 1551.747 Rx PPS: 131772 Elapsed: 4000 Mbps: 1550.613 Peak Mbps: 1551.759 Tx PPS: 131675 Elapsed: 4000 Mbps: 1549.109 Peak Mbps: 1551.747 Rx PPS: 131548 Elapsed: 5000 Mbps: 1552.972 Peak Mbps: 1552.972 Tx PPS: 131876 Elapsed: 5000 Mbps: 1553.019 Peak Mbps: 1553.019 Rx PPS: 131880 --- 127.0.0.1 tcpbench statistics --- 1161731840 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1543.504/1549.333/1552.972/3.377 Mbps Elapsed: 6002 Mbps: 1547.040 Peak Mbps: 1553.019 Rx PPS: 131372 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1161731840 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1543.516/1548.718/1553.019/3.120 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: 1568.669 Peak Mbps: 1568.669 Tx PPS: 133209 Elapsed: 1000 Mbps: 1568.681 Peak Mbps: 1568.681 Rx PPS: 133210 Elapsed: 2000 Mbps: 1555.422 Peak Mbps: 1568.669 Tx PPS: 132084 Elapsed: 2000 Mbps: 1555.634 Peak Mbps: 1568.681 Rx PPS: 132102 Elapsed: 3000 Mbps: 1556.943 Peak Mbps: 1568.669 Tx PPS: 132213 Elapsed: 3000 Mbps: 1555.339 Peak Mbps: 1568.681 Rx PPS: 132077 Elapsed: 4000 Mbps: 1577.537 Peak Mbps: 1577.537 Tx PPS: 133962 Elapsed: 4000 Mbps: 1577.525 Peak Mbps: 1577.525 Rx PPS: 133961 Elapsed: 5000 Mbps: 1565.560 Peak Mbps: 1577.537 Tx PPS: 132945 Elapsed: 5000 Mbps: 1565.607 Peak Mbps: 1577.525 Rx PPS: 132949 --- 127.0.0.1 tcpbench statistics --- 1171703168 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1555.422/1564.826/1577.537/8.093 Mbps Elapsed: 6002 Mbps: 1549.296 Peak Mbps: 1577.525 Rx PPS: 131563 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1171703168 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1549.296/1562.014/1577.525/9.530 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.57s