START sys/netinet/bindconnect 2025-03-31T04:09:14Z ==== 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 907167, close 742497, bind 1139916, connect 1123632, delroute 0 10.00 real 2.49 user 27.60 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1199166, close 612905, bind 4270739, connect 0, delroute 0 10.00 real 4.02 user 70.77 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 375739, close 414048, bind 0, connect 1706564, delroute 0 10.01 real 1.61 user 34.88 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 558663, close 541465, bind 1012794, connect 1082712, delroute 0 10.01 real 2.21 user 43.63 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 280586, close 381115, bind 726221, connect 588479, delroute 0 10.17 real 1.43 user 50.94 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 468993, close 1524477, bind 2307811, connect 2171709, delroute 0 10.00 real 4.92 user 54.54 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 325170, close 459416, bind 231252, connect 1570100, delroute 0 10.01 real 2.10 user 34.87 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 435511, close 492515, bind 901482, connect 1150747, delroute 0 10.01 real 2.09 user 38.89 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 299681, close 638595, bind 0, connect 1555166, delroute 120672 10.01 real 2.11 user 42.21 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 434431, close 896832, bind 2560412, connect 0, delroute 0 10.01 real 2.30 user 55.09 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 362579, close 856911, bind 0, connect 2024587, delroute 0 10.01 real 2.40 user 42.54 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 377037, close 883676, bind 1091079, connect 944508, delroute 0 10.01 real 2.23 user 44.17 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 232159, close 343847, bind 677961, connect 671143, delroute 0 10.26 real 1.50 user 39.49 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 288661, close 2387887, bind 2764061, connect 2739598, delroute 0 10.00 real 6.12 user 52.15 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 337281, close 655846, bind 286234, connect 1649092, delroute 0 10.00 real 2.13 user 43.15 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 328940, close 641817, bind 866736, connect 860190, delroute 0 10.01 real 2.02 user 38.78 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 302059, close 825549, bind 0, connect 1750583, delroute 147853 10.01 real 2.31 user 51.58 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1154386, close 621700, bind 4988698, connect 0, delroute 0 10.01 real 4.78 user 72.19 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 426915, close 504897, bind 0, connect 1459089, delroute 0 10.00 real 1.71 user 43.10 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 522945, close 553971, bind 1142338, connect 936010, delroute 0 10.01 real 2.35 user 50.08 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 545225, close 283838, bind 1133334, connect 933719, delroute 0 10.34 real 2.15 user 50.29 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 455677, close 1379852, bind 2099878, connect 1875434, delroute 0 10.00 real 4.26 user 54.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 421641, close 533789, bind 303122, connect 1471490, delroute 0 10.01 real 2.15 user 47.72 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 522920, close 559781, bind 1128470, connect 928212, delroute 0 10.01 real 2.03 user 50.21 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 342654, close 753427, bind 0, connect 1655839, delroute 237703 10.01 real 2.09 user 51.58 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1195043, close 621348, bind 4187669, connect 0, delroute 0 10.01 real 4.03 user 70.91 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 163894, close 290558, bind 0, connect 1359206, delroute 0 10.01 real 1.26 user 21.74 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 199874, close 277196, bind 455579, connect 1038606, delroute 0 10.01 real 1.28 user 23.64 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 277748, close 339976, bind 579587, connect 438207, delroute 0 10.19 real 1.01 user 47.46 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 373032, close 2136636, bind 2643376, connect 2641434, delroute 0 10.01 real 5.85 user 50.19 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 188497, close 290739, bind 133688, connect 1167313, delroute 0 0m10.00s real 0m01.50s user 0m23.26s 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 192840, close 256512, bind 415794, connect 915310, delroute 0 0m10.01s real 0m01.22s user 0m23.38s 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 179504, close 390122, bind 0, connect 1115181, delroute 59259 0m10.01s real 0m01.25s user 0m26.81s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 437823, close 882587, bind 2574140, connect 0, delroute 0 10.00 real 2.54 user 55.03 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 344393, close 779743, bind 0, connect 1795799, delroute 0 10.01 real 2.00 user 37.45 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 353414, close 852161, bind 1086595, connect 926435, delroute 0 10.01 real 2.25 user 41.00 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 197063, close 296118, bind 622834, connect 591600, delroute 0 10.24 real 1.13 user 36.81 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 273639, close 2535250, bind 2857923, connect 2880163, delroute 0 10.01 real 6.25 user 51.00 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 373870, close 722248, bind 320492, connect 1797107, delroute 0 0m10.00s real 0m02.53s user 0m47.81s 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 393279, close 704674, bind 1034469, connect 886628, delroute 0 0m10.01s real 0m02.02s user 0m46.40s 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 279710, close 837088, bind 0, connect 1467524, delroute 114185 0m10.01s real 0m02.06s user 0m46.20s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1077979, close 593766, bind 4725567, connect 0, delroute 0 10.01 real 4.17 user 72.30 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 477046, close 538117, bind 0, connect 1481139, delroute 0 10.01 real 1.61 user 42.14 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 570225, close 567605, bind 1119660, connect 872461, delroute 0 10.01 real 2.07 user 48.10 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 633655, close 269599, bind 1145462, connect 875733, delroute 0 10.36 real 2.00 user 46.96 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 434593, close 1615637, bind 2280060, connect 1992279, delroute 0 10.00 real 4.83 user 54.32 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 510479, close 571481, bind 318479, connect 1460649, delroute 0 0m10.00s real 0m01.83s user 0m43.33s 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 612963, close 560679, bind 1091868, connect 859977, delroute 0 0m10.01s real 0m02.09s user 0m45.82s 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 317608, close 722329, bind 0, connect 1415773, delroute 113307 0m10.01s real 0m01.67s user 0m45.74s 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 339908 1.00 real 0.14 user 0.87 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 175283 0m01.00s real 0m00.03s user 0m00.97s system PASS sys/netinet/bindconnect Duration 8m16.60s