START sys/kern/sosplice/perf 2025-03-06T23:00:50Z ==== 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 950718358 7613.360 100.00% Conn: 1 Mbps: 7613.360 Peak Mbps: 7613.360 Avg Mbps: 7613.360 1000 950898296 7607.186 100.00% Conn: 1 Mbps: 7607.186 Peak Mbps: 7607.186 Avg Mbps: 7607.186 2000 969021896 7759.935 100.00% Conn: 1 Mbps: 7759.935 Peak Mbps: 7759.935 Avg Mbps: 7759.935 1999 969038566 7752.309 100.00% Conn: 1 Mbps: 7752.309 Peak Mbps: 7752.309 Avg Mbps: 7752.309 3000 954872666 7638.981 100.00% Conn: 1 Mbps: 7638.981 Peak Mbps: 7759.935 Avg Mbps: 7638.981 2999 954922516 7639.380 100.00% Conn: 1 Mbps: 7639.380 Peak Mbps: 7752.309 Avg Mbps: 7639.380 4000 951043338 7608.347 100.00% Conn: 1 Mbps: 7608.347 Peak Mbps: 7759.935 Avg Mbps: 7608.347 3999 951059452 7608.476 100.00% Conn: 1 Mbps: 7608.476 Peak Mbps: 7752.309 Avg Mbps: 7608.476 5000 942276466 7538.212 100.00% Conn: 1 Mbps: 7538.212 Peak Mbps: 7759.935 Avg Mbps: 7538.212 5000 942292812 7538.342 100.00% Conn: 1 Mbps: 7538.342 Peak Mbps: 7752.309 Avg Mbps: 7538.342 --- 127.0.0.1 tcpbench statistics --- 5725765568 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 7538.212/7630.532/7759.935/72.632 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 5725765568 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 7538.342/7630.373/7752.309/69.553 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 1098980730 8791.846 100.00% Conn: 1 Mbps: 8791.846 Peak Mbps: 8791.846 Avg Mbps: 8791.846 1000 1098980730 8791.846 100.00% Conn: 1 Mbps: 8791.846 Peak Mbps: 8791.846 Avg Mbps: 8791.846 2000 1151937460 9224.724 100.00% Conn: 1 Mbps: 9224.724 Peak Mbps: 9224.724 Avg Mbps: 9224.724 2000 1152101028 9226.034 100.00% Conn: 1 Mbps: 9226.034 Peak Mbps: 9226.034 Avg Mbps: 9226.034 3000 1145476510 9163.812 100.00% Conn: 1 Mbps: 9163.812 Peak Mbps: 9224.724 Avg Mbps: 9163.812 3000 1145411078 9163.289 100.00% Conn: 1 Mbps: 9163.289 Peak Mbps: 9226.034 Avg Mbps: 9163.289 4000 1152876566 9232.245 100.00% Conn: 1 Mbps: 9232.245 Peak Mbps: 9232.245 Avg Mbps: 9232.245 4000 1152958356 9223.667 100.00% Conn: 1 Mbps: 9223.667 Peak Mbps: 9226.034 Avg Mbps: 9223.667 5000 1162331142 9298.649 100.00% Conn: 1 Mbps: 9298.649 Peak Mbps: 9298.649 Avg Mbps: 9298.649 5000 1162298426 9298.387 100.00% Conn: 1 Mbps: 9298.387 Peak Mbps: 9298.387 Avg Mbps: 9298.387 --- 127.0.0.1 tcpbench statistics --- 6857003256 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 8791.846/9142.255/9298.649/180.338 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6857003256 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 8791.846/9140.645/9298.387/179.577 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: 2671.974 Peak Mbps: 2671.974 Tx PPS: 226900 Elapsed: 999 Mbps: 1510.794 Peak Mbps: 1510.794 Rx PPS: 128294 Elapsed: 2000 Mbps: 2044.238 Peak Mbps: 2671.974 Tx PPS: 173593 Elapsed: 1999 Mbps: 1747.233 Peak Mbps: 1747.233 Rx PPS: 148372 Elapsed: 3000 Mbps: 2594.256 Peak Mbps: 2671.974 Tx PPS: 220300 Elapsed: 2999 Mbps: 1531.575 Peak Mbps: 1747.233 Rx PPS: 130059 Elapsed: 4000 Mbps: 2817.408 Peak Mbps: 2817.408 Tx PPS: 239250 Elapsed: 3999 Mbps: 1478.253 Peak Mbps: 1747.233 Rx PPS: 125531 Elapsed: 5000 Mbps: 2541.671 Peak Mbps: 2817.408 Tx PPS: 215834 Elapsed: 4999 Mbps: 1472.813 Peak Mbps: 1747.233 Rx PPS: 125069 --- 127.0.0.1 tcpbench statistics --- 1952085440 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2044.238/2533.910/2817.408/261.883 Mbps Elapsed: 5999 Mbps: 1593.839 Peak Mbps: 1747.233 Rx PPS: 135346 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1170312128 bytes received over 6.019 seconds bandwidth min/avg/max/std-dev = 1472.813/1555.751/1747.233/94.522 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: 3266.274 Peak Mbps: 3266.274 Tx PPS: 277367 Elapsed: 1000 Mbps: 1677.008 Peak Mbps: 1677.008 Rx PPS: 142409 Elapsed: 2000 Mbps: 2715.824 Peak Mbps: 3266.274 Tx PPS: 230623 Elapsed: 2000 Mbps: 1583.913 Peak Mbps: 1677.008 Rx PPS: 134503 Elapsed: 3000 Mbps: 2787.297 Peak Mbps: 3266.274 Tx PPS: 236693 Elapsed: 3000 Mbps: 1831.663 Peak Mbps: 1831.663 Rx PPS: 155542 Elapsed: 4000 Mbps: 2579.156 Peak Mbps: 3266.274 Tx PPS: 219018 Elapsed: 4000 Mbps: 1920.995 Peak Mbps: 1920.995 Rx PPS: 163128 Elapsed: 5000 Mbps: 2663.437 Peak Mbps: 3266.274 Tx PPS: 226175 Elapsed: 5000 Mbps: 1861.927 Peak Mbps: 1920.995 Rx PPS: 158112 --- 127.0.0.1 tcpbench statistics --- 2084419712 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2579.156/2802.397/3266.274/241.682 Mbps Elapsed: 6000 Mbps: 1872.349 Peak Mbps: 1920.995 Rx PPS: 158996 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1348170944 bytes received over 6.025 seconds bandwidth min/avg/max/std-dev = 1583.913/1791.309/1920.995/119.777 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.54s