START sys/netinet/bindconnect 2025-03-07T05:15:56Z ==== 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 932139, close 755874, bind 1172860, connect 1110223, delroute 0 10.01 real 2.68 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 1254624, close 663002, bind 4360248, connect 0, delroute 0 10.01 real 4.43 user 71.04 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 372421, close 411722, bind 0, connect 1742742, delroute 0 10.01 real 1.76 user 34.22 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 541602, close 554862, bind 1079297, connect 1097249, delroute 0 10.01 real 2.09 user 43.16 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 259680, close 341198, bind 614601, connect 522937, delroute 0 10.17 real 1.10 user 44.57 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 473400, close 1604873, bind 2318781, connect 2163720, delroute 0 10.01 real 5.09 user 53.74 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 318661, close 395194, bind 230324, connect 1592689, delroute 0 10.01 real 1.84 user 33.95 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 433060, close 553714, bind 881203, connect 1151185, delroute 0 10.01 real 2.01 user 38.09 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 301627, close 680797, bind 0, connect 1651071, delroute 119824 10.01 real 1.85 user 42.15 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 451928, close 792500, bind 2433419, connect 0, delroute 0 10.01 real 2.81 user 54.33 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 362984, close 876795, bind 0, connect 2083940, delroute 0 10.01 real 2.27 user 43.75 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 378655, close 832975, bind 1124220, connect 941826, delroute 0 10.01 real 2.13 user 43.87 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 183634, close 243780, bind 548689, connect 544556, delroute 0 10.31 real 1.17 user 40.01 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 290676, close 2343647, bind 2800150, connect 2767744, delroute 0 10.01 real 6.26 user 52.07 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 342201, close 708214, bind 300236, connect 1742627, delroute 0 10.00 real 2.31 user 43.34 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 332397, close 634204, bind 890051, connect 915123, delroute 0 10.01 real 2.10 user 38.80 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 299750, close 890723, bind 0, connect 1935813, delroute 150490 10.01 real 2.54 user 51.88 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1276737, close 727144, bind 4872668, connect 0, delroute 0 10.01 real 5.08 user 71.96 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 425355, close 534368, bind 0, connect 1498929, delroute 0 10.01 real 1.58 user 43.50 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 531398, close 573039, bind 1166399, connect 948942, delroute 0 10.01 real 2.15 user 50.62 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 578153, close 332094, bind 1198399, connect 972260, delroute 0 10.34 real 2.31 user 51.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 449284, close 1443178, bind 2072522, connect 1824548, delroute 0 10.00 real 4.37 user 55.09 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 418077, close 537577, bind 302868, connect 1438821, delroute 0 10.01 real 2.03 user 47.31 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 534148, close 552410, bind 1131007, connect 928826, delroute 0 10.01 real 2.19 user 50.85 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 335767, close 755332, bind 0, connect 1696092, delroute 239159 10.01 real 2.07 user 51.40 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1195751, close 622214, bind 4250744, connect 0, delroute 0 10.01 real 4.32 user 70.04 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 150932, close 331913, bind 0, connect 1295269, delroute 0 10.01 real 1.23 user 21.25 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 203167, close 271334, bind 439866, connect 1040582, delroute 0 10.01 real 1.28 user 23.14 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 259308, close 336211, bind 633476, connect 472388, delroute 0 10.17 real 1.25 user 43.12 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 369623, close 2071217, bind 2622269, connect 2649867, delroute 0 10.00 real 6.07 user 49.65 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 166057, close 267518, bind 122556, connect 1146922, delroute 0 0m10.01s real 0m01.30s user 0m22.11s 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 191676, close 237637, bind 409751, connect 910959, delroute 0 0m10.01s real 0m01.26s user 0m23.36s 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 181186, close 427852, bind 0, connect 1139511, delroute 60095 0m10.01s real 0m01.42s user 0m28.54s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 447246, close 817408, bind 2496695, connect 0, delroute 0 10.01 real 2.67 user 54.74 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 349147, close 704602, bind 0, connect 1760511, delroute 0 10.01 real 2.12 user 38.64 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 355362, close 836054, bind 1074144, connect 912432, delroute 0 10.01 real 2.12 user 40.58 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 193892, close 271362, bind 593490, connect 578158, delroute 0 10.29 real 1.08 user 37.38 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 277752, close 2486979, bind 2811861, connect 2838055, delroute 0 10.00 real 5.88 user 51.10 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 373928, close 838963, bind 330573, connect 1837639, delroute 0 0m10.01s real 0m02.33s user 0m47.70s 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 400755, close 749218, bind 1072456, connect 920559, delroute 0 0m10.01s real 0m02.42s user 0m45.30s 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 275678, close 816148, bind 0, connect 1724427, delroute 117464 0m10.01s real 0m02.18s user 0m47.39s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1167346, close 734997, bind 4527101, connect 0, delroute 0 10.01 real 4.89 user 71.19 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 455666, close 600335, bind 0, connect 1552012, delroute 0 10.01 real 1.48 user 42.76 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 580307, close 588588, bind 1162811, connect 915875, delroute 0 10.01 real 2.22 user 47.45 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 638412, close 270906, bind 1126776, connect 865598, delroute 0 10.36 real 1.97 user 48.33 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 438330, close 1522921, bind 2332488, connect 2046699, delroute 0 10.01 real 5.12 user 55.49 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 485718, close 693053, bind 299402, connect 1389470, delroute 0 0m10.00s real 0m02.25s user 0m42.97s 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 612452, close 535762, bind 1074689, connect 846169, delroute 0 0m10.01s real 0m02.10s user 0m46.60s 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 312321, close 709099, bind 0, connect 1435813, delroute 113492 0m10.01s real 0m01.84s user 0m46.48s 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 343790 1.00 real 0.14 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 170996 0m01.00s real 0m00.12s user 0m00.88s system PASS sys/netinet/bindconnect Duration 8m16.68s