START sys/netinet/bindconnect 2025-03-16T05:02:46Z ==== 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 867280, close 712912, bind 1100334, connect 1049689, delroute 0 10.00 real 2.30 user 27.06 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 962567, close 533702, bind 3824485, connect 0, delroute 0 10.01 real 3.43 user 68.12 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 306411, close 394588, bind 0, connect 1669878, delroute 0 10.01 real 1.58 user 33.99 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 461132, close 460610, bind 948526, connect 1023020, delroute 0 10.01 real 2.11 user 43.33 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 192134, close 225490, bind 509296, connect 419397, delroute 0 10.17 real 1.07 user 40.16 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 425084, close 1507782, bind 2351170, connect 2228741, delroute 0 10.00 real 4.77 user 55.59 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 304035, close 371592, bind 225831, connect 1521240, delroute 0 10.01 real 1.94 user 37.94 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 408078, close 442900, bind 862192, connect 1072399, delroute 0 10.01 real 2.00 user 41.33 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 290764, close 610654, bind 0, connect 1406982, delroute 108242 10.01 real 1.82 user 43.34 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 404367, close 712358, bind 2255031, connect 0, delroute 0 10.01 real 2.33 user 54.61 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 337855, close 783509, bind 0, connect 1930228, delroute 0 10.01 real 2.24 user 43.24 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 355144, close 744850, bind 1039272, connect 860521, delroute 0 10.01 real 1.97 user 44.71 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 147840, close 197691, bind 494609, connect 470781, delroute 0 10.28 real 0.99 user 37.19 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 268675, close 2307183, bind 2768566, connect 2726377, delroute 0 10.01 real 5.92 user 53.17 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 323407, close 617771, bind 281085, connect 1589224, delroute 0 10.01 real 2.13 user 43.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 311534, close 564540, bind 824030, connect 826373, delroute 0 10.01 real 1.97 user 40.04 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 287978, close 769007, bind 0, connect 1736681, delroute 134471 10.01 real 2.31 user 52.57 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1243342, close 668759, bind 4731888, connect 0, delroute 0 10.01 real 4.77 user 72.14 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 376868, close 423680, bind 0, connect 1318050, delroute 0 10.01 real 1.63 user 44.59 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 466508, close 474608, bind 1040714, connect 839881, delroute 0 10.01 real 2.05 user 50.38 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 501625, close 258436, bind 1088394, connect 852080, delroute 0 10.34 real 2.15 user 51.28 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 411604, close 1342652, bind 2083020, connect 1865440, delroute 0 10.01 real 4.56 user 55.94 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 368536, close 456102, bind 279691, connect 1321035, delroute 0 10.01 real 1.79 user 48.64 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 464014, close 470687, bind 1015884, connect 834204, delroute 0 10.01 real 2.07 user 50.65 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 318414, close 630828, bind 0, connect 1444712, delroute 204992 10.01 real 2.13 user 51.56 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 715823, close 541713, bind 2906876, connect 0, delroute 0 10.01 real 2.63 user 61.98 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 152566, close 341706, bind 0, connect 1382796, delroute 0 10.01 real 1.30 user 24.94 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 171705, close 253437, bind 394260, connect 969893, delroute 0 10.01 real 1.27 user 25.54 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 250567, close 322790, bind 696783, connect 478294, delroute 0 10.18 real 0.96 user 52.37 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 299852, close 2347984, bind 2839395, connect 2922312, delroute 0 10.00 real 6.43 user 51.99 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 147277, close 283014, bind 116874, connect 1151655, delroute 0 0m10.01s real 0m01.30s user 0m24.72s 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 162197, close 224813, bind 355089, connect 866715, delroute 0 0m10.01s real 0m00.94s user 0m24.42s 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 157593, close 511030, bind 0, connect 1118478, delroute 53957 0m10.01s real 0m01.28s user 0m28.65s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 390256, close 765422, bind 2310072, connect 0, delroute 0 10.01 real 2.31 user 53.90 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 307840, close 784890, bind 0, connect 1848990, delroute 0 10.01 real 2.14 user 39.12 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 319481, close 818566, bind 1037434, connect 900047, delroute 0 10.01 real 2.01 user 41.63 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 172704, close 249705, bind 571351, connect 553919, delroute 0 10.25 real 1.19 user 36.24 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 248267, close 2492556, bind 2838699, connect 2905932, delroute 0 10.00 real 6.52 user 50.41 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 341977, close 665468, bind 309771, connect 1721928, delroute 0 0m10.00s real 0m02.27s user 0m48.63s 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 350412, close 743504, bind 965550, connect 834135, delroute 0 0m10.01s real 0m01.80s user 0m46.58s 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 265115, close 690402, bind 0, connect 1537397, delroute 106599 0m10.01s real 0m02.49s user 0m47.21s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1149306, close 699778, bind 4426031, connect 0, delroute 0 10.01 real 4.45 user 72.07 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 453994, close 455676, bind 0, connect 1266326, delroute 0 10.01 real 1.50 user 42.60 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 541268, close 472118, bind 1034819, connect 778826, delroute 0 10.01 real 1.86 user 47.41 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 644969, close 231930, bind 1055707, connect 768959, delroute 0 10.35 real 1.87 user 47.25 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 385771, close 1503706, bind 2299093, connect 2031688, delroute 0 10.00 real 4.83 user 55.22 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 502389, close 464459, bind 270334, connect 1242719, delroute 0 0m10.01s real 0m01.79s user 0m44.37s 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 588604, close 460522, bind 975218, connect 754854, delroute 0 0m10.01s real 0m02.05s user 0m46.05s 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 293820, close 611353, bind 0, connect 1266925, delroute 104095 0m10.01s real 0m01.75s user 0m46.30s 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 346920 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 174722 0m01.00s real 0m00.05s user 0m00.97s system PASS sys/netinet/bindconnect Duration 8m16.59s