START sys/kern/sosplice/perf 2024-11-15T02:18:05Z ==== 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 1432710372 11461.683 100.00% Conn: 1 Mbps: 11461.683 Peak Mbps: 11461.683 Avg Mbps: 11461.683 999 1432547000 11471.848 100.00% Conn: 1 Mbps: 11471.848 Peak Mbps: 11471.848 Avg Mbps: 11471.848 2000 1438405452 11518.762 100.00% Conn: 1 Mbps: 11518.762 Peak Mbps: 11518.762 Avg Mbps: 11518.762 1999 1438437960 11507.504 100.00% Conn: 1 Mbps: 11507.504 Peak Mbps: 11507.504 Avg Mbps: 11507.504 3000 1440122742 11520.982 100.00% 2999 1440090026 11520.720 100.00% Conn: 1 Mbps: 11520.982 Peak Mbps: 11520.982 Avg Mbps: 11520.982 Conn: 1 Mbps: 11520.720 Peak Mbps: 11520.720 Avg Mbps: 11520.720 4000 1440303688 11522.430 100.00% 4000 1440270960 11522.168 100.00% Conn: 1 Mbps: 11522.430 Peak Mbps: 11522.430 Avg Mbps: 11522.430 Conn: 1 Mbps: 11522.168 Peak Mbps: 11522.168 Avg Mbps: 11522.168 5000 1436442476 11503.043 100.00% Conn: 1 Mbps: 11503.043 Peak Mbps: 11522.430 Avg Mbps: 11503.043 5000 1436622310 11492.978 100.00% Conn: 1 Mbps: 11492.978 Peak Mbps: 11522.168 Avg Mbps: 11492.978 --- 127.0.0.1 tcpbench statistics --- 8622497390 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11461.683/11503.315/11522.168/23.436 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8622497390 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11471.848/11505.109/11522.430/18.221 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 1350786718 10806.294 100.00% Conn: 1 Mbps: 10806.294 Peak Mbps: 10806.294 Avg Mbps: 10806.294 1000 1350770360 10806.163 100.00% Conn: 1 Mbps: 10806.163 Peak Mbps: 10806.163 Avg Mbps: 10806.163 2000 1350852786 10817.640 100.00% Conn: 1 Mbps: 10817.640 Peak Mbps: 10817.640 Avg Mbps: 10817.640 2000 1350901860 10807.215 100.00% Conn: 1 Mbps: 10807.215 Peak Mbps: 10807.215 Avg Mbps: 10807.215 3000 1354402736 10835.222 100.00% Conn: 1 Mbps: 10835.222 Peak Mbps: 10835.222 Avg Mbps: 10835.222 3000 1354402736 10846.068 100.00% Conn: 1 Mbps: 10846.068 Peak Mbps: 10846.068 Avg Mbps: 10846.068 4000 1355367210 10842.938 100.00% Conn: 1 Mbps: 10842.938 Peak Mbps: 10842.938 Avg Mbps: 10842.938 4000 1355367210 10842.938 100.00% Conn: 1 Mbps: 10842.938 Peak Mbps: 10846.068 Avg Mbps: 10842.938 5000 1356217790 10849.742 100.00% Conn: 1 Mbps: 10849.742 Peak Mbps: 10849.742 Avg Mbps: 10849.742 5000 1356217790 10849.742 100.00% Conn: 1 Mbps: 10849.742 Peak Mbps: 10849.742 Avg Mbps: 10849.742 --- 127.0.0.1 tcpbench statistics --- 8121604344 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10806.294/10830.367/10849.742/16.115 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8121604344 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10806.163/10830.425/10849.742/19.503 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: 2523.844 Peak Mbps: 2523.844 Tx PPS: 214321 Elapsed: 1000 Mbps: 1741.400 Peak Mbps: 1741.400 Rx PPS: 147877 Elapsed: 2000 Mbps: 2368.803 Peak Mbps: 2523.844 Tx PPS: 201155 Elapsed: 2017 Mbps: 1709.697 Peak Mbps: 1741.400 Rx PPS: 145184 Elapsed: 3000 Mbps: 2410.524 Peak Mbps: 2523.844 Tx PPS: 204698 Elapsed: 3017 Mbps: 1727.257 Peak Mbps: 1741.400 Rx PPS: 146676 Elapsed: 4030 Mbps: 1726.259 Peak Mbps: 1741.400 Rx PPS: 146591 Elapsed: 4031 Mbps: 2378.786 Peak Mbps: 2523.844 Tx PPS: 202002 Elapsed: 5030 Mbps: 1808.982 Peak Mbps: 1808.982 Rx PPS: 153616 Elapsed: 5031 Mbps: 2561.669 Peak Mbps: 2561.669 Tx PPS: 217533 --- 127.0.0.1 tcpbench statistics --- 1828603776 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2368.803/2448.725/2561.669/78.914 Mbps Elapsed: 6043 Mbps: 1574.842 Peak Mbps: 1808.982 Rx PPS: 133733 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1294993472 bytes received over 6.046 seconds bandwidth min/avg/max/std-dev = 1574.842/1714.739/1808.982/70.093 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: 2664.709 Peak Mbps: 2664.709 Tx PPS: 226283 Elapsed: 1000 Mbps: 1874.433 Peak Mbps: 1874.433 Rx PPS: 159174 Elapsed: 2000 Mbps: 2288.658 Peak Mbps: 2664.709 Tx PPS: 194349 Elapsed: 2044 Mbps: 1498.124 Peak Mbps: 1874.433 Rx PPS: 127218 Elapsed: 3000 Mbps: 2385.865 Peak Mbps: 2664.709 Tx PPS: 202604 Elapsed: 3044 Mbps: 1687.834 Peak Mbps: 1874.433 Rx PPS: 143328 Elapsed: 4000 Mbps: 2393.507 Peak Mbps: 2664.709 Tx PPS: 203253 Elapsed: 4044 Mbps: 1649.005 Peak Mbps: 1874.433 Rx PPS: 140031 Elapsed: 5000 Mbps: 2388.820 Peak Mbps: 2664.709 Tx PPS: 202855 Elapsed: 5044 Mbps: 1641.362 Peak Mbps: 1874.433 Rx PPS: 139382 --- 127.0.0.1 tcpbench statistics --- 1815108480 bytes sent over 6.013 seconds bandwidth min/avg/max/std-dev = 2288.658/2424.312/2664.709/126.396 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1255660160 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 1498.124/1670.152/1874.433/120.759 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s