START sys/kern/sosplice/perf 2025-01-15T02:28:56Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 1796502518 14372.020 100.00% Conn: 1 Mbps: 14372.020 Peak Mbps: 14372.020 Avg Mbps: 14372.020 1000 1796469790 14371.758 100.00% Conn: 1 Mbps: 14371.758 Peak Mbps: 14371.758 Avg Mbps: 14371.758 2000 1812058434 14510.978 100.00% Conn: 1 Mbps: 14510.978 Peak Mbps: 14510.978 Avg Mbps: 14510.978 2000 1812123970 14496.992 100.00% Conn: 1 Mbps: 14496.992 Peak Mbps: 14496.992 Avg Mbps: 14496.992 3000 1824156300 14593.250 100.00% Conn: 1 Mbps: 14593.250 Peak Mbps: 14593.250 Avg Mbps: 14593.250 3000 1824123480 14592.988 100.00% Conn: 1 Mbps: 14592.988 Peak Mbps: 14592.988 Avg Mbps: 14592.988 4000 1803492292 14427.938 100.00% Conn: 1 Mbps: 14427.938 Peak Mbps: 14593.250 Avg Mbps: 14427.938 4000 1803590440 14428.724 100.00% Conn: 1 Mbps: 14428.724 Peak Mbps: 14592.988 Avg Mbps: 14428.724 5000 1825304924 14617.056 100.00% Conn: 1 Mbps: 14617.056 Peak Mbps: 14617.056 Avg Mbps: 14617.056 5000 1825272220 14602.178 100.00% Conn: 1 Mbps: 14602.178 Peak Mbps: 14602.178 Avg Mbps: 14602.178 --- 127.0.0.1 tcpbench statistics --- 10883191072 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14372.020/14504.249/14617.056/93.808 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10883191072 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14371.758/14498.528/14602.178/90.124 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 1784681234 14277.450 100.00% Conn: 1 Mbps: 14277.450 Peak Mbps: 14277.450 Avg Mbps: 14277.450 999 1784517654 14290.432 100.00% Conn: 1 Mbps: 14290.432 Peak Mbps: 14290.432 Avg Mbps: 14290.432 2000 1800696256 14419.990 100.00% Conn: 1 Mbps: 14419.990 Peak Mbps: 14419.990 Avg Mbps: 14419.990 1999 1800827120 14406.617 100.00% Conn: 1 Mbps: 14406.617 Peak Mbps: 14406.617 Avg Mbps: 14406.617 3000 1797243698 14377.950 100.00% Conn: 1 Mbps: 14377.950 Peak Mbps: 14419.990 Avg Mbps: 14377.950 3000 1797276414 14378.211 100.00% Conn: 1 Mbps: 14378.211 Peak Mbps: 14406.617 Avg Mbps: 14378.211 4000 1803165582 14425.325 100.00% Conn: 1 Mbps: 14425.325 Peak Mbps: 14425.325 Avg Mbps: 14425.325 4000 1803231014 14425.848 100.00% Conn: 1 Mbps: 14425.848 Peak Mbps: 14425.848 Avg Mbps: 14425.848 5000 1807793516 14462.348 100.00% Conn: 1 Mbps: 14462.348 Peak Mbps: 14462.348 Avg Mbps: 14462.348 5000 1807760800 14476.563 100.00% Conn: 1 Mbps: 14476.563 Peak Mbps: 14476.563 Avg Mbps: 14476.563 --- 127.0.0.1 tcpbench statistics --- 10797170552 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14277.450/14392.612/14462.348/63.498 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10797170552 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14290.432/14395.534/14476.563/61.570 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: 2549.622 Peak Mbps: 2549.622 Tx PPS: 216510 Elapsed: 1000 Mbps: 1767.425 Peak Mbps: 1767.425 Rx PPS: 150087 Elapsed: 2000 Mbps: 2415.813 Peak Mbps: 2549.622 Tx PPS: 205147 Elapsed: 2000 Mbps: 1656.412 Peak Mbps: 1767.425 Rx PPS: 140660 Elapsed: 3000 Mbps: 2520.064 Peak Mbps: 2549.622 Tx PPS: 214000 Elapsed: 3000 Mbps: 1792.060 Peak Mbps: 1792.060 Rx PPS: 152179 Elapsed: 4000 Mbps: 2369.037 Peak Mbps: 2549.622 Tx PPS: 201175 Elapsed: 4000 Mbps: 1695.461 Peak Mbps: 1792.060 Rx PPS: 143976 Elapsed: 5000 Mbps: 2453.765 Peak Mbps: 2549.622 Tx PPS: 208370 Elapsed: 5000 Mbps: 1672.616 Peak Mbps: 1792.060 Rx PPS: 142036 --- 127.0.0.1 tcpbench statistics --- 1838371968 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2369.037/2461.660/2549.622/66.169 Mbps Elapsed: 6018 Mbps: 1614.133 Peak Mbps: 1792.060 Rx PPS: 137069 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1278533568 bytes received over 6.021 seconds bandwidth min/avg/max/std-dev = 1614.133/1699.685/1792.060/62.000 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: 2477.199 Peak Mbps: 2477.199 Tx PPS: 210360 Elapsed: 1000 Mbps: 1739.551 Peak Mbps: 1739.551 Rx PPS: 147720 Elapsed: 2000 Mbps: 2390.811 Peak Mbps: 2477.199 Tx PPS: 203024 Elapsed: 2000 Mbps: 1660.781 Peak Mbps: 1739.551 Rx PPS: 141031 Elapsed: 3000 Mbps: 2613.942 Peak Mbps: 2613.942 Tx PPS: 221972 Elapsed: 3000 Mbps: 1770.549 Peak Mbps: 1770.549 Rx PPS: 150352 Elapsed: 4000 Mbps: 2431.932 Peak Mbps: 2613.942 Tx PPS: 206516 Elapsed: 4000 Mbps: 1644.318 Peak Mbps: 1770.549 Rx PPS: 139633 Elapsed: 5000 Mbps: 2415.057 Peak Mbps: 2613.942 Tx PPS: 205083 Elapsed: 5000 Mbps: 1637.382 Peak Mbps: 1770.549 Rx PPS: 139044 --- 127.0.0.1 tcpbench statistics --- 1842352256 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2390.811/2465.788/2613.942/79.273 Mbps Elapsed: 6000 Mbps: 1692.706 Peak Mbps: 1770.549 Rx PPS: 143742 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1267876288 bytes received over 6.018 seconds bandwidth min/avg/max/std-dev = 1637.382/1690.881/1770.549/49.422 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s