START sys/kern/sosplice/perf 2025-03-16T02:20:48Z ==== 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 1782618960 14260.952 100.00% Conn: 1 Mbps: 14260.952 Peak Mbps: 14260.952 Avg Mbps: 14260.952 999 1782504558 14274.311 100.00% Conn: 1 Mbps: 14274.311 Peak Mbps: 14274.311 Avg Mbps: 14274.311 2000 1794823460 14372.961 100.00% Conn: 1 Mbps: 14372.961 Peak Mbps: 14372.961 Avg Mbps: 14372.961 2000 1794937966 14359.504 100.00% Conn: 1 Mbps: 14359.504 Peak Mbps: 14359.504 Avg Mbps: 14359.504 3000 1794332744 14354.662 100.00% Conn: 1 Mbps: 14354.662 Peak Mbps: 14372.961 Avg Mbps: 14354.662 3000 1794300028 14354.400 100.00% Conn: 1 Mbps: 14354.400 Peak Mbps: 14359.504 Avg Mbps: 14354.400 4000 1797359310 14378.874 100.00% Conn: 1 Mbps: 14378.874 Peak Mbps: 14378.874 Avg Mbps: 14378.874 4000 1797359206 14378.874 100.00% Conn: 1 Mbps: 14378.874 Peak Mbps: 14378.874 Avg Mbps: 14378.874 5000 1794317762 14354.542 100.00% Conn: 1 Mbps: 14354.542 Peak Mbps: 14378.874 Avg Mbps: 14354.542 5000 1794383182 14355.065 100.00% Conn: 1 Mbps: 14355.065 Peak Mbps: 14378.874 Avg Mbps: 14355.065 --- 127.0.0.1 tcpbench statistics --- 10760975566 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14260.952/14344.398/14378.874/42.839 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10760975566 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14274.311/14344.431/14378.874/36.174 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 1980215068 15841.721 100.00% Conn: 1 Mbps: 15841.721 Peak Mbps: 15841.721 Avg Mbps: 15841.721 999 1980116920 15856.792 100.00% Conn: 1 Mbps: 15856.792 Peak Mbps: 15856.792 Avg Mbps: 15856.792 2000 1999287780 16010.313 100.00% Conn: 1 Mbps: 16010.313 Peak Mbps: 16010.313 Avg Mbps: 16010.313 2000 1999418644 15995.349 100.00% Conn: 1 Mbps: 15995.349 Peak Mbps: 15995.349 Avg Mbps: 15995.349 3000 1997200516 15977.604 100.00% Conn: 1 Mbps: 15977.604 Peak Mbps: 16010.313 Avg Mbps: 15977.604 3000 1997167800 15977.342 100.00% Conn: 1 Mbps: 15977.342 Peak Mbps: 15995.349 Avg Mbps: 15977.342 4000 2001906532 16015.252 100.00% Conn: 1 Mbps: 16015.252 Peak Mbps: 16015.252 Avg Mbps: 16015.252 4000 2001906532 16015.252 100.00% Conn: 1 Mbps: 16015.252 Peak Mbps: 16015.252 Avg Mbps: 16015.252 5000 1999390436 15995.123 100.00% Conn: 1 Mbps: 15995.123 Peak Mbps: 16015.252 Avg Mbps: 15995.123 5000 1999390436 15995.123 100.00% Conn: 1 Mbps: 15995.123 Peak Mbps: 16015.252 Avg Mbps: 15995.123 --- 127.0.0.1 tcpbench statistics --- 11974559686 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15841.721/15968.003/16015.252/64.494 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11974559686 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15856.792/15967.972/16015.252/56.870 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: 3290.473 Peak Mbps: 3290.473 Tx PPS: 279422 Elapsed: 1000 Mbps: 3048.783 Peak Mbps: 3048.783 Rx PPS: 258898 Elapsed: 2000 Mbps: 3256.966 Peak Mbps: 3290.473 Tx PPS: 276576 Elapsed: 1999 Mbps: 3058.789 Peak Mbps: 3058.789 Rx PPS: 259747 Elapsed: 3000 Mbps: 3354.217 Peak Mbps: 3354.217 Tx PPS: 284835 Elapsed: 2999 Mbps: 2920.201 Peak Mbps: 3058.789 Rx PPS: 247979 Elapsed: 4000 Mbps: 3332.526 Peak Mbps: 3354.217 Tx PPS: 282993 Elapsed: 3999 Mbps: 3002.491 Peak Mbps: 3058.789 Rx PPS: 254967 Elapsed: 5000 Mbps: 3378.134 Peak Mbps: 3378.134 Tx PPS: 286866 Elapsed: 4999 Mbps: 2985.875 Peak Mbps: 3058.789 Rx PPS: 253556 --- 127.0.0.1 tcpbench statistics --- 2492974784 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3256.966/3322.463/3378.134/43.640 Mbps Elapsed: 5999 Mbps: 2930.081 Peak Mbps: 3058.789 Rx PPS: 248818 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2249039360 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2920.201/2991.037/3058.789/52.941 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: 3360.187 Peak Mbps: 3360.187 Tx PPS: 285342 Elapsed: 1000 Mbps: 2694.596 Peak Mbps: 2694.596 Rx PPS: 228821 Elapsed: 2000 Mbps: 3402.014 Peak Mbps: 3402.014 Tx PPS: 288893 Elapsed: 2000 Mbps: 2705.380 Peak Mbps: 2705.380 Rx PPS: 229736 Elapsed: 3000 Mbps: 3409.128 Peak Mbps: 3409.128 Tx PPS: 289498 Elapsed: 3000 Mbps: 2693.324 Peak Mbps: 2705.380 Rx PPS: 228713 Elapsed: 4000 Mbps: 3400.485 Peak Mbps: 3409.128 Tx PPS: 288764 Elapsed: 4000 Mbps: 2741.865 Peak Mbps: 2741.865 Rx PPS: 232835 Elapsed: 5000 Mbps: 3362.543 Peak Mbps: 3409.128 Tx PPS: 285542 Elapsed: 5000 Mbps: 2658.244 Peak Mbps: 2741.865 Rx PPS: 225734 --- 127.0.0.1 tcpbench statistics --- 2548846016 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3360.187/3386.872/3409.128/21.043 Mbps Elapsed: 6000 Mbps: 2627.284 Peak Mbps: 2741.865 Rx PPS: 223105 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2020740992 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2627.284/2686.782/2741.865/36.144 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s