START sys/kern/sosplice/perf 2025-03-13T02:14:01Z ==== 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 1805491476 14443.932 100.00% Conn: 1 Mbps: 14443.932 Peak Mbps: 14443.932 Avg Mbps: 14443.932 1000 1805393432 14443.147 100.00% Conn: 1 Mbps: 14443.147 Peak Mbps: 14443.147 Avg Mbps: 14443.147 2000 1815373716 14522.990 100.00% Conn: 1 Mbps: 14522.990 Peak Mbps: 14522.990 Avg Mbps: 14522.990 1999 1815406328 14537.788 100.00% Conn: 1 Mbps: 14537.788 Peak Mbps: 14537.788 Avg Mbps: 14537.788 3000 1819788900 14558.311 100.00% Conn: 1 Mbps: 14558.311 Peak Mbps: 14558.311 Avg Mbps: 14558.311 3000 1819788888 14558.311 100.00% Conn: 1 Mbps: 14558.311 Peak Mbps: 14558.311 Avg Mbps: 14558.311 4000 1822456102 14579.649 100.00% Conn: 1 Mbps: 14579.649 Peak Mbps: 14579.649 Avg Mbps: 14579.649 4000 1822456114 14579.649 100.00% Conn: 1 Mbps: 14579.649 Peak Mbps: 14579.649 Avg Mbps: 14579.649 5000 1818137834 14545.103 100.00% Conn: 1 Mbps: 14545.103 Peak Mbps: 14579.649 Avg Mbps: 14545.103 5000 1818203578 14545.629 100.00% Conn: 1 Mbps: 14545.629 Peak Mbps: 14579.649 Avg Mbps: 14545.629 --- 127.0.0.1 tcpbench statistics --- 10900872048 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14443.932/14529.997/14579.649/46.801 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10900872048 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14443.147/14532.905/14579.649/47.059 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 999 1970918770 15783.133 100.00% Conn: 1 Mbps: 15783.133 Peak Mbps: 15783.133 Avg Mbps: 15783.133 1000 1971197272 15769.578 100.00% Conn: 1 Mbps: 15769.578 Peak Mbps: 15769.578 Avg Mbps: 15769.578 1999 1990090582 15920.725 100.00% Conn: 1 Mbps: 15920.725 Peak Mbps: 15920.725 Avg Mbps: 15920.725 2000 1990090166 15936.658 100.00% Conn: 1 Mbps: 15936.658 Peak Mbps: 15936.658 Avg Mbps: 15936.658 3000 1990300904 15922.407 100.00% Conn: 1 Mbps: 15922.407 Peak Mbps: 15922.407 Avg Mbps: 15922.407 3000 1990431768 15923.454 100.00% Conn: 1 Mbps: 15923.454 Peak Mbps: 15936.658 Avg Mbps: 15923.454 4000 1990875274 15927.002 100.00% Conn: 1 Mbps: 15927.002 Peak Mbps: 15927.002 Avg Mbps: 15927.002 4000 1991055212 15928.442 100.00% Conn: 1 Mbps: 15928.442 Peak Mbps: 15936.658 Avg Mbps: 15928.442 5000 1989590240 15916.722 100.00% Conn: 1 Mbps: 15916.722 Peak Mbps: 15927.002 Avg Mbps: 15916.722 5000 1989443018 15931.476 100.00% Conn: 1 Mbps: 15931.476 Peak Mbps: 15936.658 Avg Mbps: 15931.476 --- 127.0.0.1 tcpbench statistics --- 11923155274 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15769.578/15897.922/15936.658/64.315 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11923155274 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15783.133/15893.998/15927.002/55.530 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: 3315.439 Peak Mbps: 3315.439 Tx PPS: 281542 Elapsed: 1000 Mbps: 3231.535 Peak Mbps: 3231.535 Rx PPS: 274417 Elapsed: 2000 Mbps: 3376.270 Peak Mbps: 3376.270 Tx PPS: 286707 Elapsed: 2000 Mbps: 3048.145 Peak Mbps: 3231.535 Rx PPS: 258843 Elapsed: 3000 Mbps: 3336.906 Peak Mbps: 3376.270 Tx PPS: 283365 Elapsed: 3000 Mbps: 2957.650 Peak Mbps: 3231.535 Rx PPS: 251159 Elapsed: 4000 Mbps: 3190.201 Peak Mbps: 3376.270 Tx PPS: 270907 Elapsed: 4000 Mbps: 3002.409 Peak Mbps: 3231.535 Rx PPS: 254960 Elapsed: 5000 Mbps: 3306.819 Peak Mbps: 3376.270 Tx PPS: 280810 Elapsed: 5000 Mbps: 2946.814 Peak Mbps: 3231.535 Rx PPS: 250239 --- 127.0.0.1 tcpbench statistics --- 2466478784 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3190.201/3305.127/3376.270/62.271 Mbps Elapsed: 6000 Mbps: 3090.670 Peak Mbps: 3231.535 Rx PPS: 262455 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2286110208 bytes received over 6.007 seconds bandwidth min/avg/max/std-dev = 2946.814/3046.204/3231.535/96.580 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: 3496.224 Peak Mbps: 3496.224 Tx PPS: 296894 Elapsed: 1000 Mbps: 2733.257 Peak Mbps: 2733.257 Rx PPS: 232104 Elapsed: 2000 Mbps: 3408.757 Peak Mbps: 3496.224 Tx PPS: 289466 Elapsed: 1999 Mbps: 2770.260 Peak Mbps: 2770.260 Rx PPS: 235246 Elapsed: 3000 Mbps: 3357.196 Peak Mbps: 3496.224 Tx PPS: 285088 Elapsed: 2999 Mbps: 2797.707 Peak Mbps: 2797.707 Rx PPS: 237577 Elapsed: 4000 Mbps: 3354.888 Peak Mbps: 3496.224 Tx PPS: 284892 Elapsed: 3999 Mbps: 2698.306 Peak Mbps: 2797.707 Rx PPS: 229136 Elapsed: 5000 Mbps: 3348.882 Peak Mbps: 3496.224 Tx PPS: 284382 Elapsed: 4999 Mbps: 2745.965 Peak Mbps: 2797.707 Rx PPS: 233183 --- 127.0.0.1 tcpbench statistics --- 2551868032 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3348.882/3393.190/3496.224/55.828 Mbps Elapsed: 5999 Mbps: 2750.744 Peak Mbps: 2797.707 Rx PPS: 233589 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2067378368 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2698.306/2749.373/2797.707/30.696 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.64s