START sys/kern/sosplice/perf 2024-11-07T01:54:21Z ==== 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 110555898 884.447 100.00% Conn: 1 Mbps: 884.447 Peak Mbps: 884.447 Avg Mbps: 884.447 1002 110843968 884.982 100.00% Conn: 1 Mbps: 884.982 Peak Mbps: 884.982 Avg Mbps: 884.982 2000 110176012 882.290 100.00% Conn: 1 Mbps: 882.290 Peak Mbps: 884.447 Avg Mbps: 882.290 2002 110172898 881.383 100.00% Conn: 1 Mbps: 881.383 Peak Mbps: 884.982 Avg Mbps: 881.383 3000 109521678 876.173 100.00% Conn: 1 Mbps: 876.173 Peak Mbps: 884.447 Avg Mbps: 876.173 3002 109504916 876.039 100.00% Conn: 1 Mbps: 876.039 Peak Mbps: 884.982 Avg Mbps: 876.039 4000 109083738 872.670 100.00% Conn: 1 Mbps: 872.670 Peak Mbps: 884.447 Avg Mbps: 872.670 4002 109060650 873.359 100.00% Conn: 1 Mbps: 873.359 Peak Mbps: 884.982 Avg Mbps: 873.359 5001 109329996 874.640 100.00% Conn: 1 Mbps: 874.640 Peak Mbps: 884.447 Avg Mbps: 874.640 5003 109354974 874.840 100.00% Conn: 1 Mbps: 874.840 Peak Mbps: 884.982 Avg Mbps: 874.840 --- 127.0.0.1 tcpbench statistics --- 660615728 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 873.359/878.121/884.982/4.370 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 660615728 bytes received over 6.023 seconds bandwidth min/avg/max/std-dev = 872.670/878.044/884.447/4.539 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 1002 116658572 931.406 100.00% Conn: 1 Mbps: 931.406 Peak Mbps: 931.406 Avg Mbps: 931.406 1002 115467520 921.896 100.00% Conn: 1 Mbps: 921.896 Peak Mbps: 921.896 Avg Mbps: 921.896 2003 111677650 892.529 100.00% Conn: 1 Mbps: 892.529 Peak Mbps: 931.406 Avg Mbps: 892.529 2005 111673344 891.604 100.00% Conn: 1 Mbps: 891.604 Peak Mbps: 921.896 Avg Mbps: 891.604 3005 111728648 892.045 100.00% Conn: 1 Mbps: 892.045 Peak Mbps: 931.406 Avg Mbps: 892.045 3005 111411200 892.182 100.00% Conn: 1 Mbps: 892.182 Peak Mbps: 921.896 Avg Mbps: 892.182 4005 111673344 893.387 100.00% Conn: 1 Mbps: 893.387 Peak Mbps: 921.896 Avg Mbps: 893.387 4007 111693616 892.656 100.00% Conn: 1 Mbps: 892.656 Peak Mbps: 931.406 Avg Mbps: 892.656 5008 111903286 894.332 100.00% Conn: 1 Mbps: 894.332 Peak Mbps: 931.406 Avg Mbps: 894.332 5008 111935488 893.697 100.00% Conn: 1 Mbps: 893.697 Peak Mbps: 921.896 Avg Mbps: 893.697 --- 127.0.0.1 tcpbench statistics --- 673793330 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 892.045/900.594/931.406/15.425 Mbps 6008 111149056 890.083 100.00% Conn: 1 Mbps: 890.083 Peak Mbps: 921.896 Avg Mbps: 890.083 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 673793330 bytes received over 6.025 seconds bandwidth min/avg/max/std-dev = 890.083/897.141/921.896/11.135 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: 441.011 Peak Mbps: 441.011 Tx PPS: 37450 Elapsed: 1001 Mbps: 382.432 Peak Mbps: 382.432 Rx PPS: 32475 Elapsed: 2000 Mbps: 424.466 Peak Mbps: 441.011 Tx PPS: 36045 Elapsed: 2003 Mbps: 383.267 Peak Mbps: 383.267 Rx PPS: 32546 Elapsed: 3000 Mbps: 428.010 Peak Mbps: 441.011 Tx PPS: 36346 Elapsed: 3003 Mbps: 393.936 Peak Mbps: 393.936 Rx PPS: 33452 Elapsed: 4000 Mbps: 429.588 Peak Mbps: 441.011 Tx PPS: 36480 Elapsed: 4003 Mbps: 362.783 Peak Mbps: 393.936 Rx PPS: 30807 Elapsed: 5000 Mbps: 431.185 Peak Mbps: 441.011 Tx PPS: 36615 Elapsed: 5004 Mbps: 375.843 Peak Mbps: 393.936 Rx PPS: 31916 --- 127.0.0.1 tcpbench statistics --- 323430784 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 424.466/430.852/441.011/5.546 Mbps Elapsed: 6016 Mbps: 348.155 Peak Mbps: 393.936 Rx PPS: 29564 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 281327168 bytes received over 6.025 seconds bandwidth min/avg/max/std-dev = 348.155/374.403/393.936/15.003 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: 431.555 Peak Mbps: 431.555 Tx PPS: 36647 Elapsed: 1000 Mbps: 345.308 Peak Mbps: 345.308 Rx PPS: 29323 Elapsed: 2000 Mbps: 421.567 Peak Mbps: 431.555 Tx PPS: 35798 Elapsed: 2012 Mbps: 339.014 Peak Mbps: 345.308 Rx PPS: 28788 Elapsed: 3000 Mbps: 416.753 Peak Mbps: 431.555 Tx PPS: 35390 Elapsed: 3012 Mbps: 350.407 Peak Mbps: 350.407 Rx PPS: 29756 Elapsed: 4000 Mbps: 418.437 Peak Mbps: 431.555 Tx PPS: 35533 Elapsed: 4012 Mbps: 345.583 Peak Mbps: 350.407 Rx PPS: 29346 Elapsed: 5000 Mbps: 419.716 Peak Mbps: 431.555 Tx PPS: 35641 Elapsed: 5012 Mbps: 348.087 Peak Mbps: 350.407 Rx PPS: 29559 --- 127.0.0.1 tcpbench statistics --- 315985408 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 416.753/421.605/431.555/5.218 Mbps Elapsed: 6017 Mbps: 337.497 Peak Mbps: 350.407 Rx PPS: 28659 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 258988096 bytes received over 6.046 seconds bandwidth min/avg/max/std-dev = 337.497/344.316/350.407/4.628 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m37.05s