START sys/kern/sosplice/perf 2024-11-25T12:47: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 1000 71255552 570.044 100.00% Conn: 1 Mbps: 570.044 Peak Mbps: 570.044 Avg Mbps: 570.044 1004 71320880 568.294 100.00% Conn: 1 Mbps: 568.294 Peak Mbps: 568.294 Avg Mbps: 568.294 2001 67444034 541.719 100.00% Conn: 1 Mbps: 541.719 Peak Mbps: 568.294 Avg Mbps: 541.719 2002 67398748 538.651 100.00% Conn: 1 Mbps: 538.651 Peak Mbps: 570.044 Avg Mbps: 538.651 3002 59673984 476.915 100.00% Conn: 1 Mbps: 476.915 Peak Mbps: 568.294 Avg Mbps: 476.915 3001 59637760 477.580 100.00% Conn: 1 Mbps: 477.580 Peak Mbps: 570.044 Avg Mbps: 477.580 4003 60082934 480.663 100.00% Conn: 1 Mbps: 480.663 Peak Mbps: 568.294 Avg Mbps: 480.663 4002 60096512 480.772 100.00% Conn: 1 Mbps: 480.772 Peak Mbps: 570.044 Avg Mbps: 480.772 5003 59902996 479.224 100.00% Conn: 1 Mbps: 479.224 Peak Mbps: 568.294 Avg Mbps: 479.224 5003 59899904 479.199 100.00% Conn: 1 Mbps: 479.199 Peak Mbps: 570.044 Avg Mbps: 479.199 --- 127.0.0.1 tcpbench statistics --- 378720416 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 476.915/509.363/568.294/38.222 Mbps 6012 60227584 477.997 100.00% sleep 1 Conn: 1 Mbps: 477.997 Peak Mbps: 570.044 Avg Mbps: 477.997 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 378516060 bytes received over 6.033 seconds bandwidth min/avg/max/std-dev = 477.580/504.041/570.044/36.723 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 1001 104298608 833.555 100.00% Conn: 1 Mbps: 833.555 Peak Mbps: 833.555 Avg Mbps: 833.555 1001 104396744 834.340 100.00% Conn: 1 Mbps: 834.340 Peak Mbps: 834.340 Avg Mbps: 834.340 2001 105476384 843.811 100.00% Conn: 1 Mbps: 843.811 Peak Mbps: 843.811 Avg Mbps: 843.811 2001 105476384 843.811 100.00% Conn: 1 Mbps: 843.811 Peak Mbps: 843.811 Avg Mbps: 843.811 3003 105607248 844.014 100.00% Conn: 1 Mbps: 844.014 Peak Mbps: 844.014 Avg Mbps: 844.014 3003 105623618 844.145 100.00% Conn: 1 Mbps: 844.145 Peak Mbps: 844.145 Avg Mbps: 844.145 4003 105214656 841.717 100.00% Conn: 1 Mbps: 841.717 Peak Mbps: 844.014 Avg Mbps: 841.717 4003 105214656 841.717 100.00% Conn: 1 Mbps: 841.717 Peak Mbps: 844.145 Avg Mbps: 841.717 5004 107177616 856.564 100.00% Conn: 1 Mbps: 856.564 Peak Mbps: 856.564 Avg Mbps: 856.564 5005 107161246 856.434 100.00% Conn: 1 Mbps: 856.434 Peak Mbps: 856.434 Avg Mbps: 856.434 --- 127.0.0.1 tcpbench statistics --- 637831136 bytes sent over 6.002 seconds bandwidth min/avg/max/std-dev = 833.555/843.932/856.564/7.378 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 637831136 bytes received over 6.024 seconds bandwidth min/avg/max/std-dev = 834.340/844.089/856.434/7.115 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: 85.282 Peak Mbps: 85.282 Tx PPS: 7242 Elapsed: 1000 Mbps: 61.059 Peak Mbps: 61.059 Rx PPS: 5185 Elapsed: 2000 Mbps: 72.683 Peak Mbps: 85.282 Tx PPS: 6172 Elapsed: 2000 Mbps: 72.646 Peak Mbps: 72.646 Rx PPS: 6169 Elapsed: 3000 Mbps: 71.822 Peak Mbps: 85.282 Tx PPS: 6099 Elapsed: 3000 Mbps: 71.822 Peak Mbps: 72.646 Rx PPS: 6099 Elapsed: 4000 Mbps: 103.817 Peak Mbps: 103.817 Tx PPS: 8816 Elapsed: 4000 Mbps: 54.947 Peak Mbps: 72.646 Rx PPS: 4666 Elapsed: 5000 Mbps: 71.410 Peak Mbps: 103.817 Tx PPS: 6064 Elapsed: 5000 Mbps: 72.187 Peak Mbps: 72.646 Rx PPS: 6130 --- 127.0.0.1 tcpbench statistics --- 59608640 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 71.410/81.003/103.817/12.525 Mbps Elapsed: 6013 Mbps: 70.400 Peak Mbps: 72.646 Rx PPS: 5978 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 50488128 bytes received over 6.033 seconds bandwidth min/avg/max/std-dev = 54.947/67.177/72.646/6.758 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: 80.819 Peak Mbps: 80.819 Tx PPS: 6863 Elapsed: 1000 Mbps: 80.830 Peak Mbps: 80.830 Rx PPS: 6864 Elapsed: 2000 Mbps: 80.735 Peak Mbps: 80.819 Tx PPS: 6855 Elapsed: 2000 Mbps: 80.689 Peak Mbps: 80.830 Rx PPS: 6852 Elapsed: 3000 Mbps: 80.124 Peak Mbps: 80.819 Tx PPS: 6804 Elapsed: 3000 Mbps: 80.124 Peak Mbps: 80.830 Rx PPS: 6804 Elapsed: 4000 Mbps: 80.006 Peak Mbps: 80.819 Tx PPS: 6794 Elapsed: 4000 Mbps: 80.006 Peak Mbps: 80.830 Rx PPS: 6794 Elapsed: 5000 Mbps: 79.464 Peak Mbps: 80.819 Tx PPS: 6748 Elapsed: 5000 Mbps: 67.853 Peak Mbps: 80.830 Rx PPS: 5762 --- 127.0.0.1 tcpbench statistics --- 60184192 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 79.464/80.230/80.819/0.500 Mbps Elapsed: 6013 Mbps: 79.430 Peak Mbps: 80.830 Rx PPS: 6745 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 58735744 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 67.853/78.155/80.830/4.630 Mbps PASS sys/kern/sosplice/perf Duration 0m36.61s