START sys/kern/sosplice/perf 2025-01-10T02:27:39Z ==== 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 1934316920 15474.535 100.00% Conn: 1 Mbps: 15474.535 Peak Mbps: 15474.535 Avg Mbps: 15474.535 999 1934251488 15489.501 100.00% Conn: 1 Mbps: 15489.501 Peak Mbps: 15489.501 Avg Mbps: 15489.501 2000 1950295854 15602.367 100.00% Conn: 1 Mbps: 15602.367 Peak Mbps: 15602.367 Avg Mbps: 15602.367 1999 1950328558 15602.628 100.00% Conn: 1 Mbps: 15602.628 Peak Mbps: 15602.628 Avg Mbps: 15602.628 3000 1950297138 15617.995 100.00% Conn: 1 Mbps: 15617.995 Peak Mbps: 15617.995 Avg Mbps: 15617.995 2999 1950297150 15602.377 100.00% Conn: 1 Mbps: 15602.377 Peak Mbps: 15602.628 Avg Mbps: 15602.377 4000 1950836388 15606.691 100.00% Conn: 1 Mbps: 15606.691 Peak Mbps: 15617.995 Avg Mbps: 15606.691 4000 1950705524 15605.644 100.00% Conn: 1 Mbps: 15605.644 Peak Mbps: 15605.644 Avg Mbps: 15605.644 5000 1953566662 15644.177 100.00% Conn: 1 Mbps: 15644.177 Peak Mbps: 15644.177 Avg Mbps: 15644.177 5000 1953730242 15629.842 100.00% Conn: 1 Mbps: 15629.842 Peak Mbps: 15629.842 Avg Mbps: 15629.842 --- 127.0.0.1 tcpbench statistics --- 11687583364 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15474.535/15589.153/15644.177/59.125 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11687583364 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15489.501/15585.999/15629.842/49.325 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 1524790640 12198.325 100.00% Conn: 1 Mbps: 12198.325 Peak Mbps: 12198.325 Avg Mbps: 12198.325 999 1524823356 12210.798 100.00% Conn: 1 Mbps: 12210.798 Peak Mbps: 12210.798 Avg Mbps: 12210.798 2000 1528585316 12228.683 100.00% Conn: 1 Mbps: 12228.683 Peak Mbps: 12228.683 Avg Mbps: 12228.683 1999 1528487168 12227.897 100.00% Conn: 1 Mbps: 12227.897 Peak Mbps: 12227.897 Avg Mbps: 12227.897 3000 1528911548 12243.536 100.00% Conn: 1 Mbps: 12243.536 Peak Mbps: 12243.536 Avg Mbps: 12243.536 2999 1528944264 12243.798 100.00% Conn: 1 Mbps: 12243.798 Peak Mbps: 12243.798 Avg Mbps: 12243.798 3999 1530320076 12254.815 100.00% 4000 1530385508 12243.084 100.00% Conn: 1 Mbps: 12254.815 Peak Mbps: 12254.815 Avg Mbps: 12254.815 Conn: 1 Mbps: 12243.084 Peak Mbps: 12243.536 Avg Mbps: 12243.084 5000 1528553184 12228.425 100.00% Conn: 1 Mbps: 12228.425 Peak Mbps: 12254.815 Avg Mbps: 12228.425 5000 1528684048 12229.472 100.00% Conn: 1 Mbps: 12229.472 Peak Mbps: 12243.536 Avg Mbps: 12229.472 --- 127.0.0.1 tcpbench statistics --- 9172544198 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12198.325/12228.620/12243.536/16.433 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9172544198 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12210.798/12233.147/12254.815/15.049 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: 3126.528 Peak Mbps: 3126.528 Tx PPS: 265500 Elapsed: 1000 Mbps: 2564.671 Peak Mbps: 2564.671 Rx PPS: 217788 Elapsed: 2000 Mbps: 2966.821 Peak Mbps: 3126.528 Tx PPS: 251937 Elapsed: 2000 Mbps: 2506.402 Peak Mbps: 2564.671 Rx PPS: 212839 Elapsed: 3000 Mbps: 3019.366 Peak Mbps: 3126.528 Tx PPS: 256400 Elapsed: 3000 Mbps: 2545.042 Peak Mbps: 2564.671 Rx PPS: 216121 Elapsed: 4000 Mbps: 2972.781 Peak Mbps: 3126.528 Tx PPS: 252444 Elapsed: 4000 Mbps: 2500.740 Peak Mbps: 2564.671 Rx PPS: 212359 Elapsed: 5000 Mbps: 3019.484 Peak Mbps: 3126.528 Tx PPS: 256410 Elapsed: 5000 Mbps: 2487.927 Peak Mbps: 2564.671 Rx PPS: 211271 --- 127.0.0.1 tcpbench statistics --- 2260192704 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2966.821/3020.996/3126.528/57.274 Mbps Elapsed: 6026 Mbps: 2314.558 Peak Mbps: 2564.671 Rx PPS: 196548 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1871945344 bytes received over 6.029 seconds bandwidth min/avg/max/std-dev = 2314.558/2486.557/2564.671/81.346 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: 3155.509 Peak Mbps: 3155.509 Tx PPS: 267961 Elapsed: 1000 Mbps: 2241.974 Peak Mbps: 2241.974 Rx PPS: 190385 Elapsed: 2000 Mbps: 2956.118 Peak Mbps: 3155.509 Tx PPS: 251029 Elapsed: 1999 Mbps: 2163.142 Peak Mbps: 2241.974 Rx PPS: 183690 Elapsed: 3000 Mbps: 2976.466 Peak Mbps: 3155.509 Tx PPS: 252757 Elapsed: 2999 Mbps: 2187.239 Peak Mbps: 2241.974 Rx PPS: 185737 Elapsed: 4000 Mbps: 3010.770 Peak Mbps: 3155.509 Tx PPS: 255670 Elapsed: 4000 Mbps: 2155.950 Peak Mbps: 2241.974 Rx PPS: 183080 Elapsed: 5000 Mbps: 2940.561 Peak Mbps: 3155.509 Tx PPS: 249708 Elapsed: 5000 Mbps: 2146.815 Peak Mbps: 2241.974 Rx PPS: 182304 --- 127.0.0.1 tcpbench statistics --- 2268051712 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2940.561/3007.885/3155.509/77.460 Mbps Elapsed: 6044 Mbps: 2246.836 Peak Mbps: 2246.836 Rx PPS: 190797 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1654672256 bytes received over 6.047 seconds bandwidth min/avg/max/std-dev = 2146.815/2190.326/2246.836/40.175 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.69s