START sys/kern/sosplice/perf 2024-09-26T01:30:49Z ==== 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 1538397764 12307.182 100.00% Conn: 1 Mbps: 12307.182 Peak Mbps: 12307.182 Avg Mbps: 12307.182 1000 1538240588 12305.925 100.00% Conn: 1 Mbps: 12305.925 Peak Mbps: 12305.925 Avg Mbps: 12305.925 2000 1545253254 12374.400 100.00% Conn: 1 Mbps: 12374.400 Peak Mbps: 12374.400 Avg Mbps: 12374.400 2000 1545297392 12374.754 100.00% Conn: 1 Mbps: 12374.754 Peak Mbps: 12374.754 Avg Mbps: 12374.754 3000 1546282500 12370.260 100.00% Conn: 1 Mbps: 12370.260 Peak Mbps: 12374.400 Avg Mbps: 12370.260 3000 1546250212 12370.002 100.00% Conn: 1 Mbps: 12370.002 Peak Mbps: 12374.754 Avg Mbps: 12370.002 4000 1544156968 12365.621 100.00% Conn: 1 Mbps: 12365.621 Peak Mbps: 12374.400 Avg Mbps: 12365.621 4000 1544171778 12353.374 100.00% Conn: 1 Mbps: 12353.374 Peak Mbps: 12374.754 Avg Mbps: 12353.374 5000 1543569328 12348.555 100.00% Conn: 1 Mbps: 12348.555 Peak Mbps: 12374.400 Avg Mbps: 12348.555 5000 1543602564 12348.821 100.00% Conn: 1 Mbps: 12348.821 Peak Mbps: 12374.754 Avg Mbps: 12348.821 --- 127.0.0.1 tcpbench statistics --- 9263811198 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12307.182/12353.204/12374.400/24.633 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9263811198 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12305.925/12350.575/12374.754/24.358 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 1839305898 14714.447 100.00% Conn: 1 Mbps: 14714.447 Peak Mbps: 14714.447 Avg Mbps: 14714.447 1000 1837595640 14700.765 100.00% Conn: 1 Mbps: 14700.765 Peak Mbps: 14700.765 Avg Mbps: 14700.765 2000 1851925616 14830.235 100.00% Conn: 1 Mbps: 14830.235 Peak Mbps: 14830.235 Avg Mbps: 14830.235 2000 1852309504 14818.476 100.00% Conn: 1 Mbps: 14818.476 Peak Mbps: 14818.476 Avg Mbps: 14818.476 3000 1854265310 14834.122 100.00% Conn: 1 Mbps: 14834.122 Peak Mbps: 14834.122 Avg Mbps: 14834.122 3000 1854144512 14833.156 100.00% Conn: 1 Mbps: 14833.156 Peak Mbps: 14833.156 Avg Mbps: 14833.156 4000 1857348262 14858.786 100.00% Conn: 1 Mbps: 14858.786 Peak Mbps: 14858.786 Avg Mbps: 14858.786 4000 1857552384 14860.419 100.00% Conn: 1 Mbps: 14860.419 Peak Mbps: 14860.419 Avg Mbps: 14860.419 5000 1851172766 14809.382 100.00% Conn: 1 Mbps: 14809.382 Peak Mbps: 14858.786 Avg Mbps: 14809.382 5000 1850998784 14807.990 100.00% Conn: 1 Mbps: 14807.990 Peak Mbps: 14860.419 Avg Mbps: 14807.990 --- 127.0.0.1 tcpbench statistics --- 11107433596 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14714.447/14809.395/14858.786/50.001 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11107433596 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14700.765/14804.161/14860.419/54.619 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: 3155.721 Peak Mbps: 3155.721 Tx PPS: 267979 Elapsed: 1000 Mbps: 2384.416 Peak Mbps: 2384.416 Rx PPS: 202481 Elapsed: 2000 Mbps: 2964.864 Peak Mbps: 3155.721 Tx PPS: 251771 Elapsed: 2018 Mbps: 2225.294 Peak Mbps: 2384.416 Rx PPS: 188968 Elapsed: 3000 Mbps: 2955.670 Peak Mbps: 3155.721 Tx PPS: 250991 Elapsed: 3018 Mbps: 2307.825 Peak Mbps: 2384.416 Rx PPS: 195977 Elapsed: 4000 Mbps: 3006.743 Peak Mbps: 3155.721 Tx PPS: 255328 Elapsed: 4018 Mbps: 2262.947 Peak Mbps: 2384.416 Rx PPS: 192166 Elapsed: 5000 Mbps: 2942.245 Peak Mbps: 3155.721 Tx PPS: 249851 Elapsed: 5018 Mbps: 2294.565 Peak Mbps: 2384.416 Rx PPS: 194851 Elapsed: 6039 Mbps: 2307.080 Peak Mbps: 2384.416 Rx PPS: 195913 --- 127.0.0.1 tcpbench statistics --- 2264900160 bytes sent over 6.039 seconds bandwidth min/avg/max/std-dev = 2942.245/3005.049/3155.721/78.361 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1733671552 bytes received over 6.042 seconds bandwidth min/avg/max/std-dev = 2225.294/2297.021/2384.416/48.593 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: 1038 Mbps: 2084.136 Peak Mbps: 2084.136 Rx PPS: 176981 Elapsed: 1038 Mbps: 3040.647 Peak Mbps: 3040.647 Tx PPS: 258207 Elapsed: 2038 Mbps: 2223.436 Peak Mbps: 2223.436 Rx PPS: 188810 Elapsed: 2038 Mbps: 3166.105 Peak Mbps: 3166.105 Tx PPS: 268860 Elapsed: 3038 Mbps: 2104.253 Peak Mbps: 2223.436 Rx PPS: 178690 Elapsed: 3038 Mbps: 2957.790 Peak Mbps: 3166.105 Tx PPS: 251171 Elapsed: 4038 Mbps: 2068.596 Peak Mbps: 2223.436 Rx PPS: 175662 Elapsed: 4038 Mbps: 3012.583 Peak Mbps: 3166.105 Tx PPS: 255824 Elapsed: 5038 Mbps: 2258.896 Peak Mbps: 2258.896 Rx PPS: 191822 Elapsed: 5038 Mbps: 3056.284 Peak Mbps: 3166.105 Tx PPS: 259535 --- 127.0.0.1 tcpbench statistics --- 2262143104 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2957.790/3046.682/3166.105/68.491 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1595908544 bytes received over 6.027 seconds bandwidth min/avg/max/std-dev = 2068.596/2147.864/2258.896/77.828 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.64s