START sys/netinet/bindconnect 2025-01-10T05:21:08Z ==== 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 1145238, close 1192031, bind 989611, connect 891808, delroute 0 10.00 real 2.35 user 30.05 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1045342, close 621004, bind 3246476, connect 0, delroute 0 10.01 real 3.63 user 74.64 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 688408, close 555829, bind 0, connect 1247921, delroute 0 10.01 real 1.76 user 39.37 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 781910, close 657506, bind 815835, connect 812920, delroute 0 10.01 real 1.74 user 48.23 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125794, close 118740, bind 237214, connect 244087, delroute 0 10.24 real 0.59 user 22.55 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 531689, close 1505148, bind 2046705, connect 1959481, delroute 0 10.00 real 4.56 user 55.73 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 631641, close 562143, bind 167031, connect 1177217, delroute 0 10.01 real 1.58 user 40.89 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 782776, close 630826, bind 725324, connect 795840, delroute 0 10.01 real 2.11 user 45.97 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 510593, close 476473, bind 0, connect 848185, delroute 112492 10.01 real 1.34 user 45.13 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 909232, close 678036, bind 418556, connect 0, delroute 0 10.01 real 1.00 user 40.30 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 840150, close 553025, bind 0, connect 351223, delroute 0 10.01 real 1.02 user 33.32 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 853893, close 581223, bind 176634, connect 184478, delroute 0 10.01 real 0.90 user 34.98 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 460527, close 296336, bind 234391, connect 255813, delroute 0 10.49 real 0.74 user 27.92 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 366413, close 2039121, bind 1741915, connect 1771795, delroute 0 10.00 real 4.22 user 48.50 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 774469, close 572348, bind 57879, connect 473232, delroute 0 10.01 real 1.09 user 34.25 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 866756, close 614754, bind 147706, connect 276830, delroute 0 10.01 real 0.86 user 33.02 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 741337, close 550054, bind 0, connect 348401, delroute 62161 10.01 real 0.81 user 38.57 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1134753, close 777021, bind 2921454, connect 0, delroute 0 10.01 real 3.09 user 75.80 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 694730, close 642952, bind 0, connect 922341, delroute 0 10.01 real 1.26 user 45.05 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 763838, close 693087, bind 703684, connect 600876, delroute 0 10.01 real 1.79 user 50.84 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 669713, close 486902, bind 872789, connect 706243, delroute 0 10.33 real 1.89 user 51.36 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 499069, close 1500943, bind 1868232, connect 1730743, delroute 0 10.00 real 3.86 user 56.39 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 646586, close 619890, bind 170462, connect 894854, delroute 0 10.01 real 1.53 user 47.26 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 753194, close 687911, bind 678064, connect 590681, delroute 0 10.01 real 1.63 user 51.87 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 546190, close 511609, bind 0, connect 733807, delroute 245169 10.01 real 1.53 user 52.99 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1134637, close 651914, bind 2648010, connect 0, delroute 0 10.01 real 3.11 user 75.03 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 333652, close 311546, bind 0, connect 1062800, delroute 0 10.01 real 0.81 user 22.05 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 364887, close 337550, bind 272129, connect 893566, delroute 0 10.01 real 1.03 user 25.89 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125755, close 141357, bind 248395, connect 286868, delroute 0 10.26 real 0.51 user 21.87 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 403582, close 1624140, bind 1854297, connect 2109611, delroute 0 10.00 real 4.27 user 43.43 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 343685, close 315792, bind 54073, connect 934184, delroute 0 0m10.01s real 0m01.15s user 0m21.73s 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 346453, close 301675, bind 221684, connect 807215, delroute 0 0m10.01s real 0m01.14s user 0m22.68s 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 255082, close 257384, bind 0, connect 805344, delroute 44345 0m10.01s real 0m00.96s user 0m26.31s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 952926, close 701687, bind 391406, connect 0, delroute 0 10.01 real 1.01 user 39.91 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 861611, close 470652, bind 0, connect 292759, delroute 0 10.01 real 0.68 user 31.05 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 888109, close 527003, bind 137594, connect 163069, delroute 0 10.01 real 1.01 user 32.10 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 452130, close 287981, bind 216252, connect 254014, delroute 0 10.47 real 0.61 user 26.77 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 358011, close 1955549, bind 1649786, connect 1743345, delroute 0 10.00 real 4.03 user 44.52 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 849399, close 483021, bind 52724, connect 343448, delroute 0 0m10.01s real 0m00.83s user 0m33.82s 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 901165, close 533091, bind 143292, connect 175065, delroute 0 0m10.01s real 0m00.90s user 0m32.98s 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 702051, close 466595, bind 0, connect 303197, delroute 56806 0m10.01s real 0m00.73s user 0m35.89s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1131503, close 782770, bind 2204272, connect 0, delroute 0 10.01 real 2.45 user 76.28 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1005245, close 1022785, bind 0, connect 655294, delroute 0 10.01 real 1.60 user 38.92 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1059862, close 1081916, bind 487653, connect 406101, delroute 0 10.01 real 1.61 user 43.51 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 686630, close 526307, bind 827978, connect 645865, delroute 0 10.36 real 1.82 user 49.30 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 513686, close 1635241, bind 1933715, connect 1785967, delroute 0 10.01 real 4.49 user 55.24 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 928488, close 950188, bind 127266, connect 659813, delroute 0 0m10.01s real 0m01.44s user 0m40.43s 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 1048274, close 1065946, bind 468946, connect 400052, delroute 0 0m10.01s real 0m01.67s user 0m42.11s 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 649729, close 649773, bind 0, connect 537201, delroute 92715 0m10.01s real 0m01.35s user 0m43.21s 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 342923 1.00 real 0.07 user 0.93 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 176373 0m01.00s real 0m00.10s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m17.18s