START sys/kern/sosplice/perf 2024-04-15T12:32:25Z ==== 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 69668722 557.350 100.00% Conn: 1 Mbps: 557.350 Peak Mbps: 557.350 Avg Mbps: 557.350 1003 69668722 555.683 100.00% Conn: 1 Mbps: 555.683 Peak Mbps: 555.683 Avg Mbps: 555.683 2000 64336014 516.755 100.00% Conn: 1 Mbps: 516.755 Peak Mbps: 555.683 Avg Mbps: 516.755 2000 64221938 513.776 100.00% Conn: 1 Mbps: 513.776 Peak Mbps: 557.350 Avg Mbps: 513.776 3000 61424290 491.394 100.00% Conn: 1 Mbps: 491.394 Peak Mbps: 555.683 Avg Mbps: 491.394 3001 61472768 491.291 100.00% Conn: 1 Mbps: 491.291 Peak Mbps: 557.350 Avg Mbps: 491.291 4001 61211636 489.693 100.00% Conn: 1 Mbps: 489.693 Peak Mbps: 555.683 Avg Mbps: 489.693 4001 61210624 489.685 100.00% Conn: 1 Mbps: 489.685 Peak Mbps: 557.350 Avg Mbps: 489.685 5001 61146204 489.170 100.00% Conn: 1 Mbps: 489.170 Peak Mbps: 555.683 Avg Mbps: 489.170 5001 61145088 489.161 100.00% Conn: 1 Mbps: 489.161 Peak Mbps: 557.350 Avg Mbps: 489.161 --- 127.0.0.1 tcpbench statistics --- 379129366 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 489.170/508.539/555.683/25.746 Mbps 6015 61210624 483.401 100.00% sleep 1 Conn: 1 Mbps: 483.401 Peak Mbps: 557.350 Avg Mbps: 483.401 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 378929764 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 483.401/504.110/557.350/25.667 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 1001 107439344 858.656 100.00% Conn: 1 Mbps: 858.656 Peak Mbps: 858.656 Avg Mbps: 858.656 1002 107537480 858.583 100.00% Conn: 1 Mbps: 858.583 Peak Mbps: 858.583 Avg Mbps: 858.583 2002 106408202 851.266 100.00% Conn: 1 Mbps: 851.266 Peak Mbps: 858.656 Avg Mbps: 851.266 2005 105137736 838.586 100.00% Conn: 1 Mbps: 838.586 Peak Mbps: 858.583 Avg Mbps: 838.586 3003 85974120 687.793 100.00% Conn: 1 Mbps: 687.793 Peak Mbps: 858.656 Avg Mbps: 687.793 3005 85963178 688.394 100.00% Conn: 1 Mbps: 688.394 Peak Mbps: 858.583 Avg Mbps: 688.394 4004 83372946 666.317 100.00% Conn: 1 Mbps: 666.317 Peak Mbps: 858.656 Avg Mbps: 666.317 4008 83361792 665.563 100.00% Conn: 1 Mbps: 665.563 Peak Mbps: 858.583 Avg Mbps: 665.563 5005 81017502 648.140 100.00% Conn: 1 Mbps: 648.140 Peak Mbps: 858.656 Avg Mbps: 648.140 5008 81002496 648.020 100.00% Conn: 1 Mbps: 648.020 Peak Mbps: 858.583 Avg Mbps: 648.020 --- 127.0.0.1 tcpbench statistics --- 553949318 bytes sent over 6.002 seconds bandwidth min/avg/max/std-dev = 648.140/742.434/858.656/92.761 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 553949318 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 648.020/739.829/858.583/89.939 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.499 Peak Mbps: 66.499 Tx PPS: 5647 Elapsed: 1000 Mbps: 64.792 Peak Mbps: 64.792 Rx PPS: 5502 Elapsed: 2000 Mbps: 66.589 Peak Mbps: 66.589 Tx PPS: 5654 Elapsed: 2000 Mbps: 66.625 Peak Mbps: 66.625 Rx PPS: 5657 Elapsed: 3000 Mbps: 80.723 Peak Mbps: 80.723 Tx PPS: 6854 Elapsed: 3014 Mbps: 58.880 Peak Mbps: 66.625 Rx PPS: 5000 Elapsed: 4000 Mbps: 108.928 Peak Mbps: 108.928 Tx PPS: 9250 Elapsed: 4014 Mbps: 45.302 Peak Mbps: 66.625 Rx PPS: 3847 Elapsed: 5000 Mbps: 87.072 Peak Mbps: 108.928 Tx PPS: 7394 Elapsed: 5015 Mbps: 57.750 Peak Mbps: 66.625 Rx PPS: 4904 --- 127.0.0.1 tcpbench statistics --- 59913344 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 66.499/81.962/108.928/15.686 Mbps tcpbench: sleep 1 Terminated by signal 15 --- tcpbench server statistics --- 45190400 bytes received over 6.029 seconds bandwidth min/avg/max/std-dev = 45.302/58.670/66.625/7.488 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: 89.851 Peak Mbps: 89.851 Tx PPS: 7630 Elapsed: 1000 Mbps: 83.857 Peak Mbps: 83.857 Rx PPS: 7121 Elapsed: 2000 Mbps: 88.373 Peak Mbps: 89.851 Tx PPS: 7504 Elapsed: 2000 Mbps: 88.332 Peak Mbps: 88.332 Rx PPS: 7501 Elapsed: 3000 Mbps: 105.478 Peak Mbps: 105.478 Tx PPS: 8957 Elapsed: 3000 Mbps: 51.673 Peak Mbps: 88.332 Rx PPS: 4388 Elapsed: 4000 Mbps: 91.853 Peak Mbps: 105.478 Tx PPS: 7800 Elapsed: 4000 Mbps: 82.173 Peak Mbps: 88.332 Rx PPS: 6978 Elapsed: 5000 Mbps: 96.057 Peak Mbps: 105.478 Tx PPS: 8157 Elapsed: 5000 Mbps: 73.788 Peak Mbps: 88.332 Rx PPS: 6266 --- 127.0.0.1 tcpbench statistics --- 70081920 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 88.373/94.322/105.478/6.147 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 58573824 bytes received over 6.033 seconds bandwidth min/avg/max/std-dev = 51.673/75.965/88.332/13.028 Mbps PASS sys/kern/sosplice/perf Duration 0m36.55s