START sys/kern/sosplice/perf 2024-03-25T13:06:41Z ==== 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 61277068 490.217 100.00% Conn: 1 Mbps: 490.217 Peak Mbps: 490.217 Avg Mbps: 490.217 1000 61210624 489.685 100.00% Conn: 1 Mbps: 489.685 Peak Mbps: 489.685 Avg Mbps: 489.685 2000 61146204 489.659 100.00% Conn: 1 Mbps: 489.659 Peak Mbps: 490.217 Avg Mbps: 489.659 2001 61210624 489.685 100.00% Conn: 1 Mbps: 489.685 Peak Mbps: 489.685 Avg Mbps: 489.685 3000 60819044 486.552 100.00% Conn: 1 Mbps: 486.552 Peak Mbps: 490.217 Avg Mbps: 486.552 3001 60817408 486.539 100.00% Conn: 1 Mbps: 486.539 Peak Mbps: 489.685 Avg Mbps: 486.539 4001 61080772 488.646 100.00% Conn: 1 Mbps: 488.646 Peak Mbps: 490.217 Avg Mbps: 488.646 4002 61079552 488.636 100.00% Conn: 1 Mbps: 488.636 Peak Mbps: 489.685 Avg Mbps: 488.636 5001 60949908 487.599 100.00% Conn: 1 Mbps: 487.599 Peak Mbps: 490.217 Avg Mbps: 487.599 5002 60948480 487.588 100.00% Conn: 1 Mbps: 487.588 Peak Mbps: 489.685 Avg Mbps: 487.588 --- 127.0.0.1 tcpbench statistics --- 366550064 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 486.552/488.535/490.217/1.335 Mbps 6015 61079552 482.842 100.00% sleep 1 Conn: 1 Mbps: 482.842 Peak Mbps: 489.685 Avg Mbps: 482.842 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 366346240 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 482.842/487.496/489.685/2.362 Mbps ==== 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 105476324 843.811 100.00% Conn: 1 Mbps: 843.811 Peak Mbps: 843.811 Avg Mbps: 843.811 1003 105492682 841.417 100.00% Conn: 1 Mbps: 841.417 Peak Mbps: 841.417 Avg Mbps: 841.417 2001 110710800 887.461 100.00% Conn: 1 Mbps: 887.461 Peak Mbps: 887.461 Avg Mbps: 887.461 2004 109554934 872.948 100.00% Conn: 1 Mbps: 872.948 Peak Mbps: 872.948 Avg Mbps: 872.948 3003 105099226 839.954 100.00% Conn: 1 Mbps: 839.954 Peak Mbps: 887.461 Avg Mbps: 839.954 3003 106369586 852.662 100.00% Conn: 1 Mbps: 852.662 Peak Mbps: 872.948 Avg Mbps: 852.662 4003 111496128 891.969 100.00% Conn: 1 Mbps: 891.969 Peak Mbps: 891.969 Avg Mbps: 891.969 4004 111496128 891.078 100.00% Conn: 1 Mbps: 891.078 Peak Mbps: 891.078 Avg Mbps: 891.078 5003 112019584 896.157 100.00% Conn: 1 Mbps: 896.157 Peak Mbps: 896.157 Avg Mbps: 896.157 5004 112019584 896.157 100.00% Conn: 1 Mbps: 896.157 Peak Mbps: 896.157 Avg Mbps: 896.157 --- 127.0.0.1 tcpbench statistics --- 649917790 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 839.954/871.392/896.157/25.226 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 648752308 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 843.811/871.331/896.157/20.566 Mbps ==== 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: 66.040 Peak Mbps: 66.040 Tx PPS: 5608 Elapsed: 1000 Mbps: 65.015 Peak Mbps: 65.015 Rx PPS: 5521 Elapsed: 2000 Mbps: 75.767 Peak Mbps: 75.767 Tx PPS: 6434 Elapsed: 2000 Mbps: 61.459 Peak Mbps: 65.015 Rx PPS: 5219 Elapsed: 3000 Mbps: 68.664 Peak Mbps: 75.767 Tx PPS: 5830 Elapsed: 3006 Mbps: 65.629 Peak Mbps: 65.629 Rx PPS: 5573 Elapsed: 4001 Mbps: 71.869 Peak Mbps: 75.767 Tx PPS: 6103 Elapsed: 4006 Mbps: 60.305 Peak Mbps: 65.629 Rx PPS: 5121 Elapsed: 5000 Mbps: 65.128 Peak Mbps: 75.767 Tx PPS: 5530 Elapsed: 5006 Mbps: 65.098 Peak Mbps: 65.629 Rx PPS: 5528 --- 127.0.0.1 tcpbench statistics --- 55054272 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 65.128/69.493/75.767/3.916 Mbps Elapsed: 6015 Mbps: 53.651 Peak Mbps: 65.629 Rx PPS: 4555 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 46496064 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 53.651/61.860/65.629/4.175 Mbps ==== 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: 90.122 Peak Mbps: 90.122 Tx PPS: 7653 Elapsed: 1000 Mbps: 90.134 Peak Mbps: 90.134 Rx PPS: 7654 Elapsed: 2000 Mbps: 90.216 Peak Mbps: 90.216 Tx PPS: 7661 Elapsed: 2000 Mbps: 90.251 Peak Mbps: 90.251 Rx PPS: 7664 Elapsed: 3000 Mbps: 90.440 Peak Mbps: 90.440 Tx PPS: 7680 Elapsed: 3000 Mbps: 90.440 Peak Mbps: 90.440 Rx PPS: 7680 Elapsed: 4000 Mbps: 90.263 Peak Mbps: 90.440 Tx PPS: 7665 Elapsed: 4000 Mbps: 90.263 Peak Mbps: 90.440 Rx PPS: 7665 Elapsed: 5000 Mbps: 90.145 Peak Mbps: 90.440 Tx PPS: 7655 Elapsed: 5000 Mbps: 90.145 Peak Mbps: 90.440 Rx PPS: 7655 --- 127.0.0.1 tcpbench statistics --- 67642816 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 90.122/90.237/90.440/0.113 Mbps Elapsed: 6016 Mbps: 88.581 Peak Mbps: 90.440 Rx PPS: 7522 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 67642816 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 88.581/89.969/90.440/0.629 Mbps PASS sys/kern/sosplice/perf Duration 0m36.63s