START sys/netinet/bindconnect 2025-01-15T05:15:51Z ==== 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 1148339, close 1232097, bind 982231, connect 898253, delroute 0 10.01 real 2.61 user 29.34 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1214616, close 740116, bind 2590266, connect 0, delroute 0 10.01 real 3.12 user 74.68 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 693415, close 581106, bind 0, connect 1191062, delroute 0 10.01 real 1.45 user 38.52 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 848045, close 698602, bind 685439, connect 776366, delroute 0 10.01 real 1.83 user 47.02 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130402, close 118629, bind 220622, connect 232232, delroute 0 10.26 real 0.33 user 19.64 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 587949, close 1648228, bind 1981553, connect 1928839, delroute 0 10.00 real 4.18 user 55.07 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 610916, close 553806, bind 147852, connect 1159304, delroute 0 10.01 real 1.84 user 38.76 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 819800, close 676057, bind 608256, connect 796502, delroute 0 10.01 real 1.98 user 44.17 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 512383, close 469838, bind 0, connect 881273, delroute 102097 10.01 real 1.06 user 42.37 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 931078, close 762660, bind 385162, connect 0, delroute 0 10.01 real 1.08 user 39.02 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 877266, close 570964, bind 0, connect 339103, delroute 0 10.01 real 0.73 user 31.57 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 885068, close 610858, bind 174395, connect 183284, delroute 0 10.01 real 0.82 user 34.12 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 391177, close 248573, bind 198505, connect 218139, delroute 0 10.50 real 0.58 user 22.87 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 392742, close 2020141, bind 1604821, connect 1630146, delroute 0 10.01 real 3.97 user 46.51 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 774089, close 554457, bind 57520, connect 472029, delroute 0 10.00 real 0.90 user 33.96 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 804578, close 575683, bind 150674, connect 307776, delroute 0 10.01 real 0.89 user 31.65 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 741774, close 582844, bind 0, connect 341024, delroute 62758 10.01 real 1.05 user 38.25 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1471410, close 968555, bind 2083173, connect 0, delroute 0 10.01 real 2.99 user 76.04 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 784847, close 697360, bind 0, connect 904240, delroute 0 10.01 real 1.28 user 43.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 917703, close 799689, bind 627986, connect 564863, delroute 0 10.01 real 1.90 user 49.85 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 780443, close 545118, bind 812869, connect 696373, delroute 0 10.34 real 1.79 user 51.48 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 525567, close 1601078, bind 1808840, connect 1713582, delroute 0 10.00 real 4.07 user 55.14 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 709960, close 691618, bind 164406, connect 888872, delroute 0 10.01 real 1.50 user 46.27 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 900272, close 798934, bind 637677, connect 579775, delroute 0 10.01 real 1.77 user 50.40 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 573337, close 546090, bind 0, connect 724921, delroute 252574 10.01 real 1.21 user 52.30 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1244411, close 777212, bind 2312774, connect 0, delroute 0 10.01 real 2.58 user 74.64 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 311633, close 305603, bind 0, connect 1073278, delroute 0 10.01 real 1.05 user 21.83 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 381361, close 358664, bind 243143, connect 895223, delroute 0 10.01 real 1.29 user 23.99 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 134596, close 148563, bind 224240, connect 275187, delroute 0 10.25 real 0.48 user 21.77 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 374998, close 1587334, bind 1702567, connect 1985999, delroute 0 10.01 real 3.99 user 41.06 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 322460, close 309805, bind 50966, connect 937947, delroute 0 0m10.01s real 0m01.02s user 0m20.58s 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 349130, close 317472, bind 206336, connect 810500, delroute 0 0m10.01s real 0m01.13s user 0m22.25s 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 259673, close 258768, bind 0, connect 797733, delroute 43211 0m10.01s real 0m00.84s user 0m25.77s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 957963, close 704640, bind 347633, connect 0, delroute 0 10.01 real 1.22 user 37.81 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 846876, close 494235, bind 0, connect 310356, delroute 0 10.01 real 0.76 user 29.08 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 889324, close 538834, bind 141718, connect 167039, delroute 0 10.01 real 0.99 user 30.93 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 514198, close 262851, bind 190944, connect 226257, delroute 0 10.52 real 0.67 user 22.61 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 381664, close 1996654, bind 1580754, connect 1678009, delroute 0 10.00 real 4.31 user 43.92 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 873068, close 556823, bind 52889, connect 348432, delroute 0 0m10.00s real 0m00.84s user 0m32.44s 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 912596, close 622062, bind 149736, connect 182241, delroute 0 0m10.01s real 0m01.01s user 0m31.82s 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 712133, close 515226, bind 0, connect 312147, delroute 56085 0m10.01s real 0m01.00s user 0m35.90s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1319113, close 948038, bind 1724429, connect 0, delroute 0 10.01 real 2.55 user 75.64 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 916186, close 901671, bind 0, connect 745614, delroute 0 10.01 real 1.56 user 38.37 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1035941, close 978873, bind 499203, connect 455572, delroute 0 10.01 real 1.49 user 45.18 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 841528, close 648281, bind 718717, connect 600020, delroute 0 10.36 real 1.56 user 47.87 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 513223, close 1825377, bind 1898925, connect 1808277, delroute 0 10.01 real 4.15 user 54.99 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 875730, close 895474, bind 130622, connect 706333, delroute 0 0m10.00s real 0m01.53s user 0m40.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 1028004, close 1016150, bind 468340, connect 421281, delroute 0 0m10.00s real 0m01.72s user 0m44.79s 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 661362, close 669552, bind 0, connect 551949, delroute 92891 0m10.01s real 0m01.28s user 0m42.67s 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 339564 1.00 real 0.16 user 0.84 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 173193 0m01.00s real 0m00.03s user 0m00.98s system PASS sys/netinet/bindconnect Duration 8m17.28s