START sys/kern/sosplice/perf 2024-11-15T12:47:06Z ==== 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 65628284 524.502 100.00% Conn: 1 Mbps: 524.502 Peak Mbps: 524.502 Avg Mbps: 524.502 1001 65550458 523.880 100.00% Conn: 1 Mbps: 523.880 Peak Mbps: 523.880 Avg Mbps: 523.880 2001 60361020 483.372 100.00% Conn: 1 Mbps: 483.372 Peak Mbps: 524.502 Avg Mbps: 483.372 2001 60358656 482.869 100.00% Conn: 1 Mbps: 482.869 Peak Mbps: 523.880 Avg Mbps: 482.869 3002 60148366 481.187 100.00% Conn: 1 Mbps: 481.187 Peak Mbps: 524.502 Avg Mbps: 481.187 3002 60162048 481.296 100.00% Conn: 1 Mbps: 481.296 Peak Mbps: 523.880 Avg Mbps: 481.296 4002 60033860 480.271 100.00% Conn: 1 Mbps: 480.271 Peak Mbps: 524.502 Avg Mbps: 480.271 4002 60030976 480.248 100.00% Conn: 1 Mbps: 480.248 Peak Mbps: 523.880 Avg Mbps: 480.248 5002 59772132 478.177 100.00% Conn: 1 Mbps: 478.177 Peak Mbps: 524.502 Avg Mbps: 478.177 5002 59768832 478.151 100.00% Conn: 1 Mbps: 478.151 Peak Mbps: 523.880 Avg Mbps: 478.151 --- 127.0.0.1 tcpbench statistics --- 365912090 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 478.177/489.502/524.502/17.579 Mbps sleep 1 6029 59834368 466.545 100.00% Conn: 1 Mbps: 466.545 Peak Mbps: 523.880 Avg Mbps: 466.545 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 365705338 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 466.545/485.498/523.880/17.975 Mbps ==== 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 999 106654160 854.087 100.00% Conn: 1 Mbps: 854.087 Peak Mbps: 854.087 Avg Mbps: 854.087 1003 106654160 850.681 100.00% Conn: 1 Mbps: 850.681 Peak Mbps: 850.681 Avg Mbps: 850.681 2000 106588272 852.706 100.00% Conn: 1 Mbps: 852.706 Peak Mbps: 854.087 Avg Mbps: 852.706 2003 106621000 852.968 100.00% Conn: 1 Mbps: 852.968 Peak Mbps: 852.968 Avg Mbps: 852.968 3003 110449216 884.478 100.00% Conn: 1 Mbps: 884.478 Peak Mbps: 884.478 Avg Mbps: 884.478 3008 109697176 870.613 100.00% Conn: 1 Mbps: 870.613 Peak Mbps: 870.613 Avg Mbps: 870.613 4004 106850060 853.947 100.00% Conn: 1 Mbps: 853.947 Peak Mbps: 884.478 Avg Mbps: 853.947 4008 108027420 865.084 100.00% Conn: 1 Mbps: 865.084 Peak Mbps: 870.613 Avg Mbps: 865.084 5004 108747984 869.984 100.00% Conn: 1 Mbps: 869.984 Peak Mbps: 884.478 Avg Mbps: 869.984 5007 108731626 870.724 100.00% Conn: 1 Mbps: 870.724 Peak Mbps: 870.724 Avg Mbps: 870.724 --- 127.0.0.1 tcpbench statistics --- 644275348 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 850.681/862.412/884.478/12.982 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 644275348 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 852.706/862.643/870.724/7.832 Mbps ==== 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: 72.446 Peak Mbps: 72.446 Tx PPS: 6152 Elapsed: 1000 Mbps: 67.453 Peak Mbps: 67.453 Rx PPS: 5728 Elapsed: 2000 Mbps: 80.581 Peak Mbps: 80.581 Tx PPS: 6842 Elapsed: 2000 Mbps: 65.039 Peak Mbps: 67.453 Rx PPS: 5523 Elapsed: 3000 Mbps: 69.608 Peak Mbps: 80.581 Tx PPS: 5911 Elapsed: 3000 Mbps: 70.385 Peak Mbps: 70.385 Rx PPS: 5977 Elapsed: 4000 Mbps: 68.371 Peak Mbps: 80.581 Tx PPS: 5806 Elapsed: 4000 Mbps: 68.371 Peak Mbps: 70.385 Rx PPS: 5806 Elapsed: 5000 Mbps: 71.586 Peak Mbps: 80.581 Tx PPS: 6079 Elapsed: 5000 Mbps: 71.586 Peak Mbps: 71.586 Rx PPS: 6079 --- 127.0.0.1 tcpbench statistics --- 55781440 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 68.371/72.519/80.581/4.279 Mbps Elapsed: 6015 Mbps: 63.154 Peak Mbps: 71.586 Rx PPS: 5362 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 50859072 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 63.154/67.665/71.586/2.903 Mbps ==== 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: 81.302 Peak Mbps: 81.302 Tx PPS: 6904 Elapsed: 1000 Mbps: 81.313 Peak Mbps: 81.313 Rx PPS: 6905 Elapsed: 2000 Mbps: 81.524 Peak Mbps: 81.524 Tx PPS: 6922 Elapsed: 2000 Mbps: 81.560 Peak Mbps: 81.560 Rx PPS: 6925 Elapsed: 3000 Mbps: 81.243 Peak Mbps: 81.524 Tx PPS: 6899 Elapsed: 3000 Mbps: 81.243 Peak Mbps: 81.560 Rx PPS: 6899 Elapsed: 4000 Mbps: 81.537 Peak Mbps: 81.537 Tx PPS: 6924 Elapsed: 4000 Mbps: 81.537 Peak Mbps: 81.560 Rx PPS: 6924 Elapsed: 5000 Mbps: 90.063 Peak Mbps: 90.063 Tx PPS: 7648 Elapsed: 5000 Mbps: 58.974 Peak Mbps: 81.560 Rx PPS: 5008 --- 127.0.0.1 tcpbench statistics --- 62063936 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 81.243/83.134/90.063/3.467 Mbps Elapsed: 6016 Mbps: 79.682 Peak Mbps: 81.560 Rx PPS: 6766 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 58177856 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 58.974/77.385/81.560/8.258 Mbps PASS sys/kern/sosplice/perf Duration 0m36.71s