START sys/kern/sosplice/perf 2024-12-20T20:28:30Z ==== 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 2226029450 17808.236 100.00% Conn: 1 Mbps: 17808.236 Peak Mbps: 17808.236 Avg Mbps: 17808.236 999 2225898586 17825.014 100.00% Conn: 1 Mbps: 17825.014 Peak Mbps: 17825.014 Avg Mbps: 17825.014 2000 2240912738 17927.302 100.00% Conn: 1 Mbps: 17927.302 Peak Mbps: 17927.302 Avg Mbps: 17927.302 2000 2240912750 17927.302 100.00% Conn: 1 Mbps: 17927.302 Peak Mbps: 17927.302 Avg Mbps: 17927.302 3000 2244372870 17972.956 100.00% Conn: 1 Mbps: 17972.956 Peak Mbps: 17972.956 Avg Mbps: 17972.956 3000 2244423920 17955.391 100.00% Conn: 1 Mbps: 17955.391 Peak Mbps: 17955.391 Avg Mbps: 17955.391 4000 2246998870 17975.991 100.00% Conn: 1 Mbps: 17975.991 Peak Mbps: 17975.991 Avg Mbps: 17975.991 4000 2247062730 17976.502 100.00% Conn: 1 Mbps: 17976.502 Peak Mbps: 17976.502 Avg Mbps: 17976.502 5000 2240135832 17921.087 100.00% Conn: 1 Mbps: 17921.087 Peak Mbps: 17975.991 Avg Mbps: 17921.087 5000 2240086446 17938.630 100.00% Conn: 1 Mbps: 17938.630 Peak Mbps: 17976.502 Avg Mbps: 17938.630 --- 127.0.0.1 tcpbench statistics --- 13441236792 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17808.236/17921.114/17975.991/60.793 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13441236792 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 17825.014/17924.568/17976.502/52.466 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 2426940126 19415.521 100.00% Conn: 1 Mbps: 19415.521 Peak Mbps: 19415.521 Avg Mbps: 19415.521 999 2426956484 19435.087 100.00% Conn: 1 Mbps: 19435.087 Peak Mbps: 19435.087 Avg Mbps: 19435.087 1999 2438088576 19504.709 100.00% Conn: 1 Mbps: 19504.709 Peak Mbps: 19504.709 Avg Mbps: 19504.709 2000 2438334362 19506.675 100.00% Conn: 1 Mbps: 19506.675 Peak Mbps: 19506.675 Avg Mbps: 19506.675 3000 2436248312 19489.986 100.00% Conn: 1 Mbps: 19489.986 Peak Mbps: 19504.709 Avg Mbps: 19489.986 3000 2436264670 19509.627 100.00% Conn: 1 Mbps: 19509.627 Peak Mbps: 19509.627 Avg Mbps: 19509.627 4000 2435107576 19500.361 100.00% Conn: 1 Mbps: 19500.361 Peak Mbps: 19509.627 Avg Mbps: 19500.361 4000 2435222498 19481.780 100.00% Conn: 1 Mbps: 19481.780 Peak Mbps: 19504.709 Avg Mbps: 19481.780 5000 2433886652 19490.584 100.00% Conn: 1 Mbps: 19490.584 Peak Mbps: 19504.709 Avg Mbps: 19490.584 5000 2433870710 19470.966 100.00% Conn: 1 Mbps: 19470.966 Peak Mbps: 19509.627 Avg Mbps: 19470.966 --- 127.0.0.1 tcpbench statistics --- 14603949052 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 19415.521/19480.630/19509.627/35.330 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 14603949052 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 19435.087/19480.429/19504.709/23.840 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: 4471.029 Peak Mbps: 4471.029 Tx PPS: 379673 Elapsed: 1000 Mbps: 3002.762 Peak Mbps: 3002.762 Rx PPS: 254990 Elapsed: 2000 Mbps: 4062.307 Peak Mbps: 4471.029 Tx PPS: 344964 Elapsed: 2015 Mbps: 2601.568 Peak Mbps: 3002.762 Rx PPS: 220921 Elapsed: 3000 Mbps: 4073.990 Peak Mbps: 4471.029 Tx PPS: 345957 Elapsed: 3044 Mbps: 2567.672 Peak Mbps: 3002.762 Rx PPS: 218042 Elapsed: 4000 Mbps: 4052.074 Peak Mbps: 4471.029 Tx PPS: 344096 Elapsed: 4044 Mbps: 2694.370 Peak Mbps: 3002.762 Rx PPS: 228801 Elapsed: 5000 Mbps: 4038.344 Peak Mbps: 4471.029 Tx PPS: 342930 Elapsed: 5044 Mbps: 2676.979 Peak Mbps: 3002.762 Rx PPS: 227325 --- 127.0.0.1 tcpbench statistics --- 3142656704 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 4038.344/4139.549/4471.029/166.155 Mbps Elapsed: 6078 Mbps: 2626.937 Peak Mbps: 3002.762 Rx PPS: 223075 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2045788544 bytes received over 6.081 seconds bandwidth min/avg/max/std-dev = 2567.672/2695.048/3002.762/144.116 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: 4536.398 Peak Mbps: 4536.398 Tx PPS: 385224 Elapsed: 1000 Mbps: 2667.500 Peak Mbps: 2667.500 Rx PPS: 226520 Elapsed: 2000 Mbps: 4467.595 Peak Mbps: 4536.398 Tx PPS: 379381 Elapsed: 2186 Mbps: 2219.011 Peak Mbps: 2667.500 Rx PPS: 188435 Elapsed: 3000 Mbps: 3542.362 Peak Mbps: 4536.398 Tx PPS: 300812 Elapsed: 3186 Mbps: 2511.247 Peak Mbps: 2667.500 Rx PPS: 213251 Elapsed: 4000 Mbps: 4009.304 Peak Mbps: 4536.398 Tx PPS: 340464 Elapsed: 4186 Mbps: 2437.703 Peak Mbps: 2667.500 Rx PPS: 207006 Elapsed: 5023 Mbps: 4019.012 Peak Mbps: 4536.398 Tx PPS: 341288 Elapsed: 5186 Mbps: 2419.968 Peak Mbps: 2667.500 Rx PPS: 205500 --- 127.0.0.1 tcpbench statistics --- 3131247232 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3542.362/4114.934/4536.398/360.610 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1845361024 bytes received over 6.092 seconds bandwidth min/avg/max/std-dev = 2219.011/2451.086/2667.500/145.231 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.68s