START sys/kern/sosplice/perf 2025-04-02T18:18:53Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 1389500750 11116.006 100.00% Conn: 1 Mbps: 11116.006 Peak Mbps: 11116.006 Avg Mbps: 11116.006 999 1389387528 11126.226 100.00% Conn: 1 Mbps: 11126.226 Peak Mbps: 11126.226 Avg Mbps: 11126.226 2000 1402822438 11233.813 100.00% Conn: 1 Mbps: 11233.813 Peak Mbps: 11233.813 Avg Mbps: 11233.813 2000 1402870332 11222.963 100.00% Conn: 1 Mbps: 11222.963 Peak Mbps: 11222.963 Avg Mbps: 11222.963 3000 1397810994 11182.488 100.00% Conn: 1 Mbps: 11182.488 Peak Mbps: 11233.813 Avg Mbps: 11182.488 3000 1397746026 11181.968 100.00% Conn: 1 Mbps: 11181.968 Peak Mbps: 11222.963 Avg Mbps: 11181.968 4000 1395107432 11160.859 100.00% Conn: 1 Mbps: 11160.859 Peak Mbps: 11233.813 Avg Mbps: 11160.859 4000 1395172296 11161.378 100.00% Conn: 1 Mbps: 11161.378 Peak Mbps: 11222.963 Avg Mbps: 11161.378 5000 1401099476 11208.796 100.00% Conn: 1 Mbps: 11208.796 Peak Mbps: 11233.813 Avg Mbps: 11208.796 5000 1401083326 11208.667 100.00% Conn: 1 Mbps: 11208.667 Peak Mbps: 11222.963 Avg Mbps: 11208.667 --- 127.0.0.1 tcpbench statistics --- 8388434080 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11116.006/11180.393/11233.813/40.477 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8388434080 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11126.226/11180.240/11222.963/34.379 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 1541597820 12332.783 100.00% Conn: 1 Mbps: 12332.783 Peak Mbps: 12332.783 Avg Mbps: 12332.783 1000 1541532388 12332.259 100.00% Conn: 1 Mbps: 12332.259 Peak Mbps: 12332.259 Avg Mbps: 12332.259 2000 1562023908 12496.191 100.00% Conn: 1 Mbps: 12496.191 Peak Mbps: 12496.191 Avg Mbps: 12496.191 2000 1561991192 12495.930 100.00% Conn: 1 Mbps: 12495.930 Peak Mbps: 12495.930 Avg Mbps: 12495.930 3000 1560062306 12480.498 100.00% Conn: 1 Mbps: 12480.498 Peak Mbps: 12495.930 Avg Mbps: 12480.498 3000 1560177228 12481.418 100.00% Conn: 1 Mbps: 12481.418 Peak Mbps: 12496.191 Avg Mbps: 12481.418 4000 1564448438 12515.588 100.00% Conn: 1 Mbps: 12515.588 Peak Mbps: 12515.588 Avg Mbps: 12515.588 4000 1564529800 12528.767 100.00% Conn: 1 Mbps: 12528.767 Peak Mbps: 12528.767 Avg Mbps: 12528.767 5000 1563096040 12504.768 100.00% Conn: 1 Mbps: 12504.768 Peak Mbps: 12515.588 Avg Mbps: 12504.768 5000 1563128768 12505.030 100.00% Conn: 1 Mbps: 12505.030 Peak Mbps: 12528.767 Avg Mbps: 12505.030 --- 127.0.0.1 tcpbench statistics --- 9349608140 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 12332.783/12468.838/12528.767/69.741 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9349608140 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12332.259/12465.809/12515.588/67.756 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: 1946.620 Peak Mbps: 1946.620 Tx PPS: 165304 Elapsed: 999 Mbps: 1948.675 Peak Mbps: 1948.675 Rx PPS: 165478 Elapsed: 2000 Mbps: 1952.671 Peak Mbps: 1952.671 Tx PPS: 165817 Elapsed: 1999 Mbps: 1952.682 Peak Mbps: 1952.682 Rx PPS: 165818 Elapsed: 3000 Mbps: 1948.198 Peak Mbps: 1952.671 Tx PPS: 165438 Elapsed: 2999 Mbps: 1948.233 Peak Mbps: 1952.682 Rx PPS: 165441 Elapsed: 4000 Mbps: 1948.751 Peak Mbps: 1952.671 Tx PPS: 165485 Elapsed: 3999 Mbps: 1948.751 Peak Mbps: 1952.682 Rx PPS: 165485 Elapsed: 5000 Mbps: 1947.644 Peak Mbps: 1952.671 Tx PPS: 165391 Elapsed: 4999 Mbps: 1947.633 Peak Mbps: 1952.682 Rx PPS: 165390 --- 127.0.0.1 tcpbench statistics --- 1461283840 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1946.620/1948.777/1952.671/2.070 Mbps Elapsed: 6002 Mbps: 1944.309 Peak Mbps: 1952.682 Rx PPS: 165107 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1461283840 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1944.309/1948.381/1952.682/2.446 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: 1859.701 Peak Mbps: 1859.701 Tx PPS: 157923 Elapsed: 999 Mbps: 1861.622 Peak Mbps: 1861.622 Rx PPS: 158086 Elapsed: 2000 Mbps: 1864.816 Peak Mbps: 1864.816 Tx PPS: 158357 Elapsed: 1999 Mbps: 1864.887 Peak Mbps: 1864.887 Rx PPS: 158363 Elapsed: 3000 Mbps: 1865.260 Peak Mbps: 1865.260 Tx PPS: 158395 Elapsed: 2999 Mbps: 1865.224 Peak Mbps: 1865.224 Rx PPS: 158392 Elapsed: 4000 Mbps: 1860.219 Peak Mbps: 1865.260 Tx PPS: 157967 Elapsed: 3999 Mbps: 1860.231 Peak Mbps: 1865.224 Rx PPS: 157968 Elapsed: 5000 Mbps: 1863.481 Peak Mbps: 1865.260 Tx PPS: 158244 Elapsed: 4999 Mbps: 1863.481 Peak Mbps: 1865.224 Rx PPS: 158244 --- 127.0.0.1 tcpbench statistics --- 1397145856 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1859.701/1862.696/1865.260/2.315 Mbps Elapsed: 6002 Mbps: 1861.724 Peak Mbps: 1865.224 Rx PPS: 158094 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1397145856 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1860.231/1862.862/1865.224/1.817 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s