START sys/kern/sosplice/perf 2024-11-08T12:48:10Z ==== 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 71386416 571.091 100.00% Conn: 1 Mbps: 571.091 Peak Mbps: 571.091 Avg Mbps: 571.091 1004 71451744 569.337 100.00% Conn: 1 Mbps: 569.337 Peak Mbps: 569.337 Avg Mbps: 569.337 2002 61784166 495.761 100.00% Conn: 1 Mbps: 495.761 Peak Mbps: 569.337 Avg Mbps: 495.761 2001 61783838 493.777 100.00% Conn: 1 Mbps: 493.777 Peak Mbps: 571.091 Avg Mbps: 493.777 3002 65350538 522.804 100.00% Conn: 1 Mbps: 522.804 Peak Mbps: 571.091 Avg Mbps: 522.804 3006 65382926 520.979 100.00% Conn: 1 Mbps: 520.979 Peak Mbps: 569.337 Avg Mbps: 520.979 4003 61407932 493.236 100.00% Conn: 1 Mbps: 493.236 Peak Mbps: 569.337 Avg Mbps: 493.236 4003 61429756 490.947 100.00% Conn: 1 Mbps: 490.947 Peak Mbps: 571.091 Avg Mbps: 490.947 5003 61146204 489.170 100.00% Conn: 1 Mbps: 489.170 Peak Mbps: 569.337 Avg Mbps: 489.170 5003 61142772 489.142 100.00% Conn: 1 Mbps: 489.142 Peak Mbps: 571.091 Avg Mbps: 489.142 --- 127.0.0.1 tcpbench statistics --- 381713930 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 489.170/513.697/569.337/29.969 Mbps 6015 60555264 479.171 100.00% sleep 1 Conn: 1 Mbps: 479.171 Peak Mbps: 571.091 Avg Mbps: 479.171 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 381648584 bytes received over 6.032 seconds bandwidth min/avg/max/std-dev = 479.171/507.822/571.091/31.303 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 1002 105345520 841.082 100.00% 1001 105345520 841.922 100.00% Conn: 1 Mbps: 841.082 Peak Mbps: 841.082 Avg Mbps: 841.082 Conn: 1 Mbps: 841.922 Peak Mbps: 841.922 Avg Mbps: 841.922 2000 105214656 842.560 100.00% Conn: 1 Mbps: 842.560 Peak Mbps: 842.560 Avg Mbps: 842.560 2004 105345520 841.082 100.00% Conn: 1 Mbps: 841.082 Peak Mbps: 841.082 Avg Mbps: 841.082 3001 105312792 842.502 100.00% Conn: 1 Mbps: 842.502 Peak Mbps: 842.560 Avg Mbps: 842.502 3005 105345520 841.922 100.00% Conn: 1 Mbps: 841.922 Peak Mbps: 841.922 Avg Mbps: 841.922 4001 104576706 836.614 100.00% Conn: 1 Mbps: 836.614 Peak Mbps: 842.560 Avg Mbps: 836.614 4006 104560336 836.483 100.00% Conn: 1 Mbps: 836.483 Peak Mbps: 841.922 Avg Mbps: 836.483 5001 104707558 838.499 100.00% Conn: 1 Mbps: 838.499 Peak Mbps: 842.560 Avg Mbps: 838.499 5007 104822064 838.577 100.00% Conn: 1 Mbps: 838.577 Peak Mbps: 841.922 Avg Mbps: 838.577 --- 127.0.0.1 tcpbench statistics --- 629586704 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 836.483/839.829/841.922/2.014 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 629586704 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 836.614/840.419/842.560/2.423 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: 70.632 Peak Mbps: 70.632 Tx PPS: 5998 Elapsed: 1000 Mbps: 70.644 Peak Mbps: 70.644 Rx PPS: 5999 Elapsed: 2000 Mbps: 70.008 Peak Mbps: 70.632 Tx PPS: 5945 Elapsed: 2000 Mbps: 70.102 Peak Mbps: 70.644 Rx PPS: 5952 Elapsed: 3000 Mbps: 69.785 Peak Mbps: 70.632 Tx PPS: 5926 Elapsed: 3000 Mbps: 69.796 Peak Mbps: 70.644 Rx PPS: 5927 Elapsed: 4000 Mbps: 76.568 Peak Mbps: 76.568 Tx PPS: 6502 Elapsed: 4000 Mbps: 69.160 Peak Mbps: 70.644 Rx PPS: 5873 Elapsed: 5000 Mbps: 69.667 Peak Mbps: 76.568 Tx PPS: 5916 Elapsed: 5000 Mbps: 69.667 Peak Mbps: 70.644 Rx PPS: 5916 --- 127.0.0.1 tcpbench statistics --- 53242240 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 69.667/71.332/76.568/2.639 Mbps Elapsed: 6016 Mbps: 68.220 Peak Mbps: 70.644 Rx PPS: 5793 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 52317824 bytes received over 6.020 seconds bandwidth min/avg/max/std-dev = 68.220/69.598/70.644/0.762 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: 81.396 Peak Mbps: 81.396 Tx PPS: 6912 Elapsed: 1000 Mbps: 81.407 Peak Mbps: 81.407 Rx PPS: 6913 Elapsed: 2000 Mbps: 81.054 Peak Mbps: 81.396 Tx PPS: 6883 Elapsed: 2000 Mbps: 81.159 Peak Mbps: 81.407 Rx PPS: 6891 Elapsed: 3000 Mbps: 81.396 Peak Mbps: 81.396 Tx PPS: 6912 Elapsed: 3000 Mbps: 81.396 Peak Mbps: 81.407 Rx PPS: 6912 Elapsed: 4000 Mbps: 81.219 Peak Mbps: 81.396 Tx PPS: 6897 Elapsed: 4000 Mbps: 81.219 Peak Mbps: 81.407 Rx PPS: 6897 Elapsed: 5000 Mbps: 81.125 Peak Mbps: 81.396 Tx PPS: 6889 Elapsed: 5000 Mbps: 81.137 Peak Mbps: 81.407 Rx PPS: 6890 --- 127.0.0.1 tcpbench statistics --- 60923136 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 81.054/81.238/81.396/0.139 Mbps Elapsed: 6016 Mbps: 79.949 Peak Mbps: 81.407 Rx PPS: 6789 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 60923136 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 79.949/81.045/81.407/0.501 Mbps PASS sys/kern/sosplice/perf Duration 0m36.59s