START sys/kern/sosplice/perf 2024-04-25T21:12:44Z ==== 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 1547240434 12377.923 100.00% Conn: 1 Mbps: 12377.923 Peak Mbps: 12377.923 Avg Mbps: 12377.923 1000 1547230420 12377.843 100.00% Conn: 1 Mbps: 12377.843 Peak Mbps: 12377.843 Avg Mbps: 12377.843 2000 1553717718 12442.184 100.00% Conn: 1 Mbps: 12442.184 Peak Mbps: 12442.184 Avg Mbps: 12442.184 2000 1553713270 12442.148 100.00% Conn: 1 Mbps: 12442.148 Peak Mbps: 12442.148 Avg Mbps: 12442.148 3000 1547915144 12383.321 100.00% Conn: 1 Mbps: 12383.321 Peak Mbps: 12442.184 Avg Mbps: 12383.321 3000 1547900300 12383.202 100.00% Conn: 1 Mbps: 12383.202 Peak Mbps: 12442.148 Avg Mbps: 12383.202 4000 1545641966 12365.136 100.00% Conn: 1 Mbps: 12365.136 Peak Mbps: 12442.184 Avg Mbps: 12365.136 4000 1545672628 12365.381 100.00% Conn: 1 Mbps: 12365.381 Peak Mbps: 12442.148 Avg Mbps: 12365.381 5000 1549123524 12392.988 100.00% Conn: 1 Mbps: 12392.988 Peak Mbps: 12442.184 Avg Mbps: 12392.988 5000 1549089764 12392.718 100.00% Conn: 1 Mbps: 12392.718 Peak Mbps: 12442.148 Avg Mbps: 12392.718 --- 127.0.0.1 tcpbench statistics --- 9289688038 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12365.136/12392.310/12442.184/26.511 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9289688038 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12365.381/12392.259/12442.148/26.463 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 1887463366 15099.707 100.00% Conn: 1 Mbps: 15099.707 Peak Mbps: 15099.707 Avg Mbps: 15099.707 1000 1885632524 15085.060 100.00% Conn: 1 Mbps: 15085.060 Peak Mbps: 15085.060 Avg Mbps: 15085.060 2000 1898720692 15204.971 100.00% Conn: 1 Mbps: 15204.971 Peak Mbps: 15204.971 Avg Mbps: 15204.971 2000 1898971136 15191.769 100.00% Conn: 1 Mbps: 15191.769 Peak Mbps: 15191.769 Avg Mbps: 15191.769 3000 1898566718 15203.737 100.00% Conn: 1 Mbps: 15203.737 Peak Mbps: 15204.971 Avg Mbps: 15203.737 3000 1898708992 15189.672 100.00% Conn: 1 Mbps: 15189.672 Peak Mbps: 15191.769 Avg Mbps: 15189.672 4000 1894513854 15156.111 100.00% Conn: 1 Mbps: 15156.111 Peak Mbps: 15204.971 Avg Mbps: 15156.111 4000 1894514688 15171.289 100.00% Conn: 1 Mbps: 15171.289 Peak Mbps: 15191.769 Avg Mbps: 15171.289 5000 1899301464 15194.412 100.00% Conn: 1 Mbps: 15194.412 Peak Mbps: 15204.971 Avg Mbps: 15194.412 5000 1899495424 15195.963 100.00% Conn: 1 Mbps: 15195.963 Peak Mbps: 15195.963 Avg Mbps: 15195.963 --- 127.0.0.1 tcpbench statistics --- 11377138332 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15099.707/15171.787/15204.971/40.187 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11377138332 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15085.060/15166.751/15195.963/41.710 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: 1452.122 Peak Mbps: 1452.122 Tx PPS: 123312 Elapsed: 1000 Mbps: 1452.134 Peak Mbps: 1452.134 Rx PPS: 123313 Elapsed: 2000 Mbps: 1468.358 Peak Mbps: 1468.358 Tx PPS: 124690 Elapsed: 2000 Mbps: 1466.936 Peak Mbps: 1466.936 Rx PPS: 124570 Elapsed: 3000 Mbps: 1468.644 Peak Mbps: 1468.644 Tx PPS: 124715 Elapsed: 3000 Mbps: 1468.632 Peak Mbps: 1468.632 Rx PPS: 124714 Elapsed: 4000 Mbps: 1467.466 Peak Mbps: 1468.644 Tx PPS: 124615 Elapsed: 4000 Mbps: 1467.478 Peak Mbps: 1468.632 Rx PPS: 124616 Elapsed: 5000 Mbps: 1467.320 Peak Mbps: 1468.644 Tx PPS: 124602 Elapsed: 5000 Mbps: 1467.320 Peak Mbps: 1468.632 Rx PPS: 124602 --- 127.0.0.1 tcpbench statistics --- 1098989312 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1452.122/1464.782/1468.644/6.350 Mbps Elapsed: 6002 Mbps: 1467.945 Peak Mbps: 1468.632 Rx PPS: 124655 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1098989312 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1452.134/1465.074/1468.632/5.812 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: 1447.270 Peak Mbps: 1447.270 Tx PPS: 122900 Elapsed: 1000 Mbps: 1447.282 Peak Mbps: 1447.282 Rx PPS: 122901 Elapsed: 2000 Mbps: 1462.169 Peak Mbps: 1462.169 Tx PPS: 124165 Elapsed: 2000 Mbps: 1462.322 Peak Mbps: 1462.322 Rx PPS: 124178 Elapsed: 3000 Mbps: 1430.725 Peak Mbps: 1462.169 Tx PPS: 121495 Elapsed: 3000 Mbps: 1430.678 Peak Mbps: 1462.322 Rx PPS: 121491 Elapsed: 4000 Mbps: 1433.808 Peak Mbps: 1462.169 Tx PPS: 121756 Elapsed: 4000 Mbps: 1432.397 Peak Mbps: 1462.322 Rx PPS: 121637 Elapsed: 5000 Mbps: 1439.899 Peak Mbps: 1462.169 Tx PPS: 122274 Elapsed: 5000 Mbps: 1439.934 Peak Mbps: 1462.322 Rx PPS: 122277 --- 127.0.0.1 tcpbench statistics --- 1081921472 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1430.725/1442.774/1462.169/11.227 Mbps Elapsed: 6002 Mbps: 1441.338 Peak Mbps: 1462.322 Rx PPS: 122396 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1081921472 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1430.678/1442.325/1462.322/10.531 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.60s