START sys/kern/sosplice/perf 2024-10-05T19:01:47Z ==== 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 1157534724 9260.278 100.00% Conn: 1 Mbps: 9260.278 Peak Mbps: 9260.278 Avg Mbps: 9260.278 1000 1157747158 9261.977 100.00% Conn: 1 Mbps: 9261.977 Peak Mbps: 9261.977 Avg Mbps: 9261.977 2000 1160069070 9289.842 100.00% Conn: 1 Mbps: 9289.842 Peak Mbps: 9289.842 Avg Mbps: 9289.842 2000 1160266014 9282.128 100.00% Conn: 1 Mbps: 9282.128 Peak Mbps: 9282.128 Avg Mbps: 9282.128 3000 1161376598 9291.013 100.00% Conn: 1 Mbps: 9291.013 Peak Mbps: 9291.013 Avg Mbps: 9291.013 3000 1161245086 9289.961 100.00% Conn: 1 Mbps: 9289.961 Peak Mbps: 9289.961 Avg Mbps: 9289.961 4000 1160579888 9284.639 100.00% Conn: 1 Mbps: 9284.639 Peak Mbps: 9291.013 Avg Mbps: 9284.639 4000 1160614776 9284.918 100.00% Conn: 1 Mbps: 9284.918 Peak Mbps: 9289.961 Avg Mbps: 9284.918 5000 1162459174 9308.982 100.00% Conn: 1 Mbps: 9308.982 Peak Mbps: 9308.982 Avg Mbps: 9308.982 5000 1162571288 9300.570 100.00% Conn: 1 Mbps: 9300.570 Peak Mbps: 9300.570 Avg Mbps: 9300.570 --- 127.0.0.1 tcpbench statistics --- 6963350554 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9261.977/9287.291/9308.982/15.091 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6963350554 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9260.278/9283.571/9300.570/13.238 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 1279100500 10232.804 100.00% Conn: 1 Mbps: 10232.804 Peak Mbps: 10232.804 Avg Mbps: 10232.804 1000 1277180024 10217.440 100.00% Conn: 1 Mbps: 10217.440 Peak Mbps: 10217.440 Avg Mbps: 10217.440 2000 1292767080 10342.137 100.00% Conn: 1 Mbps: 10342.137 Peak Mbps: 10342.137 Avg Mbps: 10342.137 2000 1292894208 10343.154 100.00% Conn: 1 Mbps: 10343.154 Peak Mbps: 10343.154 Avg Mbps: 10343.154 3000 1290744898 10325.959 100.00% Conn: 1 Mbps: 10325.959 Peak Mbps: 10342.137 Avg Mbps: 10325.959 3000 1290534912 10334.614 100.00% Conn: 1 Mbps: 10334.614 Peak Mbps: 10343.154 Avg Mbps: 10334.614 4000 1292413204 10349.655 100.00% Conn: 1 Mbps: 10349.655 Peak Mbps: 10349.655 Avg Mbps: 10349.655 4000 1293156352 10345.251 100.00% Conn: 1 Mbps: 10345.251 Peak Mbps: 10345.251 Avg Mbps: 10345.251 5000 1290251076 10322.009 100.00% Conn: 1 Mbps: 10322.009 Peak Mbps: 10349.655 Avg Mbps: 10322.009 5000 1289748480 10328.316 100.00% Conn: 1 Mbps: 10328.316 Peak Mbps: 10345.251 Avg Mbps: 10328.316 --- 127.0.0.1 tcpbench statistics --- 7735718628 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10232.804/10314.513/10349.655/42.099 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7735718628 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10217.440/10313.755/10345.251/48.539 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: 1935.397 Peak Mbps: 1935.397 Tx PPS: 164351 Elapsed: 1000 Mbps: 1935.503 Peak Mbps: 1935.503 Rx PPS: 164360 Elapsed: 2000 Mbps: 1941.885 Peak Mbps: 1941.885 Tx PPS: 164901 Elapsed: 1999 Mbps: 1941.944 Peak Mbps: 1941.944 Rx PPS: 164906 Elapsed: 3000 Mbps: 1944.547 Peak Mbps: 1944.547 Tx PPS: 165128 Elapsed: 2999 Mbps: 1944.512 Peak Mbps: 1944.512 Rx PPS: 165125 Elapsed: 4000 Mbps: 1943.382 Peak Mbps: 1944.547 Tx PPS: 165029 Elapsed: 4000 Mbps: 1943.405 Peak Mbps: 1944.512 Rx PPS: 165031 Elapsed: 5000 Mbps: 1941.957 Peak Mbps: 1944.547 Tx PPS: 164908 Elapsed: 5000 Mbps: 1941.933 Peak Mbps: 1944.512 Rx PPS: 164906 --- 127.0.0.1 tcpbench statistics --- 1452261952 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1935.397/1941.434/1944.547/3.175 Mbps Elapsed: 6002 Mbps: 1908.923 Peak Mbps: 1944.512 Rx PPS: 162102 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1452261952 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1908.923/1936.037/1944.512/12.458 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: 1817.838 Peak Mbps: 1817.838 Tx PPS: 154368 Elapsed: 1000 Mbps: 1817.932 Peak Mbps: 1817.932 Rx PPS: 154376 Elapsed: 2000 Mbps: 1823.795 Peak Mbps: 1823.795 Tx PPS: 154873 Elapsed: 1999 Mbps: 1823.865 Peak Mbps: 1823.865 Rx PPS: 154879 Elapsed: 3000 Mbps: 1825.763 Peak Mbps: 1825.763 Tx PPS: 155041 Elapsed: 2999 Mbps: 1825.468 Peak Mbps: 1825.468 Rx PPS: 155016 Elapsed: 4000 Mbps: 1822.889 Peak Mbps: 1825.763 Tx PPS: 154797 Elapsed: 4000 Mbps: 1822.819 Peak Mbps: 1825.468 Rx PPS: 154791 Elapsed: 5000 Mbps: 1823.620 Peak Mbps: 1825.763 Tx PPS: 154859 Elapsed: 5000 Mbps: 1823.431 Peak Mbps: 1825.468 Rx PPS: 154843 --- 127.0.0.1 tcpbench statistics --- 1366747584 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1817.838/1822.781/1825.763/2.648 Mbps Elapsed: 6002 Mbps: 1818.052 Peak Mbps: 1825.468 Rx PPS: 154386 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1366672512 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1817.932/1821.928/1825.468/2.896 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.47s