START sys/netinet/bindconnect 2025-03-26T05:12:32Z ==== 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 904281, close 730786, bind 1140509, connect 1119615, delroute 0 10.01 real 2.54 user 27.09 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1182360, close 605936, bind 4331646, connect 0, delroute 0 10.01 real 4.02 user 70.72 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 309179, close 524825, bind 0, connect 1735070, delroute 0 10.01 real 2.25 user 33.50 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 499424, close 474906, bind 1014610, connect 1159966, delroute 0 10.01 real 2.14 user 43.43 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 196923, close 226392, bind 483171, connect 415741, delroute 0 10.20 real 0.83 user 46.21 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 454267, close 1409097, bind 2320275, connect 2198753, delroute 0 10.00 real 4.91 user 54.41 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 311899, close 395340, bind 232879, connect 1633111, delroute 0 10.01 real 1.77 user 36.47 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 417281, close 442425, bind 890901, connect 1177297, delroute 0 10.01 real 2.16 user 39.54 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 310844, close 614634, bind 0, connect 1548424, delroute 116291 10.01 real 1.95 user 43.41 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 407424, close 753038, bind 2300009, connect 0, delroute 0 10.01 real 2.39 user 54.40 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 346977, close 824566, bind 0, connect 2000177, delroute 0 10.01 real 2.35 user 43.69 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 355818, close 830418, bind 1073391, connect 945279, delroute 0 10.01 real 2.30 user 43.24 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 257312, close 409742, bind 808345, connect 775567, delroute 0 10.27 real 1.83 user 41.51 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 283234, close 2340101, bind 2794143, connect 2809466, delroute 0 10.01 real 6.34 user 52.44 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 322423, close 646921, bind 278737, connect 1632001, delroute 0 10.00 real 2.18 user 44.01 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 311865, close 568355, bind 820474, connect 844851, delroute 0 10.01 real 2.02 user 39.31 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 293181, close 819083, bind 0, connect 1846863, delroute 138972 10.01 real 2.44 user 52.24 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1259922, close 665080, bind 4855374, connect 0, delroute 0 10.01 real 4.51 user 72.48 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 417048, close 469524, bind 0, connect 1431681, delroute 0 10.01 real 1.79 user 45.04 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 509458, close 496755, bind 1123787, connect 906729, delroute 0 10.01 real 1.98 user 51.27 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 554483, close 267408, bind 1131218, connect 908670, delroute 0 10.32 real 2.02 user 51.15 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 441137, close 1256643, bind 2059352, connect 1812526, delroute 0 10.01 real 4.16 user 55.70 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 413443, close 564127, bind 286659, connect 1377617, delroute 0 10.01 real 2.15 user 48.88 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 504568, close 571503, bind 1067703, connect 880242, delroute 0 10.01 real 1.98 user 50.71 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 337163, close 698918, bind 0, connect 1557047, delroute 223812 10.01 real 2.30 user 52.89 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1147806, close 575353, bind 4123819, connect 0, delroute 0 10.00 real 3.84 user 68.71 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 150607, close 243399, bind 0, connect 1318768, delroute 0 10.01 real 1.14 user 21.56 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 190817, close 248926, bind 405625, connect 1039771, delroute 0 10.01 real 1.36 user 23.53 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 220740, close 261806, bind 543753, connect 418249, delroute 0 10.18 real 0.91 user 47.40 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 358202, close 2062423, bind 2672299, connect 2715904, delroute 0 10.01 real 5.67 user 50.55 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 163140, close 257870, bind 115354, connect 1134725, delroute 0 0m10.00s real 0m01.21s user 0m22.85s 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 190659, close 231238, bind 387969, connect 906396, delroute 0 0m10.01s real 0m01.51s user 0m23.03s 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 177711, close 395909, bind 0, connect 1068539, delroute 54904 0m10.01s real 0m01.31s user 0m26.97s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 404915, close 762634, bind 2345544, connect 0, delroute 0 10.01 real 2.40 user 53.25 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 322217, close 743667, bind 0, connect 1829872, delroute 0 10.01 real 2.23 user 39.35 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 333820, close 770409, bind 1026473, connect 873045, delroute 0 10.01 real 2.06 user 41.22 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 202504, close 293550, bind 655550, connect 624326, delroute 0 10.28 real 1.29 user 39.03 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 266774, close 2432644, bind 2778015, connect 2844965, delroute 0 10.01 real 6.35 user 50.67 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 359432, close 660528, bind 306292, connect 1729008, delroute 0 0m10.00s real 0m02.42s user 0m48.54s 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 362707, close 646965, bind 975429, connect 840888, delroute 0 0m10.00s real 0m02.06s user 0m46.54s 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 279547, close 648212, bind 0, connect 1442157, delroute 110555 0m10.01s real 0m01.97s user 0m46.36s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1153986, close 662943, bind 4481128, connect 0, delroute 0 10.00 real 4.37 user 71.03 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 561527, close 458310, bind 0, connect 1314521, delroute 0 10.01 real 1.50 user 41.38 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 647057, close 463335, bind 1033899, connect 793586, delroute 0 10.01 real 1.84 user 46.35 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 744021, close 234089, bind 1064789, connect 790715, delroute 0 10.33 real 1.90 user 46.38 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 408365, close 1560032, bind 2238436, connect 1940581, delroute 0 10.01 real 4.53 user 54.90 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 591156, close 480533, bind 276604, connect 1290772, delroute 0 0m10.01s real 0m02.12s user 0m43.62s 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 705869, close 451666, bind 942780, connect 744678, delroute 0 0m10.01s real 0m01.86s user 0m43.50s 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 329027, close 637177, bind 0, connect 1272524, delroute 110262 0m10.00s real 0m01.93s user 0m46.60s 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 341806 1.00 real 0.25 user 0.73 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 171258 0m01.00s real 0m00.11s user 0m00.91s system PASS sys/netinet/bindconnect Duration 8m16.65s