START sys/netinet/bindconnect 2024-12-20T15:58:22Z ==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/bindconnect/bindconnect.c cc -o bindconnect bindconnect.o -lpthread time ./bindconnect count: socket 363037, close 327312, bind 1216609, connect 941720, delroute 0 10.01 real 1.99 user 29.14 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 662063, close 302245, bind 6745806, connect 0, delroute 0 10.01 real 5.71 user 73.97 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 13323, close 9571, bind 0, connect 1958969, delroute 0 10.01 real 1.70 user 71.39 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 71748, close 51951, bind 2127528, connect 1156449, delroute 0 10.01 real 3.00 user 69.36 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72745, close 78479, bind 1031168, connect 663185, delroute 0 10.15 real 1.50 user 42.30 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 69292, close 153305, bind 2339306, connect 1404349, delroute 0 10.00 real 3.30 user 68.99 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 14319, close 12410, bind 491029, connect 1797741, delroute 0 10.01 real 2.31 user 73.42 sys ==== run-inet-udp-localnet-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N 10.188.81.21/24 count: socket 68639, close 46553, bind 2063925, connect 1099080, delroute 0 10.01 real 2.89 user 69.16 sys ==== run-inet-udp-localnet-connect-delete ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 10.188.81.21/24 count: socket 26346, close 22582, bind 0, connect 1564711, delroute 14236 10.01 real 1.64 user 73.61 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 561574, close 390720, bind 2195170, connect 0, delroute 0 10.01 real 2.12 user 71.12 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 317100, close 372533, bind 0, connect 1728999, delroute 0 10.01 real 1.73 user 64.52 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 326668, close 390003, bind 867914, connect 888340, delroute 0 10.01 real 1.73 user 65.24 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 106100, close 131052, bind 430135, connect 455533, delroute 0 10.54 real 0.70 user 26.81 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 272190, close 943999, bind 1673223, connect 1714202, delroute 0 10.00 real 3.68 user 64.73 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 314441, close 485203, bind 282758, connect 1842593, delroute 0 10.01 real 2.45 user 72.51 sys ==== run-inet-tcp-localnet-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N 10.188.81.21/24 count: socket 311207, close 558228, bind 912706, connect 1085442, delroute 0 10.01 real 2.19 user 70.88 sys ==== run-inet-tcp-localnet-connect-delete ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 10.188.81.21/24 count: socket 303535, close 304854, bind 0, connect 1636217, delroute 134024 10.01 real 1.88 user 70.28 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 280388, close 182053, bind 7816981, connect 0, delroute 0 10.01 real 6.47 user 73.33 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 20003, close 2749, bind 0, connect 1506894, delroute 0 10.01 real 1.33 user 71.12 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 45981, close 18672, bind 1830553, connect 843781, delroute 0 10.01 real 2.38 user 67.82 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103838, close 93044, bind 2842152, connect 1520532, delroute 0 10.15 real 3.64 user 66.17 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 33718, close 95960, bind 1998914, connect 1068330, delroute 0 10.00 real 2.74 user 66.08 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 5146, close 4094, bind 387325, connect 1337996, delroute 0 10.01 real 1.66 user 72.28 sys ==== run-inet-any-localnet-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N 10.188.81.21/24 count: socket 39070, close 18444, bind 1807328, connect 840891, delroute 0 10.01 real 1.98 user 68.16 sys ==== run-inet-any-localnet-connect-delete ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 10.188.81.21/24 count: socket 9891, close 6915, bind 0, connect 1186365, delroute 5186 10.01 real 1.31 user 72.82 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 462649, close 181825, bind 8168891, connect 0, delroute 0 10.01 real 7.02 user 73.06 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 9066, close 6563, bind 0, connect 1717533, delroute 0 10.01 real 1.60 user 70.69 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 41580, close 30781, bind 1926718, connect 942478, delroute 0 10.01 real 2.46 user 69.24 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70005, close 81533, bind 1399763, connect 831865, delroute 0 10.15 real 1.79 user 48.63 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 63236, close 153939, bind 2164243, connect 1218866, delroute 0 10.00 real 2.76 user 68.45 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 8052, close 7461, bind 417465, connect 1519681, delroute 0 0m10.01s real 0m01.89s user 1m13.51s system ==== run-inet6-udp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N fdd7:e83e:66bc:81::21/64 count: socket 42471, close 31535, bind 1851656, connect 890519, delroute 0 0m10.00s real 0m02.28s user 1m09.50s system ==== run-inet6-udp-localnet-connect-delete ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N fdd7:e83e:66bc:81::21/64 count: socket 16830, close 14421, bind 0, connect 1340932, delroute 8892 0m10.01s real 0m01.44s user 1m13.60s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 549928, close 372134, bind 2137801, connect 0, delroute 0 10.00 real 2.07 user 70.57 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 279425, close 386352, bind 0, connect 1730793, delroute 0 10.01 real 2.08 user 63.25 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 294576, close 410675, bind 852290, connect 904963, delroute 0 10.01 real 1.63 user 64.16 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 105461, close 152663, bind 468603, connect 526697, delroute 0 10.57 real 0.91 user 28.56 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 242997, close 1078624, bind 1717000, connect 1840507, delroute 0 10.00 real 3.50 user 64.34 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 382299, close 376661, bind 285664, connect 1754028, delroute 0 0m10.00s real 0m02.25s user 1m10.97s system ==== run-inet6-tcp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N fdd7:e83e:66bc:81::21/64 count: socket 388965, close 462554, bind 1001200, connect 1085435, delroute 0 0m10.01s real 0m02.33s user 1m09.42s system ==== run-inet6-tcp-localnet-connect-delete ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N fdd7:e83e:66bc:81::21/64 count: socket 268147, close 246872, bind 0, connect 1496976, delroute 95159 0m10.01s real 0m01.85s user 1m06.77s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 308781, close 171769, bind 7789324, connect 0, delroute 0 10.00 real 6.62 user 73.14 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 3814, close 2498, bind 0, connect 1511107, delroute 0 10.01 real 1.51 user 70.00 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 25632, close 18917, bind 1845419, connect 831391, delroute 0 10.01 real 2.17 user 67.59 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 102224, close 107311, bind 2919163, connect 1555863, delroute 0 10.16 real 3.31 user 65.29 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 33484, close 103445, bind 2013275, connect 1070806, delroute 0 10.00 real 2.38 user 66.89 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 4604, close 3529, bind 380270, connect 1325706, delroute 0 0m10.01s real 0m01.75s user 1m11.95s system ==== run-inet6-any-localnet-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N fdd7:e83e:66bc:81::21/64 count: socket 25066, close 19094, bind 1812886, connect 834713, delroute 0 0m10.01s real 0m02.33s user 1m07.18s system ==== run-inet6-any-localnet-connect-delete ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N fdd7:e83e:66bc:81::21/64 count: socket 13879, close 7125, bind 0, connect 1188092, delroute 5390 0m10.01s real 0m01.32s user 1m12.17s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.81.21/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 344677 1.00 real 0.13 user 0.90 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:81::21/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 172444 0m01.00s real 0m00.10s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.74s