START sys/netinet/bindconnect 2025-03-24T05:02:06Z ==== 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 936447, close 761062, bind 1179953, connect 1110718, delroute 0 10.01 real 2.45 user 26.51 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1197023, close 710287, bind 4392229, connect 0, delroute 0 10.01 real 4.48 user 69.95 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 349729, close 515219, bind 0, connect 1756781, delroute 0 10.01 real 1.90 user 33.49 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 508232, close 579156, bind 1075697, connect 1106521, delroute 0 10.01 real 2.18 user 41.76 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 188311, close 236412, bind 498763, connect 423269, delroute 0 10.16 real 0.87 user 41.33 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 483601, close 1637623, bind 2428556, connect 2267540, delroute 0 10.00 real 5.53 user 54.06 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 306138, close 431254, bind 235459, connect 1616841, delroute 0 10.01 real 1.74 user 34.38 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 431340, close 528586, bind 905102, connect 1149382, delroute 0 10.01 real 2.12 user 38.41 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 298560, close 608314, bind 0, connect 1550144, delroute 117802 10.01 real 1.98 user 41.06 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 453060, close 863927, bind 2597985, connect 0, delroute 0 10.01 real 2.61 user 55.66 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 367512, close 856834, bind 0, connect 2033110, delroute 0 10.01 real 2.28 user 42.56 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 376734, close 888444, bind 1169351, connect 983956, delroute 0 10.01 real 2.26 user 44.08 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 184313, close 246237, bind 576551, connect 545953, delroute 0 10.27 real 1.04 user 39.34 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 293622, close 2476175, bind 2893212, connect 2853630, delroute 0 10.01 real 6.31 user 51.71 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 344535, close 675448, bind 299092, connect 1727052, delroute 0 10.01 real 2.39 user 43.56 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 329792, close 590174, bind 845775, connect 873732, delroute 0 10.01 real 1.80 user 38.82 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 303961, close 822955, bind 0, connect 1808510, delroute 148777 10.01 real 2.13 user 51.08 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1311321, close 707961, bind 5013363, connect 0, delroute 0 10.01 real 4.71 user 72.35 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 417951, close 714657, bind 0, connect 1439856, delroute 0 10.01 real 1.82 user 43.55 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 550920, close 548828, bind 1169029, connect 943053, delroute 0 10.01 real 2.29 user 50.28 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 557559, close 296916, bind 1169645, connect 950555, delroute 0 10.34 real 2.18 user 50.80 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 471970, close 1517746, bind 2183796, connect 1943276, delroute 0 10.01 real 4.19 user 54.81 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 415337, close 680065, bind 299637, connect 1424519, delroute 0 10.00 real 2.02 user 46.77 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 523586, close 778971, bind 1100244, connect 908718, delroute 0 10.01 real 2.43 user 49.12 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 337006, close 809086, bind 0, connect 1759346, delroute 241698 10.01 real 2.21 user 51.43 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1209401, close 628911, bind 4263815, connect 0, delroute 0 10.01 real 3.92 user 70.67 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 152394, close 313311, bind 0, connect 1317060, delroute 0 10.01 real 1.12 user 20.95 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 197780, close 262499, bind 420275, connect 1035034, delroute 0 10.01 real 1.19 user 23.79 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 273245, close 341209, bind 612546, connect 453246, delroute 0 10.19 real 1.11 user 46.64 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 374324, close 2250569, bind 2743547, connect 2763295, delroute 0 10.01 real 5.80 user 50.36 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 165048, close 293324, bind 125598, connect 1175637, delroute 0 0m10.00s real 0m01.54s user 0m22.52s 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 187814, close 242648, bind 409459, connect 920142, delroute 0 0m10.01s real 0m01.44s user 0m23.39s 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 186060, close 481556, bind 0, connect 1225993, delroute 63566 0m10.01s real 0m01.37s user 0m28.35s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 442887, close 935787, bind 2681450, connect 0, delroute 0 10.01 real 2.59 user 55.52 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 339069, close 831630, bind 0, connect 1921805, delroute 0 10.01 real 2.34 user 38.62 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 356199, close 803944, bind 1070544, connect 900531, delroute 0 10.01 real 2.05 user 40.87 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 211382, close 309352, bind 659638, connect 641687, delroute 0 10.27 real 1.47 user 40.60 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 276677, close 2684109, bind 2962712, connect 3040562, delroute 0 10.00 real 6.55 user 50.95 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 374645, close 720022, bind 324383, connect 1838547, delroute 0 0m10.01s real 0m02.77s user 0m47.83s 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 393335, close 755810, bind 1064280, connect 910264, delroute 0 0m10.01s real 0m02.08s user 0m45.61s 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 276818, close 777201, bind 0, connect 1662283, delroute 116217 0m10.01s real 0m02.29s user 0m46.71s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1204619, close 748530, bind 4544183, connect 0, delroute 0 10.01 real 4.54 user 72.58 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 465329, close 606513, bind 0, connect 1466455, delroute 0 10.01 real 1.62 user 41.75 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 564731, close 646168, bind 1153429, connect 885066, delroute 0 10.01 real 2.23 user 47.36 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 667923, close 288939, bind 1142330, connect 878871, delroute 0 10.34 real 2.18 user 46.56 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 457746, close 1678111, bind 2415966, connect 2146046, delroute 0 10.00 real 4.85 user 55.80 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 486096, close 672031, bind 312582, connect 1445401, delroute 0 0m10.00s real 0m02.17s user 0m44.21s 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 582471, close 638076, bind 1098020, connect 858801, delroute 0 0m10.01s real 0m02.21s user 0m46.87s 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 312124, close 776947, bind 0, connect 1547960, delroute 114829 0m10.01s real 0m01.96s user 0m46.53s 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 349025 1.00 real 0.18 user 0.82 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 172581 0m01.00s real 0m00.05s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m16.61s