START sys/kern/sosplice/perf 2024-12-30T19:30:17Z ==== 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 1000 1450756292 11606.050 100.00% Conn: 1 Mbps: 11606.050 Peak Mbps: 11606.050 Avg Mbps: 11606.050 1000 1450625636 11605.005 100.00% Conn: 1 Mbps: 11605.005 Peak Mbps: 11605.005 Avg Mbps: 11605.005 2000 1460049208 11692.086 100.00% Conn: 1 Mbps: 11692.086 Peak Mbps: 11692.086 Avg Mbps: 11692.086 2000 1460081820 11680.655 100.00% Conn: 1 Mbps: 11680.655 Peak Mbps: 11680.655 Avg Mbps: 11680.655 3000 1459314474 11674.516 100.00% 3000 1459248938 11673.992 100.00% Conn: 1 Mbps: 11674.516 Peak Mbps: 11692.086 Avg Mbps: 11674.516 Conn: 1 Mbps: 11673.992 Peak Mbps: 11680.655 Avg Mbps: 11673.992 4000 1457580134 11672.313 100.00% Conn: 1 Mbps: 11672.313 Peak Mbps: 11692.086 Avg Mbps: 11672.313 4000 1457678282 11661.426 100.00% Conn: 1 Mbps: 11661.426 Peak Mbps: 11680.655 Avg Mbps: 11661.426 5000 1459559580 11676.477 100.00% Conn: 1 Mbps: 11676.477 Peak Mbps: 11692.086 Avg Mbps: 11676.477 5000 1459526876 11687.903 100.00% Conn: 1 Mbps: 11687.903 Peak Mbps: 11687.903 Avg Mbps: 11687.903 --- 127.0.0.1 tcpbench statistics --- 8747079568 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11606.050/11664.288/11692.086/29.940 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8747079568 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11605.005/11661.796/11687.903/29.703 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 999 1404451222 11246.857 100.00% Conn: 1 Mbps: 11246.857 Peak Mbps: 11246.857 Avg Mbps: 11246.857 1000 1404680234 11237.442 100.00% Conn: 1 Mbps: 11237.442 Peak Mbps: 11237.442 Avg Mbps: 11237.442 1999 1411384394 11291.075 100.00% Conn: 1 Mbps: 11291.075 Peak Mbps: 11291.075 Avg Mbps: 11291.075 2000 1411417110 11291.337 100.00% Conn: 1 Mbps: 11291.337 Peak Mbps: 11291.337 Avg Mbps: 11291.337 3000 1412862474 11314.214 100.00% 3000 1412993338 11303.947 100.00% Conn: 1 Mbps: 11314.214 Peak Mbps: 11314.214 Avg Mbps: 11314.214 Conn: 1 Mbps: 11303.947 Peak Mbps: 11303.947 Avg Mbps: 11303.947 4000 1411082320 11299.959 100.00% Conn: 1 Mbps: 11299.959 Peak Mbps: 11314.214 Avg Mbps: 11299.959 4000 1411147752 11289.182 100.00% Conn: 1 Mbps: 11289.182 Peak Mbps: 11303.947 Avg Mbps: 11289.182 5000 1413240816 11317.244 100.00% Conn: 1 Mbps: 11317.244 Peak Mbps: 11317.244 Avg Mbps: 11317.244 5000 1413437112 11307.497 100.00% Conn: 1 Mbps: 11307.497 Peak Mbps: 11314.214 Avg Mbps: 11307.497 --- 127.0.0.1 tcpbench statistics --- 8468547338 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11237.442/11290.090/11314.214/27.407 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8468547338 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11246.857/11289.661/11317.244/23.662 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: 1950.883 Peak Mbps: 1950.883 Tx PPS: 165666 Elapsed: 1000 Mbps: 1951.001 Peak Mbps: 1951.001 Rx PPS: 165676 Elapsed: 2000 Mbps: 1955.252 Peak Mbps: 1955.252 Tx PPS: 166037 Elapsed: 1999 Mbps: 1955.311 Peak Mbps: 1955.311 Rx PPS: 166042 Elapsed: 3000 Mbps: 1960.144 Peak Mbps: 1960.144 Tx PPS: 166452 Elapsed: 2999 Mbps: 1958.207 Peak Mbps: 1958.207 Rx PPS: 166288 Elapsed: 4000 Mbps: 1954.274 Peak Mbps: 1960.144 Tx PPS: 165954 Elapsed: 4000 Mbps: 1954.286 Peak Mbps: 1958.207 Rx PPS: 165955 Elapsed: 5000 Mbps: 1958.537 Peak Mbps: 1960.144 Tx PPS: 166316 Elapsed: 5000 Mbps: 1958.537 Peak Mbps: 1958.537 Rx PPS: 166316 --- 127.0.0.1 tcpbench statistics --- 1466814144 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1950.883/1955.818/1960.144/3.261 Mbps Elapsed: 6002 Mbps: 1955.216 Peak Mbps: 1958.537 Rx PPS: 166033 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1466814144 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1951.001/1955.426/1958.537/2.528 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: 1818.780 Peak Mbps: 1818.780 Tx PPS: 154448 Elapsed: 1000 Mbps: 1818.874 Peak Mbps: 1818.874 Rx PPS: 154456 Elapsed: 2000 Mbps: 1843.398 Peak Mbps: 1843.398 Tx PPS: 156538 Elapsed: 1999 Mbps: 1842.985 Peak Mbps: 1842.985 Rx PPS: 156503 Elapsed: 3000 Mbps: 1837.492 Peak Mbps: 1843.398 Tx PPS: 156037 Elapsed: 2999 Mbps: 1837.492 Peak Mbps: 1842.985 Rx PPS: 156037 Elapsed: 4000 Mbps: 1847.005 Peak Mbps: 1847.005 Tx PPS: 156844 Elapsed: 3999 Mbps: 1845.158 Peak Mbps: 1845.158 Rx PPS: 156688 Elapsed: 5000 Mbps: 1847.712 Peak Mbps: 1847.712 Tx PPS: 156904 Elapsed: 4999 Mbps: 1845.864 Peak Mbps: 1845.864 Rx PPS: 156748 --- 127.0.0.1 tcpbench statistics --- 1379147712 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1818.780/1838.877/1847.712/10.681 Mbps Elapsed: 6002 Mbps: 1840.488 Peak Mbps: 1845.864 Rx PPS: 156291 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1379087360 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1818.874/1838.477/1845.864/9.209 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s