START sys/kern/sosplice/perf 2024-07-06T00:01:33Z ==== 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 1001 115571038 923.645 100.00% Conn: 1 Mbps: 923.645 Peak Mbps: 923.645 Avg Mbps: 923.645 1000 115472168 923.777 100.00% Conn: 1 Mbps: 923.777 Peak Mbps: 923.777 Avg Mbps: 923.777 2001 115866038 926.928 100.00% Conn: 1 Mbps: 926.928 Peak Mbps: 926.928 Avg Mbps: 926.928 2000 115897990 927.184 100.00% Conn: 1 Mbps: 927.184 Peak Mbps: 927.184 Avg Mbps: 927.184 3001 116550390 932.403 100.00% Conn: 1 Mbps: 932.403 Peak Mbps: 932.403 Avg Mbps: 932.403 3001 116548726 932.390 100.00% Conn: 1 Mbps: 932.390 Peak Mbps: 932.390 Avg Mbps: 932.390 4001 116146906 929.175 100.00% 4002 116222554 929.780 100.00% Conn: 1 Mbps: 929.780 Peak Mbps: 932.403 Avg Mbps: 929.780 Conn: 1 Mbps: 929.175 Peak Mbps: 932.390 Avg Mbps: 929.175 5002 117089272 936.714 100.00% Conn: 1 Mbps: 936.714 Peak Mbps: 936.714 Avg Mbps: 936.714 5004 117272618 936.308 100.00% Conn: 1 Mbps: 936.308 Peak Mbps: 936.308 Avg Mbps: 936.308 --- 127.0.0.1 tcpbench statistics --- 697887314 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 923.645/929.813/936.308/4.365 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 697887314 bytes received over 6.024 seconds bandwidth min/avg/max/std-dev = 923.777/929.848/936.714/4.427 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 1002 122434382 977.520 100.00% Conn: 1 Mbps: 977.520 Peak Mbps: 977.520 Avg Mbps: 977.520 1002 120887626 965.171 100.00% Conn: 1 Mbps: 965.171 Peak Mbps: 965.171 Avg Mbps: 965.171 2003 115903694 927.230 100.00% 2002 115867648 927.869 100.00% Conn: 1 Mbps: 927.869 Peak Mbps: 965.171 Avg Mbps: 927.869 Conn: 1 Mbps: 927.230 Peak Mbps: 977.520 Avg Mbps: 927.230 3004 115339618 921.795 100.00% Conn: 1 Mbps: 921.795 Peak Mbps: 977.520 Avg Mbps: 921.795 3004 115343360 921.825 100.00% Conn: 1 Mbps: 921.825 Peak Mbps: 965.171 Avg Mbps: 921.825 4005 115081424 920.651 100.00% Conn: 1 Mbps: 920.651 Peak Mbps: 977.520 Avg Mbps: 920.651 4004 115081216 920.650 100.00% Conn: 1 Mbps: 920.650 Peak Mbps: 965.171 Avg Mbps: 920.650 5006 116380560 930.114 100.00% Conn: 1 Mbps: 930.114 Peak Mbps: 977.520 Avg Mbps: 930.114 5006 116391936 930.205 100.00% Conn: 1 Mbps: 930.205 Peak Mbps: 965.171 Avg Mbps: 930.205 --- 127.0.0.1 tcpbench statistics --- 700742712 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 920.651/935.462/977.520/21.314 Mbps 6006 116391936 931.135 100.00% Conn: 1 Mbps: 931.135 Peak Mbps: 965.171 Avg Mbps: 931.135 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 700742712 bytes received over 6.026 seconds bandwidth min/avg/max/std-dev = 920.650/932.809/965.171/14.999 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: 237.098 Peak Mbps: 237.098 Tx PPS: 20134 Elapsed: 999 Mbps: 237.394 Peak Mbps: 237.394 Rx PPS: 20159 Elapsed: 2000 Mbps: 239.669 Peak Mbps: 239.669 Tx PPS: 20352 Elapsed: 1999 Mbps: 239.716 Peak Mbps: 239.716 Rx PPS: 20356 Elapsed: 3000 Mbps: 240.902 Peak Mbps: 240.902 Tx PPS: 20457 Elapsed: 2999 Mbps: 240.902 Peak Mbps: 240.902 Rx PPS: 20457 Elapsed: 4000 Mbps: 242.032 Peak Mbps: 242.032 Tx PPS: 20553 Elapsed: 4000 Mbps: 242.020 Peak Mbps: 242.020 Rx PPS: 20552 Elapsed: 5000 Mbps: 241.326 Peak Mbps: 242.032 Tx PPS: 20493 Elapsed: 5000 Mbps: 241.326 Peak Mbps: 242.020 Rx PPS: 20493 --- 127.0.0.1 tcpbench statistics --- 180259648 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 237.098/240.205/242.032/1.733 Mbps Elapsed: 6016 Mbps: 237.398 Peak Mbps: 242.020 Rx PPS: 20159 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 180259648 bytes received over 6.021 seconds bandwidth min/avg/max/std-dev = 237.394/239.793/242.020/1.827 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: 240.607 Peak Mbps: 240.607 Tx PPS: 20432 Elapsed: 999 Mbps: 240.919 Peak Mbps: 240.919 Rx PPS: 20458 Elapsed: 2000 Mbps: 240.270 Peak Mbps: 240.607 Tx PPS: 20403 Elapsed: 1999 Mbps: 240.306 Peak Mbps: 240.919 Rx PPS: 20406 Elapsed: 3000 Mbps: 239.665 Peak Mbps: 240.607 Tx PPS: 20352 Elapsed: 2999 Mbps: 239.677 Peak Mbps: 240.919 Rx PPS: 20353 Elapsed: 4000 Mbps: 240.525 Peak Mbps: 240.607 Tx PPS: 20425 Elapsed: 4000 Mbps: 240.513 Peak Mbps: 240.919 Rx PPS: 20424 Elapsed: 5000 Mbps: 241.031 Peak Mbps: 241.031 Tx PPS: 20468 Elapsed: 5000 Mbps: 241.031 Peak Mbps: 241.031 Rx PPS: 20468 --- 127.0.0.1 tcpbench statistics --- 180065344 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 239.665/240.420/241.031/0.450 Mbps Elapsed: 6016 Mbps: 234.801 Peak Mbps: 241.031 Rx PPS: 19938 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 180065344 bytes received over 6.023 seconds bandwidth min/avg/max/std-dev = 234.801/239.541/241.031/2.165 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m37.00s