START sys/kern/sosplice/perf 2025-03-21T19:26:42Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 999 1388610590 11120.005 100.00% Conn: 1 Mbps: 11120.005 Peak Mbps: 11120.005 Avg Mbps: 11120.005 1000 1388905346 11111.243 100.00% Conn: 1 Mbps: 11111.243 Peak Mbps: 11111.243 Avg Mbps: 11111.243 2000 1400648798 11216.407 100.00% Conn: 1 Mbps: 11216.407 Peak Mbps: 11216.407 Avg Mbps: 11216.407 2000 1400845510 11206.764 100.00% Conn: 1 Mbps: 11206.764 Peak Mbps: 11206.764 Avg Mbps: 11206.764 3000 1402511906 11220.095 100.00% Conn: 1 Mbps: 11220.095 Peak Mbps: 11220.095 Avg Mbps: 11220.095 3000 1402610054 11220.880 100.00% Conn: 1 Mbps: 11220.880 Peak Mbps: 11220.880 Avg Mbps: 11220.880 4000 1399864786 11198.918 100.00% Conn: 1 Mbps: 11198.918 Peak Mbps: 11220.095 Avg Mbps: 11198.918 4000 1399864786 11198.918 100.00% Conn: 1 Mbps: 11198.918 Peak Mbps: 11220.880 Avg Mbps: 11198.918 5000 1404734594 11237.877 100.00% Conn: 1 Mbps: 11237.877 Peak Mbps: 11237.877 Avg Mbps: 11237.877 5000 1404799922 11238.399 100.00% Conn: 1 Mbps: 11238.399 Peak Mbps: 11238.399 Avg Mbps: 11238.399 --- 127.0.0.1 tcpbench statistics --- 8397761062 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11111.243/11197.065/11237.877/44.667 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8397761062 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11120.005/11196.836/11238.399/40.680 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 1548580716 12388.646 100.00% Conn: 1 Mbps: 12388.646 Peak Mbps: 12388.646 Avg Mbps: 12388.646 999 1548515284 12400.523 100.00% Conn: 1 Mbps: 12400.523 Peak Mbps: 12400.523 Avg Mbps: 12400.523 1999 1563175724 12505.406 100.00% Conn: 1 Mbps: 12505.406 Peak Mbps: 12505.406 Avg Mbps: 12505.406 2000 1563290230 12506.322 100.00% Conn: 1 Mbps: 12506.322 Peak Mbps: 12506.322 Avg Mbps: 12506.322 2999 1573063592 12597.106 100.00% Conn: 1 Mbps: 12597.106 Peak Mbps: 12597.106 Avg Mbps: 12597.106 3000 1573096308 12584.770 100.00% Conn: 1 Mbps: 12584.770 Peak Mbps: 12584.770 Avg Mbps: 12584.770 3999 1567150660 12537.205 100.00% Conn: 1 Mbps: 12537.205 Peak Mbps: 12597.106 Avg Mbps: 12537.205 4000 1567167018 12537.336 100.00% Conn: 1 Mbps: 12537.336 Peak Mbps: 12584.770 Avg Mbps: 12537.336 4999 1571028516 12568.228 100.00% Conn: 1 Mbps: 12568.228 Peak Mbps: 12597.106 Avg Mbps: 12568.228 5000 1571028516 12568.228 100.00% Conn: 1 Mbps: 12568.228 Peak Mbps: 12584.770 Avg Mbps: 12568.228 --- 127.0.0.1 tcpbench statistics --- 9389273354 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12388.646/12517.060/12584.770/69.598 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9389273354 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12400.523/12521.694/12597.106/67.883 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: 1934.667 Peak Mbps: 1934.667 Tx PPS: 164289 Elapsed: 999 Mbps: 1936.686 Peak Mbps: 1936.686 Rx PPS: 164460 Elapsed: 2000 Mbps: 1937.394 Peak Mbps: 1937.394 Tx PPS: 164520 Elapsed: 1999 Mbps: 1937.500 Peak Mbps: 1937.500 Rx PPS: 164529 Elapsed: 3000 Mbps: 1937.152 Peak Mbps: 1937.394 Tx PPS: 164500 Elapsed: 2999 Mbps: 1937.152 Peak Mbps: 1937.500 Rx PPS: 164500 Elapsed: 4000 Mbps: 1938.624 Peak Mbps: 1938.624 Tx PPS: 164625 Elapsed: 4000 Mbps: 1938.636 Peak Mbps: 1938.636 Rx PPS: 164626 Elapsed: 5000 Mbps: 1938.259 Peak Mbps: 1938.624 Tx PPS: 164594 Elapsed: 5000 Mbps: 1938.271 Peak Mbps: 1938.636 Rx PPS: 164595 --- 127.0.0.1 tcpbench statistics --- 1452553408 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1934.667/1937.219/1938.624/1.386 Mbps Elapsed: 6002 Mbps: 1932.192 Peak Mbps: 1938.636 Rx PPS: 164078 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1452553408 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1932.192/1936.740/1938.636/2.136 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: 1836.420 Peak Mbps: 1836.420 Tx PPS: 155946 Elapsed: 1000 Mbps: 1836.491 Peak Mbps: 1836.491 Rx PPS: 155952 Elapsed: 2000 Mbps: 1837.068 Peak Mbps: 1837.068 Tx PPS: 156001 Elapsed: 1999 Mbps: 1837.115 Peak Mbps: 1837.115 Rx PPS: 156005 Elapsed: 3000 Mbps: 1838.434 Peak Mbps: 1838.434 Tx PPS: 156117 Elapsed: 2999 Mbps: 1838.457 Peak Mbps: 1838.457 Rx PPS: 156119 Elapsed: 4000 Mbps: 1838.351 Peak Mbps: 1838.434 Tx PPS: 156110 Elapsed: 3999 Mbps: 1838.328 Peak Mbps: 1838.457 Rx PPS: 156108 Elapsed: 5000 Mbps: 1837.833 Peak Mbps: 1838.434 Tx PPS: 156066 Elapsed: 4999 Mbps: 1837.833 Peak Mbps: 1838.457 Rx PPS: 156066 --- 127.0.0.1 tcpbench statistics --- 1377323904 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1836.420/1837.621/1838.434/0.773 Mbps Elapsed: 6002 Mbps: 1828.547 Peak Mbps: 1838.457 Rx PPS: 155277 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1377323904 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1828.547/1836.129/1838.457/3.458 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s