START sys/kern/sosplice/perf 2025-03-20T19:26:54Z ==== 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 1381173220 11049.386 100.00% Conn: 1 Mbps: 11049.386 Peak Mbps: 11049.386 Avg Mbps: 11049.386 999 1381075176 11059.661 100.00% Conn: 1 Mbps: 11059.661 Peak Mbps: 11059.661 Avg Mbps: 11059.661 2000 1394938896 11159.511 100.00% Conn: 1 Mbps: 11159.511 Peak Mbps: 11159.511 Avg Mbps: 11159.511 2000 1394889926 11159.119 100.00% Conn: 1 Mbps: 11159.119 Peak Mbps: 11159.119 Avg Mbps: 11159.119 3000 1390966078 11127.729 100.00% Conn: 1 Mbps: 11127.729 Peak Mbps: 11159.119 Avg Mbps: 11127.729 3000 1391064434 11128.515 100.00% Conn: 1 Mbps: 11128.515 Peak Mbps: 11159.511 Avg Mbps: 11128.515 4000 1395563740 11164.510 100.00% 4000 1395481938 11175.031 100.00% Conn: 1 Mbps: 11164.510 Peak Mbps: 11164.510 Avg Mbps: 11164.510 Conn: 1 Mbps: 11175.031 Peak Mbps: 11175.031 Avg Mbps: 11175.031 5000 1392059840 11136.479 100.00% 5000 1392010962 11136.088 100.00% Conn: 1 Mbps: 11136.479 Peak Mbps: 11175.031 Avg Mbps: 11136.479 Conn: 1 Mbps: 11136.088 Peak Mbps: 11164.510 Avg Mbps: 11136.088 --- 127.0.0.1 tcpbench statistics --- 8346536542 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11049.386/11129.784/11175.031/43.454 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8346536542 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11059.661/11129.421/11164.510/37.489 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 1551901242 12415.210 100.00% Conn: 1 Mbps: 12415.210 Peak Mbps: 12415.210 Avg Mbps: 12415.210 1000 1551884884 12415.079 100.00% Conn: 1 Mbps: 12415.079 Peak Mbps: 12415.079 Avg Mbps: 12415.079 2000 1568269038 12546.152 100.00% Conn: 1 Mbps: 12546.152 Peak Mbps: 12546.152 Avg Mbps: 12546.152 2000 1568203594 12545.629 100.00% Conn: 1 Mbps: 12545.629 Peak Mbps: 12545.629 Avg Mbps: 12545.629 3000 1560336240 12495.185 100.00% Conn: 1 Mbps: 12495.185 Peak Mbps: 12546.152 Avg Mbps: 12495.185 3000 1560418042 12483.344 100.00% Conn: 1 Mbps: 12483.344 Peak Mbps: 12545.629 Avg Mbps: 12483.344 4000 1562267640 12498.141 100.00% Conn: 1 Mbps: 12498.141 Peak Mbps: 12546.152 Avg Mbps: 12498.141 4000 1562333060 12498.664 100.00% Conn: 1 Mbps: 12498.664 Peak Mbps: 12545.629 Avg Mbps: 12498.664 5000 1567763452 12542.108 100.00% Conn: 1 Mbps: 12542.108 Peak Mbps: 12545.629 Avg Mbps: 12542.108 5000 1568009226 12544.074 100.00% Conn: 1 Mbps: 12544.074 Peak Mbps: 12546.152 Avg Mbps: 12544.074 --- 127.0.0.1 tcpbench statistics --- 9374759302 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12415.210/12499.752/12546.152/47.515 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9374759302 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12415.079/12496.965/12545.629/47.539 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: 1981.147 Peak Mbps: 1981.147 Tx PPS: 168236 Elapsed: 1000 Mbps: 1981.265 Peak Mbps: 1981.265 Rx PPS: 168246 Elapsed: 2000 Mbps: 1985.818 Peak Mbps: 1985.818 Tx PPS: 168632 Elapsed: 1999 Mbps: 1985.889 Peak Mbps: 1985.889 Rx PPS: 168638 Elapsed: 3000 Mbps: 1986.788 Peak Mbps: 1986.788 Tx PPS: 168715 Elapsed: 2999 Mbps: 1986.800 Peak Mbps: 1986.800 Rx PPS: 168716 Elapsed: 4000 Mbps: 1984.503 Peak Mbps: 1986.788 Tx PPS: 168521 Elapsed: 3999 Mbps: 1984.503 Peak Mbps: 1986.800 Rx PPS: 168521 Elapsed: 5000 Mbps: 1985.116 Peak Mbps: 1986.788 Tx PPS: 168573 Elapsed: 4999 Mbps: 1985.116 Peak Mbps: 1986.800 Rx PPS: 168573 --- 127.0.0.1 tcpbench statistics --- 1488365696 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1981.147/1984.674/1986.788/1.920 Mbps Elapsed: 6002 Mbps: 1981.377 Peak Mbps: 1986.800 Rx PPS: 168255 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1488365696 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1981.265/1984.158/1986.800/2.126 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: 1871.395 Peak Mbps: 1871.395 Tx PPS: 158916 Elapsed: 1000 Mbps: 1871.489 Peak Mbps: 1871.489 Rx PPS: 158924 Elapsed: 2000 Mbps: 1873.127 Peak Mbps: 1873.127 Tx PPS: 159063 Elapsed: 1999 Mbps: 1873.186 Peak Mbps: 1873.186 Rx PPS: 159068 Elapsed: 3000 Mbps: 1873.962 Peak Mbps: 1873.962 Tx PPS: 159134 Elapsed: 2999 Mbps: 1873.915 Peak Mbps: 1873.915 Rx PPS: 159130 Elapsed: 4000 Mbps: 1871.795 Peak Mbps: 1873.962 Tx PPS: 158950 Elapsed: 3999 Mbps: 1871.819 Peak Mbps: 1873.915 Rx PPS: 158952 Elapsed: 5000 Mbps: 1875.681 Peak Mbps: 1875.681 Tx PPS: 159280 Elapsed: 4999 Mbps: 1875.681 Peak Mbps: 1875.681 Rx PPS: 159280 --- 127.0.0.1 tcpbench statistics --- 1404308608 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1871.395/1873.192/1875.681/1.548 Mbps Elapsed: 6002 Mbps: 1866.520 Peak Mbps: 1875.681 Rx PPS: 158501 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1404308608 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1866.520/1872.102/1875.681/2.855 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.50s