START sys/kern/sosplice/perf 2024-03-15T02:35:58Z ==== 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 1561431076 12491.449 100.00% Conn: 1 Mbps: 12491.449 Peak Mbps: 12491.449 Avg Mbps: 12491.449 1000 1561430604 12491.445 100.00% Conn: 1 Mbps: 12491.445 Peak Mbps: 12491.445 Avg Mbps: 12491.445 2000 1573644682 12601.759 100.00% Conn: 1 Mbps: 12601.759 Peak Mbps: 12601.759 Avg Mbps: 12601.759 2000 1573702844 12589.623 100.00% Conn: 1 Mbps: 12589.623 Peak Mbps: 12589.623 Avg Mbps: 12589.623 3000 1569507752 12556.062 100.00% Conn: 1 Mbps: 12556.062 Peak Mbps: 12601.759 Avg Mbps: 12556.062 3000 1569515598 12556.125 100.00% Conn: 1 Mbps: 12556.125 Peak Mbps: 12589.623 Avg Mbps: 12556.125 4000 1566337012 12530.696 100.00% Conn: 1 Mbps: 12530.696 Peak Mbps: 12601.759 Avg Mbps: 12530.696 4000 1566323670 12530.589 100.00% Conn: 1 Mbps: 12530.589 Peak Mbps: 12589.623 Avg Mbps: 12530.589 5000 1570962978 12567.704 100.00% Conn: 1 Mbps: 12567.704 Peak Mbps: 12601.759 Avg Mbps: 12567.704 5000 1571042180 12568.337 100.00% Conn: 1 Mbps: 12568.337 Peak Mbps: 12589.623 Avg Mbps: 12568.337 --- 127.0.0.1 tcpbench statistics --- 9411375818 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12491.449/12549.534/12601.759/36.957 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9411375818 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12491.445/12547.224/12589.623/33.796 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 1924412290 15395.298 100.00% Conn: 1 Mbps: 15395.298 Peak Mbps: 15395.298 Avg Mbps: 15395.298 1000 1922664186 15381.313 100.00% Conn: 1 Mbps: 15381.313 Peak Mbps: 15381.313 Avg Mbps: 15381.313 2000 1936982298 15511.370 100.00% Conn: 1 Mbps: 15511.370 Peak Mbps: 15511.370 Avg Mbps: 15511.370 2000 1937244160 15497.953 100.00% Conn: 1 Mbps: 15497.953 Peak Mbps: 15497.953 Avg Mbps: 15497.953 3000 1938637764 15509.102 100.00% Conn: 1 Mbps: 15509.102 Peak Mbps: 15511.370 Avg Mbps: 15509.102 3000 1938817024 15510.536 100.00% Conn: 1 Mbps: 15510.536 Peak Mbps: 15510.536 Avg Mbps: 15510.536 4000 1934105014 15488.328 100.00% Conn: 1 Mbps: 15488.328 Peak Mbps: 15511.370 Avg Mbps: 15488.328 4000 1934098432 15472.787 100.00% Conn: 1 Mbps: 15472.787 Peak Mbps: 15510.536 Avg Mbps: 15472.787 5000 1936461806 15491.694 100.00% Conn: 1 Mbps: 15491.694 Peak Mbps: 15511.370 Avg Mbps: 15491.694 5000 1936457728 15491.662 100.00% Conn: 1 Mbps: 15491.662 Peak Mbps: 15510.536 Avg Mbps: 15491.662 --- 127.0.0.1 tcpbench statistics --- 11608208890 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15395.298/15479.159/15511.370/42.914 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11608208890 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15381.313/15470.850/15510.536/46.397 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: 1566.597 Peak Mbps: 1566.597 Tx PPS: 133033 Elapsed: 999 Mbps: 1380.751 Peak Mbps: 1380.751 Rx PPS: 117251 Elapsed: 2000 Mbps: 1570.676 Peak Mbps: 1570.676 Tx PPS: 133379 Elapsed: 1999 Mbps: 1380.279 Peak Mbps: 1380.751 Rx PPS: 117211 Elapsed: 3000 Mbps: 1569.953 Peak Mbps: 1570.676 Tx PPS: 133318 Elapsed: 2999 Mbps: 1378.605 Peak Mbps: 1380.751 Rx PPS: 117069 Elapsed: 4000 Mbps: 1571.578 Peak Mbps: 1571.578 Tx PPS: 133456 Elapsed: 4000 Mbps: 1379.134 Peak Mbps: 1380.751 Rx PPS: 117114 Elapsed: 5000 Mbps: 1571.448 Peak Mbps: 1571.578 Tx PPS: 133445 Elapsed: 5000 Mbps: 1379.865 Peak Mbps: 1380.751 Rx PPS: 117176 --- 127.0.0.1 tcpbench statistics --- 1177572032 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1566.597/1570.050/1571.578/1.823 Mbps Elapsed: 6000 Mbps: 1381.761 Peak Mbps: 1381.761 Rx PPS: 117337 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1034760064 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1378.605/1380.066/1381.761/1.035 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: 1518.774 Peak Mbps: 1518.774 Tx PPS: 128972 Elapsed: 1000 Mbps: 1518.786 Peak Mbps: 1518.786 Rx PPS: 128973 Elapsed: 2000 Mbps: 1520.436 Peak Mbps: 1520.436 Tx PPS: 129113 Elapsed: 2000 Mbps: 1520.542 Peak Mbps: 1520.542 Rx PPS: 129122 Elapsed: 3000 Mbps: 1519.234 Peak Mbps: 1520.436 Tx PPS: 129011 Elapsed: 3000 Mbps: 1519.293 Peak Mbps: 1520.542 Rx PPS: 129016 Elapsed: 4000 Mbps: 1520.517 Peak Mbps: 1520.517 Tx PPS: 129120 Elapsed: 4000 Mbps: 1520.505 Peak Mbps: 1520.542 Rx PPS: 129119 Elapsed: 5000 Mbps: 1520.081 Peak Mbps: 1520.517 Tx PPS: 129083 Elapsed: 5000 Mbps: 1520.070 Peak Mbps: 1520.542 Rx PPS: 129082 --- 127.0.0.1 tcpbench statistics --- 1139482560 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1518.774/1519.808/1520.517/0.689 Mbps Elapsed: 6002 Mbps: 1516.671 Peak Mbps: 1520.542 Rx PPS: 128793 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1139482560 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1516.671/1519.311/1520.542/1.339 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.59s