START sys/kern/sosplice/perf 2025-03-26T02:24: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 1000 1814188500 14513.508 100.00% Conn: 1 Mbps: 14513.508 Peak Mbps: 14513.508 Avg Mbps: 14513.508 999 1814090352 14527.250 100.00% Conn: 1 Mbps: 14527.250 Peak Mbps: 14527.250 Avg Mbps: 14527.250 2000 1825577112 14619.236 100.00% Conn: 1 Mbps: 14619.236 Peak Mbps: 14619.236 Avg Mbps: 14619.236 2000 1825740692 14605.926 100.00% Conn: 1 Mbps: 14605.926 Peak Mbps: 14605.926 Avg Mbps: 14605.926 3000 1828976144 14631.809 100.00% Conn: 1 Mbps: 14631.809 Peak Mbps: 14631.809 Avg Mbps: 14631.809 3000 1828943428 14646.194 100.00% Conn: 1 Mbps: 14646.194 Peak Mbps: 14646.194 Avg Mbps: 14646.194 4000 1824756808 14598.054 100.00% Conn: 1 Mbps: 14598.054 Peak Mbps: 14631.809 Avg Mbps: 14598.054 4000 1824658660 14597.269 100.00% Conn: 1 Mbps: 14597.269 Peak Mbps: 14646.194 Avg Mbps: 14597.269 5000 1824562256 14611.109 100.00% Conn: 1 Mbps: 14611.109 Peak Mbps: 14631.809 Avg Mbps: 14611.109 5000 1824627688 14611.633 100.00% Conn: 1 Mbps: 14611.633 Peak Mbps: 14646.194 Avg Mbps: 14611.633 --- 127.0.0.1 tcpbench statistics --- 10943472648 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14513.508/14594.743/14631.809/42.076 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10943472648 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14527.250/14597.654/14646.194/38.928 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 2001280832 16010.247 100.00% Conn: 1 Mbps: 16010.247 Peak Mbps: 16010.247 Avg Mbps: 16010.247 1000 2001280832 16010.247 100.00% Conn: 1 Mbps: 16010.247 Peak Mbps: 16010.247 Avg Mbps: 16010.247 2000 2015497750 16140.122 100.00% Conn: 1 Mbps: 16140.122 Peak Mbps: 16140.122 Avg Mbps: 16140.122 2000 2015399602 16139.336 100.00% Conn: 1 Mbps: 16139.336 Peak Mbps: 16139.336 Avg Mbps: 16139.336 3000 2017230142 16137.841 100.00% Conn: 1 Mbps: 16137.841 Peak Mbps: 16140.122 Avg Mbps: 16137.841 3000 2017393722 16139.150 100.00% Conn: 1 Mbps: 16139.150 Peak Mbps: 16139.336 Avg Mbps: 16139.150 4000 2015364642 16122.917 100.00% Conn: 1 Mbps: 16122.917 Peak Mbps: 16140.122 Avg Mbps: 16122.917 4000 2015364642 16139.056 100.00% Conn: 1 Mbps: 16139.056 Peak Mbps: 16139.336 Avg Mbps: 16139.056 5000 2017521298 16140.170 100.00% Conn: 1 Mbps: 16140.170 Peak Mbps: 16140.170 Avg Mbps: 16140.170 5000 2017423150 16139.385 100.00% Conn: 1 Mbps: 16139.385 Peak Mbps: 16139.385 Avg Mbps: 16139.385 --- 127.0.0.1 tcpbench statistics --- 12082783678 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16010.247/16110.259/16140.170/50.418 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12082783678 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16010.247/16113.435/16139.385/51.594 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: 3252.861 Peak Mbps: 3252.861 Tx PPS: 276228 Elapsed: 1000 Mbps: 3023.618 Peak Mbps: 3023.618 Rx PPS: 256761 Elapsed: 2000 Mbps: 3241.571 Peak Mbps: 3252.861 Tx PPS: 275269 Elapsed: 2000 Mbps: 3178.825 Peak Mbps: 3178.825 Rx PPS: 269940 Elapsed: 3000 Mbps: 3326.025 Peak Mbps: 3326.025 Tx PPS: 282441 Elapsed: 3000 Mbps: 3237.093 Peak Mbps: 3237.093 Rx PPS: 274889 Elapsed: 4000 Mbps: 3362.278 Peak Mbps: 3362.278 Tx PPS: 285519 Elapsed: 4000 Mbps: 3233.478 Peak Mbps: 3237.093 Rx PPS: 274582 Elapsed: 5000 Mbps: 3313.825 Peak Mbps: 3362.278 Tx PPS: 281405 Elapsed: 5000 Mbps: 3235.338 Peak Mbps: 3237.093 Rx PPS: 274740 --- 127.0.0.1 tcpbench statistics --- 2476740096 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3241.571/3299.312/3362.278/45.565 Mbps Elapsed: 6000 Mbps: 3199.339 Peak Mbps: 3237.093 Rx PPS: 271683 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2391537792 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 3023.618/3184.615/3237.093/75.150 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: 3414.616 Peak Mbps: 3414.616 Tx PPS: 289964 Elapsed: 1000 Mbps: 2758.658 Peak Mbps: 2758.658 Rx PPS: 234261 Elapsed: 2000 Mbps: 3383.072 Peak Mbps: 3414.616 Tx PPS: 287285 Elapsed: 1999 Mbps: 2749.643 Peak Mbps: 2758.658 Rx PPS: 233495 Elapsed: 3000 Mbps: 3362.366 Peak Mbps: 3414.616 Tx PPS: 285527 Elapsed: 2999 Mbps: 2822.601 Peak Mbps: 2822.601 Rx PPS: 239691 Elapsed: 4000 Mbps: 3341.723 Peak Mbps: 3414.616 Tx PPS: 283774 Elapsed: 3999 Mbps: 2766.736 Peak Mbps: 2822.601 Rx PPS: 234947 Elapsed: 5000 Mbps: 3372.305 Peak Mbps: 3414.616 Tx PPS: 286371 Elapsed: 4999 Mbps: 2753.794 Peak Mbps: 2822.601 Rx PPS: 233848 --- 127.0.0.1 tcpbench statistics --- 2537828096 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3341.723/3374.816/3414.616/24.119 Mbps Elapsed: 5999 Mbps: 2730.489 Peak Mbps: 2822.601 Rx PPS: 231869 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2078515520 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2730.489/2763.653/2822.601/28.585 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s