START sys/kern/sosplice/perf 2025-03-31T01:16:37Z ==== 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 1813894032 14511.152 100.00% Conn: 1 Mbps: 14511.152 Peak Mbps: 14511.152 Avg Mbps: 14511.152 1000 1813828588 14510.629 100.00% Conn: 1 Mbps: 14510.629 Peak Mbps: 14510.629 Avg Mbps: 14510.629 2000 1819800710 14572.979 100.00% Conn: 1 Mbps: 14572.979 Peak Mbps: 14572.979 Avg Mbps: 14572.979 2000 1819866374 14558.931 100.00% Conn: 1 Mbps: 14558.931 Peak Mbps: 14558.931 Avg Mbps: 14558.931 3000 1819195992 14553.568 100.00% Conn: 1 Mbps: 14553.568 Peak Mbps: 14572.979 Avg Mbps: 14553.568 3000 1819228488 14553.828 100.00% Conn: 1 Mbps: 14553.828 Peak Mbps: 14558.931 Avg Mbps: 14553.828 4000 1820766588 14566.133 100.00% Conn: 1 Mbps: 14566.133 Peak Mbps: 14572.979 Avg Mbps: 14566.133 4000 1820799304 14566.394 100.00% Conn: 1 Mbps: 14566.394 Peak Mbps: 14566.394 Avg Mbps: 14566.394 5000 1820782298 14566.258 100.00% Conn: 1 Mbps: 14566.258 Peak Mbps: 14572.979 Avg Mbps: 14566.258 5000 1820815014 14566.520 100.00% Conn: 1 Mbps: 14566.520 Peak Mbps: 14566.520 Avg Mbps: 14566.520 --- 127.0.0.1 tcpbench statistics --- 10917739490 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14511.152/14554.018/14572.979/22.333 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10917739490 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14510.629/14551.260/14566.520/20.872 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 1991746974 15933.976 100.00% Conn: 1 Mbps: 15933.976 Peak Mbps: 15933.976 Avg Mbps: 15933.976 999 1991681542 15949.402 100.00% Conn: 1 Mbps: 15949.402 Peak Mbps: 15949.402 Avg Mbps: 15949.402 2000 2007468332 16075.822 100.00% Conn: 1 Mbps: 16075.822 Peak Mbps: 16075.822 Avg Mbps: 16075.822 2000 2007631900 16061.055 100.00% Conn: 1 Mbps: 16061.055 Peak Mbps: 16061.055 Avg Mbps: 16061.055 3000 2007384230 16059.074 100.00% Conn: 1 Mbps: 16059.074 Peak Mbps: 16075.822 Avg Mbps: 16059.074 3000 2007220662 16057.765 100.00% Conn: 1 Mbps: 16057.765 Peak Mbps: 16061.055 Avg Mbps: 16057.765 4000 2007219986 16073.834 100.00% Conn: 1 Mbps: 16073.834 Peak Mbps: 16075.822 Avg Mbps: 16073.834 4000 2007285418 16058.283 100.00% Conn: 1 Mbps: 16058.283 Peak Mbps: 16061.055 Avg Mbps: 16058.283 5000 2006830458 16054.644 100.00% Conn: 1 Mbps: 16054.644 Peak Mbps: 16075.822 Avg Mbps: 16054.644 5000 2006765026 16054.120 100.00% Conn: 1 Mbps: 16054.120 Peak Mbps: 16061.055 Avg Mbps: 16054.120 --- 127.0.0.1 tcpbench statistics --- 12026775840 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15933.976/16039.470/16075.822/53.378 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12026775840 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15949.402/16036.125/16061.055/43.418 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: 3291.686 Peak Mbps: 3291.686 Tx PPS: 279525 Elapsed: 1000 Mbps: 3003.645 Peak Mbps: 3003.645 Rx PPS: 255065 Elapsed: 2000 Mbps: 3258.828 Peak Mbps: 3291.686 Tx PPS: 276734 Elapsed: 2000 Mbps: 2919.340 Peak Mbps: 3003.645 Rx PPS: 247905 Elapsed: 3000 Mbps: 3288.507 Peak Mbps: 3291.686 Tx PPS: 279255 Elapsed: 3000 Mbps: 3011.936 Peak Mbps: 3011.936 Rx PPS: 255769 Elapsed: 4000 Mbps: 3276.389 Peak Mbps: 3291.686 Tx PPS: 278226 Elapsed: 4000 Mbps: 3212.293 Peak Mbps: 3212.293 Rx PPS: 272783 Elapsed: 5000 Mbps: 3306.524 Peak Mbps: 3306.524 Tx PPS: 280785 Elapsed: 5000 Mbps: 2962.571 Peak Mbps: 3212.293 Rx PPS: 251577 --- 127.0.0.1 tcpbench statistics --- 2464911104 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3258.828/3284.387/3306.524/15.984 Mbps Elapsed: 6000 Mbps: 2935.041 Peak Mbps: 3212.293 Rx PPS: 249239 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2256574528 bytes received over 6.006 seconds bandwidth min/avg/max/std-dev = 2919.340/3007.471/3212.293/97.481 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: 3376.721 Peak Mbps: 3376.721 Tx PPS: 286746 Elapsed: 1000 Mbps: 2742.819 Peak Mbps: 2742.819 Rx PPS: 232916 Elapsed: 2000 Mbps: 3346.117 Peak Mbps: 3376.721 Tx PPS: 284147 Elapsed: 1999 Mbps: 2761.525 Peak Mbps: 2761.525 Rx PPS: 234504 Elapsed: 3000 Mbps: 3373.859 Peak Mbps: 3376.721 Tx PPS: 286503 Elapsed: 2999 Mbps: 2744.150 Peak Mbps: 2761.525 Rx PPS: 233029 Elapsed: 4000 Mbps: 3434.671 Peak Mbps: 3434.671 Tx PPS: 291667 Elapsed: 3999 Mbps: 2731.420 Peak Mbps: 2761.525 Rx PPS: 231948 Elapsed: 5000 Mbps: 3352.380 Peak Mbps: 3434.671 Tx PPS: 284679 Elapsed: 5000 Mbps: 2774.461 Peak Mbps: 2774.461 Rx PPS: 235603 --- 127.0.0.1 tcpbench statistics --- 2529942592 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3346.117/3376.750/3434.671/31.290 Mbps Elapsed: 6000 Mbps: 2812.427 Peak Mbps: 2812.427 Rx PPS: 238827 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2076397312 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2731.420/2761.133/2812.427/26.819 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.64s