START sys/kern/sosplice/perf 2024-10-15T11:47:10Z ==== 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 68229218 545.288 100.00% Conn: 1 Mbps: 545.288 Peak Mbps: 545.288 Avg Mbps: 545.288 1000 68157798 545.262 100.00% Conn: 1 Mbps: 545.262 Peak Mbps: 545.262 Avg Mbps: 545.262 2000 61407932 491.755 100.00% Conn: 1 Mbps: 491.755 Peak Mbps: 545.288 Avg Mbps: 491.755 2001 61407232 491.258 100.00% Conn: 1 Mbps: 491.258 Peak Mbps: 545.262 Avg Mbps: 491.258 3000 61571512 492.572 100.00% Conn: 1 Mbps: 492.572 Peak Mbps: 545.288 Avg Mbps: 492.572 3002 61603840 492.338 100.00% Conn: 1 Mbps: 492.338 Peak Mbps: 545.262 Avg Mbps: 492.338 4001 61604228 492.834 100.00% Conn: 1 Mbps: 492.834 Peak Mbps: 545.288 Avg Mbps: 492.834 4002 61603840 492.831 100.00% Conn: 1 Mbps: 492.831 Peak Mbps: 545.262 Avg Mbps: 492.831 5001 61342500 490.740 100.00% Conn: 1 Mbps: 490.740 Peak Mbps: 545.288 Avg Mbps: 490.740 5002 61341696 490.734 100.00% Conn: 1 Mbps: 490.734 Peak Mbps: 545.262 Avg Mbps: 490.734 --- 127.0.0.1 tcpbench statistics --- 375923198 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 490.740/502.638/545.288/21.338 Mbps 6014 61603840 486.987 100.00% sleep 1 Conn: 1 Mbps: 486.987 Peak Mbps: 545.262 Avg Mbps: 486.987 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 375718246 bytes received over 6.032 seconds bandwidth min/avg/max/std-dev = 486.987/499.902/545.262/20.373 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 105214656 840.876 100.00% Conn: 1 Mbps: 840.876 Peak Mbps: 840.876 Avg Mbps: 840.876 1001 105329162 841.792 100.00% Conn: 1 Mbps: 841.792 Peak Mbps: 841.792 Avg Mbps: 841.792 2001 106130704 849.046 100.00% Conn: 1 Mbps: 849.046 Peak Mbps: 849.046 Avg Mbps: 849.046 2002 106114334 848.915 100.00% Conn: 1 Mbps: 848.915 Peak Mbps: 848.915 Avg Mbps: 848.915 3002 108878848 871.031 100.00% Conn: 1 Mbps: 871.031 Peak Mbps: 871.031 Avg Mbps: 871.031 3002 108878848 871.031 100.00% Conn: 1 Mbps: 871.031 Peak Mbps: 871.031 Avg Mbps: 871.031 4002 100895172 807.161 100.00% Conn: 1 Mbps: 807.161 Peak Mbps: 871.031 Avg Mbps: 807.161 4005 99630270 794.658 100.00% Conn: 1 Mbps: 794.658 Peak Mbps: 871.031 Avg Mbps: 794.658 5003 105999456 847.148 100.00% Conn: 1 Mbps: 847.148 Peak Mbps: 871.031 Avg Mbps: 847.148 5004 107264358 859.835 100.00% Conn: 1 Mbps: 859.835 Peak Mbps: 871.031 Avg Mbps: 859.835 --- 127.0.0.1 tcpbench statistics --- 637960644 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 807.161/843.053/871.031/20.632 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 637960644 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 794.658/843.246/871.031/26.238 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: 67.995 Peak Mbps: 67.995 Tx PPS: 5774 Elapsed: 1000 Mbps: 68.006 Peak Mbps: 68.006 Rx PPS: 5775 Elapsed: 2000 Mbps: 68.218 Peak Mbps: 68.218 Tx PPS: 5793 Elapsed: 2000 Mbps: 68.310 Peak Mbps: 68.310 Rx PPS: 5800 Elapsed: 3000 Mbps: 68.112 Peak Mbps: 68.218 Tx PPS: 5784 Elapsed: 3000 Mbps: 68.112 Peak Mbps: 68.310 Rx PPS: 5784 Elapsed: 4000 Mbps: 68.242 Peak Mbps: 68.242 Tx PPS: 5795 Elapsed: 4000 Mbps: 68.242 Peak Mbps: 68.310 Rx PPS: 5795 Elapsed: 5000 Mbps: 68.419 Peak Mbps: 68.419 Tx PPS: 5810 Elapsed: 5000 Mbps: 68.419 Peak Mbps: 68.419 Rx PPS: 5810 --- 127.0.0.1 tcpbench statistics --- 51162304 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 67.995/68.197/68.419/0.141 Mbps Elapsed: 6016 Mbps: 67.268 Peak Mbps: 68.419 Rx PPS: 5712 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 51162304 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 67.268/68.060/68.419/0.378 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.666 Peak Mbps: 80.666 Tx PPS: 6850 Elapsed: 1000 Mbps: 78.911 Peak Mbps: 78.911 Rx PPS: 6701 Elapsed: 2000 Mbps: 80.145 Peak Mbps: 80.666 Tx PPS: 6805 Elapsed: 2000 Mbps: 80.100 Peak Mbps: 80.100 Rx PPS: 6802 Elapsed: 3000 Mbps: 79.888 Peak Mbps: 80.666 Tx PPS: 6784 Elapsed: 3000 Mbps: 79.888 Peak Mbps: 80.100 Rx PPS: 6784 Elapsed: 4000 Mbps: 79.335 Peak Mbps: 80.666 Tx PPS: 6737 Elapsed: 4000 Mbps: 79.335 Peak Mbps: 80.100 Rx PPS: 6737 Elapsed: 5000 Mbps: 79.735 Peak Mbps: 80.666 Tx PPS: 6771 Elapsed: 5000 Mbps: 79.747 Peak Mbps: 80.100 Rx PPS: 6772 --- 127.0.0.1 tcpbench statistics --- 59939840 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 79.335/79.954/80.666/0.442 Mbps Elapsed: 6016 Mbps: 78.592 Peak Mbps: 80.100 Rx PPS: 6673 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 59719040 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 78.592/79.429/80.100/0.539 Mbps PASS sys/kern/sosplice/perf Duration 0m36.62s