START sys/kern/sosplice/perf 2024-02-15T02:36:58Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -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 1517146814 12137.175 100.00% Conn: 1 Mbps: 12137.175 Peak Mbps: 12137.175 Avg Mbps: 12137.175 999 1517075752 12148.755 100.00% Conn: 1 Mbps: 12148.755 Peak Mbps: 12148.755 Avg Mbps: 12148.755 2000 1525486082 12216.105 100.00% Conn: 1 Mbps: 12216.105 Peak Mbps: 12216.105 Avg Mbps: 12216.105 2000 1525551074 12204.409 100.00% Conn: 1 Mbps: 12204.409 Peak Mbps: 12204.409 Avg Mbps: 12204.409 3000 1526272478 12222.402 100.00% Conn: 1 Mbps: 12222.402 Peak Mbps: 12222.402 Avg Mbps: 12222.402 3000 1526267622 12210.141 100.00% Conn: 1 Mbps: 12210.141 Peak Mbps: 12210.141 Avg Mbps: 12210.141 4000 1525207624 12201.661 100.00% Conn: 1 Mbps: 12201.661 Peak Mbps: 12222.402 Avg Mbps: 12201.661 4000 1525205188 12201.642 100.00% Conn: 1 Mbps: 12201.642 Peak Mbps: 12210.141 Avg Mbps: 12201.642 5000 1527724680 12221.797 100.00% Conn: 1 Mbps: 12221.797 Peak Mbps: 12222.402 Avg Mbps: 12221.797 5000 1527789416 12222.315 100.00% Conn: 1 Mbps: 12222.315 Peak Mbps: 12222.315 Avg Mbps: 12222.315 --- 127.0.0.1 tcpbench statistics --- 9151541760 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12137.175/12199.828/12222.402/32.206 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9151541760 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12148.755/12197.452/12222.315/25.364 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 1877858344 15022.867 100.00% Conn: 1 Mbps: 15022.867 Peak Mbps: 15022.867 Avg Mbps: 15022.867 1000 1876255514 15010.044 100.00% Conn: 1 Mbps: 15010.044 Peak Mbps: 15010.044 Avg Mbps: 15010.044 2000 1888587120 15123.821 100.00% Conn: 1 Mbps: 15123.821 Peak Mbps: 15123.821 Avg Mbps: 15123.821 2000 1888747520 15109.980 100.00% Conn: 1 Mbps: 15109.980 Peak Mbps: 15109.980 Avg Mbps: 15109.980 3000 1888796758 15125.500 100.00% Conn: 1 Mbps: 15125.500 Peak Mbps: 15125.500 Avg Mbps: 15125.500 3000 1889009664 15112.077 100.00% Conn: 1 Mbps: 15112.077 Peak Mbps: 15112.077 Avg Mbps: 15112.077 4000 1889490262 15115.922 100.00% Conn: 1 Mbps: 15115.922 Peak Mbps: 15125.500 Avg Mbps: 15115.922 4000 1889533952 15116.272 100.00% Conn: 1 Mbps: 15116.272 Peak Mbps: 15116.272 Avg Mbps: 15116.272 5000 1887815074 15102.521 100.00% Conn: 1 Mbps: 15102.521 Peak Mbps: 15125.500 Avg Mbps: 15102.521 5000 1887698944 15101.592 100.00% Conn: 1 Mbps: 15101.592 Peak Mbps: 15116.272 Avg Mbps: 15101.592 --- 127.0.0.1 tcpbench statistics --- 11319431702 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15022.867/15098.126/15125.500/38.495 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11319431702 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15010.044/15089.993/15116.272/40.259 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: 1567.645 Peak Mbps: 1567.645 Tx PPS: 133122 Elapsed: 999 Mbps: 1377.427 Peak Mbps: 1377.427 Rx PPS: 116968 Elapsed: 2000 Mbps: 1579.245 Peak Mbps: 1579.245 Tx PPS: 134107 Elapsed: 1999 Mbps: 1381.258 Peak Mbps: 1381.258 Rx PPS: 117294 Elapsed: 3000 Mbps: 1572.061 Peak Mbps: 1579.245 Tx PPS: 133497 Elapsed: 2999 Mbps: 1377.980 Peak Mbps: 1381.258 Rx PPS: 117016 Elapsed: 4000 Mbps: 1573.709 Peak Mbps: 1579.245 Tx PPS: 133637 Elapsed: 3999 Mbps: 1377.580 Peak Mbps: 1381.258 Rx PPS: 116982 Elapsed: 5000 Mbps: 1578.561 Peak Mbps: 1579.245 Tx PPS: 134049 Elapsed: 4999 Mbps: 1383.108 Peak Mbps: 1383.108 Rx PPS: 117451 --- 127.0.0.1 tcpbench statistics --- 1180992960 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1567.645/1574.244/1579.245/4.295 Mbps Elapsed: 5999 Mbps: 1377.345 Peak Mbps: 1383.108 Rx PPS: 116962 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1033885696 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1377.345/1379.116/1383.108/2.242 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: 1528.360 Peak Mbps: 1528.360 Tx PPS: 129786 Elapsed: 1000 Mbps: 1528.372 Peak Mbps: 1528.372 Rx PPS: 129787 Elapsed: 2000 Mbps: 1528.829 Peak Mbps: 1528.829 Tx PPS: 129825 Elapsed: 2000 Mbps: 1528.923 Peak Mbps: 1528.923 Rx PPS: 129833 Elapsed: 3000 Mbps: 1532.988 Peak Mbps: 1532.988 Tx PPS: 130179 Elapsed: 3000 Mbps: 1533.035 Peak Mbps: 1533.035 Rx PPS: 130183 Elapsed: 4000 Mbps: 1532.776 Peak Mbps: 1532.988 Tx PPS: 130161 Elapsed: 4000 Mbps: 1532.729 Peak Mbps: 1533.035 Rx PPS: 130157 Elapsed: 5000 Mbps: 1529.878 Peak Mbps: 1532.988 Tx PPS: 129914 Elapsed: 5000 Mbps: 1528.336 Peak Mbps: 1533.035 Rx PPS: 129784 --- 127.0.0.1 tcpbench statistics --- 1147422528 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1528.360/1530.566/1532.988/1.955 Mbps Elapsed: 6002 Mbps: 1526.461 Peak Mbps: 1533.035 Rx PPS: 129624 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1147422528 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1526.461/1529.643/1533.035/2.415 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.59s