START sys/kern/sosplice/perf 2024-03-25T02:32:38Z ==== 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 1553279932 12426.239 100.00% Conn: 1 Mbps: 12426.239 Peak Mbps: 12426.239 Avg Mbps: 12426.239 1000 1553198692 12425.590 100.00% Conn: 1 Mbps: 12425.590 Peak Mbps: 12425.590 Avg Mbps: 12425.590 2000 1556208154 12462.127 100.00% Conn: 1 Mbps: 12462.127 Peak Mbps: 12462.127 Avg Mbps: 12462.127 2000 1556341392 12450.731 100.00% Conn: 1 Mbps: 12450.731 Peak Mbps: 12450.731 Avg Mbps: 12450.731 3000 1560472100 12483.777 100.00% Conn: 1 Mbps: 12483.777 Peak Mbps: 12483.777 Avg Mbps: 12483.777 3000 1560408648 12495.765 100.00% Conn: 1 Mbps: 12495.765 Peak Mbps: 12495.765 Avg Mbps: 12495.765 4000 1557436628 12459.493 100.00% Conn: 1 Mbps: 12459.493 Peak Mbps: 12483.777 Avg Mbps: 12459.493 4000 1557433492 12459.468 100.00% Conn: 1 Mbps: 12459.468 Peak Mbps: 12495.765 Avg Mbps: 12459.468 5000 1560735928 12485.887 100.00% Conn: 1 Mbps: 12485.887 Peak Mbps: 12485.887 Avg Mbps: 12485.887 5000 1560786874 12498.794 100.00% Conn: 1 Mbps: 12498.794 Peak Mbps: 12498.794 Avg Mbps: 12498.794 --- 127.0.0.1 tcpbench statistics --- 9346728784 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12426.239/12463.505/12485.887/21.534 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9346728784 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12425.590/12466.069/12498.794/27.821 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 1922575608 15380.605 100.00% Conn: 1 Mbps: 15380.605 Peak Mbps: 15380.605 Avg Mbps: 15380.605 1000 1921233266 15369.866 100.00% Conn: 1 Mbps: 15369.866 Peak Mbps: 15369.866 Avg Mbps: 15369.866 2000 1939742326 15517.939 100.00% Conn: 1 Mbps: 15517.939 Peak Mbps: 15517.939 Avg Mbps: 15517.939 2000 1939603456 15516.828 100.00% Conn: 1 Mbps: 15516.828 Peak Mbps: 15516.828 Avg Mbps: 15516.828 3000 1938565046 15524.044 100.00% Conn: 1 Mbps: 15524.044 Peak Mbps: 15524.044 Avg Mbps: 15524.044 3000 1938817024 15510.536 100.00% Conn: 1 Mbps: 15510.536 Peak Mbps: 15516.828 Avg Mbps: 15510.536 4000 1939161634 15513.293 100.00% Conn: 1 Mbps: 15513.293 Peak Mbps: 15524.044 Avg Mbps: 15513.293 4000 1939079168 15512.633 100.00% Conn: 1 Mbps: 15512.633 Peak Mbps: 15516.828 Avg Mbps: 15512.633 5000 1939566896 15516.535 100.00% Conn: 1 Mbps: 15516.535 Peak Mbps: 15524.044 Avg Mbps: 15516.535 5000 1939603456 15516.828 100.00% Conn: 1 Mbps: 15516.828 Peak Mbps: 15516.828 Avg Mbps: 15516.828 --- 127.0.0.1 tcpbench statistics --- 11617691088 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15380.605/15490.483/15524.044/55.050 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11617691088 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15369.866/15485.338/15516.828/57.787 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: 1573.085 Peak Mbps: 1573.085 Tx PPS: 133584 Elapsed: 999 Mbps: 1383.556 Peak Mbps: 1383.556 Rx PPS: 117489 Elapsed: 2000 Mbps: 1576.063 Peak Mbps: 1576.063 Tx PPS: 133836 Elapsed: 2000 Mbps: 1384.705 Peak Mbps: 1384.705 Rx PPS: 117587 Elapsed: 3000 Mbps: 1576.759 Peak Mbps: 1576.759 Tx PPS: 133896 Elapsed: 3000 Mbps: 1384.540 Peak Mbps: 1384.705 Rx PPS: 117573 Elapsed: 4000 Mbps: 1571.707 Peak Mbps: 1576.759 Tx PPS: 133467 Elapsed: 4000 Mbps: 1386.008 Peak Mbps: 1386.008 Rx PPS: 117697 Elapsed: 5000 Mbps: 1575.146 Peak Mbps: 1576.759 Tx PPS: 133759 Elapsed: 5000 Mbps: 1382.173 Peak Mbps: 1386.008 Rx PPS: 117372 --- 127.0.0.1 tcpbench statistics --- 1180825152 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1571.707/1574.552/1576.759/1.884 Mbps Elapsed: 6000 Mbps: 1383.680 Peak Mbps: 1386.008 Rx PPS: 117500 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1037810048 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1382.173/1384.110/1386.008/1.182 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: 1517.302 Peak Mbps: 1517.302 Tx PPS: 128847 Elapsed: 1000 Mbps: 1517.314 Peak Mbps: 1517.314 Rx PPS: 128848 Elapsed: 2000 Mbps: 1519.776 Peak Mbps: 1519.776 Tx PPS: 129057 Elapsed: 2000 Mbps: 1519.894 Peak Mbps: 1519.894 Rx PPS: 129067 Elapsed: 3000 Mbps: 1521.294 Peak Mbps: 1521.294 Tx PPS: 129186 Elapsed: 3000 Mbps: 1521.318 Peak Mbps: 1521.318 Rx PPS: 129188 Elapsed: 4000 Mbps: 1519.128 Peak Mbps: 1521.294 Tx PPS: 129002 Elapsed: 4000 Mbps: 1519.080 Peak Mbps: 1521.318 Rx PPS: 128998 Elapsed: 5000 Mbps: 1520.552 Peak Mbps: 1521.294 Tx PPS: 129123 Elapsed: 5000 Mbps: 1520.564 Peak Mbps: 1521.318 Rx PPS: 129124 --- 127.0.0.1 tcpbench statistics --- 1139863808 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1517.302/1519.611/1521.294/1.365 Mbps Elapsed: 6002 Mbps: 1519.222 Peak Mbps: 1521.318 Rx PPS: 129009 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1139863808 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1517.314/1519.565/1521.318/1.265 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.58s