START sys/netinet/bindconnect 2025-03-14T05:09:10Z ==== 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 889365, close 727482, bind 1097236, connect 1125522, delroute 0 10.00 real 2.74 user 27.46 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1228225, close 612851, bind 4251147, connect 0, delroute 0 10.01 real 4.93 user 70.44 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 315233, close 374069, bind 0, connect 1772696, delroute 0 10.01 real 1.61 user 34.98 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 457893, close 465738, bind 972775, connect 1174126, delroute 0 10.01 real 2.55 user 41.87 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 202641, close 238015, bind 501595, connect 453683, delroute 0 10.19 real 0.91 user 46.86 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 451990, close 1398146, bind 2317675, connect 2183648, delroute 0 10.00 real 4.82 user 54.60 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 305259, close 364532, bind 218267, connect 1611196, delroute 0 10.01 real 1.95 user 35.26 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 416434, close 434320, bind 886651, connect 1170291, delroute 0 10.01 real 2.07 user 39.37 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 308072, close 546629, bind 0, connect 1444538, delroute 113183 10.01 real 1.73 user 41.13 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 437213, close 599050, bind 2166003, connect 0, delroute 0 10.01 real 2.22 user 54.98 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 347229, close 814473, bind 0, connect 1922848, delroute 0 10.01 real 2.35 user 43.28 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 372073, close 666513, bind 1005381, connect 838392, delroute 0 10.01 real 2.16 user 44.58 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 205585, close 302983, bind 631276, connect 594556, delroute 0 10.25 real 1.38 user 39.29 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 286046, close 2272850, bind 2751822, connect 2690881, delroute 0 10.00 real 6.17 user 52.61 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 335084, close 642247, bind 283790, connect 1648103, delroute 0 10.01 real 2.42 user 44.82 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 313688, close 562773, bind 821545, connect 825566, delroute 0 10.01 real 1.83 user 39.23 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 299994, close 740593, bind 0, connect 1715066, delroute 139198 10.01 real 2.43 user 51.49 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1257121, close 655394, bind 4895585, connect 0, delroute 0 10.01 real 4.90 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 414071, close 476537, bind 0, connect 1461322, delroute 0 10.01 real 1.59 user 45.13 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 507773, close 493557, bind 1122087, connect 911508, delroute 0 10.01 real 2.32 user 51.02 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 538265, close 267773, bind 1163309, connect 921706, delroute 0 10.34 real 2.39 user 51.64 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 438727, close 1226677, bind 2048832, connect 1804087, delroute 0 10.01 real 4.06 user 55.21 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 394896, close 487318, bind 296375, connect 1411839, delroute 0 10.01 real 2.10 user 49.24 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 497038, close 499009, bind 1083471, connect 893649, delroute 0 10.01 real 1.95 user 51.38 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 333547, close 679709, bind 0, connect 1522622, delroute 223021 10.01 real 2.12 user 51.57 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1193716, close 601580, bind 4185644, connect 0, delroute 0 10.01 real 4.17 user 70.01 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 143079, close 243886, bind 0, connect 1329111, delroute 0 10.01 real 1.07 user 21.81 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 190447, close 248862, bind 416546, connect 1040925, delroute 0 10.01 real 1.43 user 24.46 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 223702, close 274958, bind 550302, connect 407214, delroute 0 10.19 real 0.94 user 48.82 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 359097, close 1998814, bind 2629427, connect 2678331, delroute 0 10.01 real 5.51 user 50.22 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 159443, close 253209, bind 113558, connect 1145479, delroute 0 0m10.01s real 0m01.37s user 0m22.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 187763, close 222571, bind 374366, connect 900762, delroute 0 0m10.01s real 0m01.11s user 0m22.75s 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 176436, close 431324, bind 0, connect 1112594, delroute 57577 0m10.01s real 0m01.28s user 0m27.93s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 412357, close 756107, bind 2309166, connect 0, delroute 0 10.01 real 2.52 user 53.97 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 321870, close 764824, bind 0, connect 1831079, delroute 0 10.01 real 1.95 user 39.46 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331360, close 821271, bind 1033540, connect 901263, delroute 0 10.01 real 2.07 user 40.74 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 192265, close 268483, bind 586932, connect 558956, delroute 0 10.26 real 1.21 user 38.17 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 266040, close 2432164, bind 2817196, connect 2825530, delroute 0 10.01 real 5.95 user 51.64 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 352428, close 654265, bind 298975, connect 1694899, delroute 0 0m10.01s real 0m02.35s user 0m47.41s 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 366362, close 632512, bind 954962, connect 821687, delroute 0 0m10.01s real 0m02.06s user 0m44.89s 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 275810, close 656428, bind 0, connect 1487399, delroute 111094 0m10.01s real 0m01.83s user 0m47.37s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1159898, close 682033, bind 4443827, connect 0, delroute 0 10.01 real 4.13 user 72.03 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 493882, close 480458, bind 0, connect 1365746, delroute 0 10.01 real 1.57 user 42.61 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 593916, close 484763, bind 1068927, connect 822249, delroute 0 10.01 real 2.23 user 47.30 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 700317, close 228260, bind 1067598, connect 787344, delroute 0 10.36 real 2.11 user 46.01 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 423138, close 1357160, bind 2226489, connect 1927387, delroute 0 10.00 real 4.62 user 55.35 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 561533, close 477024, bind 282359, connect 1303173, delroute 0 0m10.00s real 0m01.86s user 0m44.08s 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 642152, close 466550, bind 996521, connect 778930, delroute 0 0m10.01s real 0m02.07s user 0m44.45s 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 315471, close 637093, bind 0, connect 1315857, delroute 111098 0m10.01s real 0m01.80s user 0m46.50s 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 340636 1.00 real 0.15 user 0.85 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 172458 0m01.00s real 0m00.06s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.64s