START sys/netinet/bindconnect 2025-03-18T05:11:44Z ==== 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 901593, close 728802, bind 1145832, connect 1110163, delroute 0 10.01 real 2.72 user 27.59 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1159891, close 608062, bind 4361301, connect 0, delroute 0 10.01 real 4.44 user 69.83 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 350621, close 368086, bind 0, connect 1695228, delroute 0 10.01 real 1.72 user 34.82 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 476814, close 476640, bind 986032, connect 1099680, delroute 0 10.01 real 2.15 user 42.38 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 250534, close 316736, bind 567691, connect 480249, delroute 0 10.17 real 1.11 user 44.25 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 452831, close 1376962, bind 2294211, connect 2157246, delroute 0 10.00 real 5.21 user 54.58 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 301787, close 397737, bind 227261, connect 1608478, delroute 0 10.01 real 1.89 user 36.23 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 420094, close 445529, bind 874900, connect 1143757, delroute 0 10.01 real 2.07 user 39.44 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 308155, close 568923, bind 0, connect 1467249, delroute 115854 10.01 real 1.65 user 43.42 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 427762, close 681186, bind 2233651, connect 0, delroute 0 10.01 real 2.43 user 53.86 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 351792, close 777076, bind 0, connect 1934234, delroute 0 10.01 real 2.09 user 42.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 358841, close 782796, bind 1054102, connect 914957, delroute 0 10.01 real 2.11 user 45.00 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 160912, close 211663, bind 518332, connect 493383, delroute 0 10.27 real 0.97 user 34.52 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 284017, close 2291408, bind 2762885, connect 2749956, delroute 0 10.00 real 6.08 user 52.66 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 330504, close 646646, bind 285403, connect 1623864, delroute 0 10.01 real 2.22 user 43.09 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 318430, close 589456, bind 844412, connect 841473, delroute 0 10.01 real 1.96 user 39.60 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 303094, close 806420, bind 0, connect 1670398, delroute 139261 10.00 real 2.32 user 50.48 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1161262, close 598083, bind 5037952, connect 0, delroute 0 10.01 real 4.83 user 72.08 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 398931, close 506674, bind 0, connect 1386149, delroute 0 10.01 real 1.79 user 45.30 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 499659, close 507709, bind 1103692, connect 889934, delroute 0 10.01 real 2.11 user 50.97 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 531484, close 267391, bind 1147291, connect 895354, delroute 0 10.32 real 1.88 user 51.52 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 433775, close 1211764, bind 2024942, connect 1767254, delroute 0 10.00 real 4.04 user 55.74 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 394580, close 570911, bind 291366, connect 1389908, delroute 0 10.01 real 2.04 user 48.47 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 498262, close 498608, bind 1079699, connect 885315, delroute 0 10.01 real 1.90 user 50.49 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 335099, close 664631, bind 0, connect 1515245, delroute 221898 10.01 real 1.81 user 52.37 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1189741, close 607780, bind 4301233, connect 0, delroute 0 10.01 real 4.31 user 70.12 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 145061, close 234740, bind 0, connect 1316924, delroute 0 10.01 real 1.24 user 21.93 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 189064, close 238199, bind 402519, connect 1037252, delroute 0 10.01 real 1.24 user 23.91 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 230199, close 284233, bind 598886, connect 424678, delroute 0 10.21 real 0.98 user 49.96 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 360478, close 2035711, bind 2630025, connect 2687390, delroute 0 10.00 real 5.87 user 50.53 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 161906, close 244776, bind 109716, connect 1136797, delroute 0 0m10.00s real 0m01.37s user 0m23.37s 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 186298, close 228392, bind 383087, connect 905723, delroute 0 0m10.01s real 0m01.15s user 0m23.06s 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 171950, close 355142, bind 0, connect 1071922, delroute 55058 0m10.01s real 0m01.17s user 0m26.84s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 410588, close 713439, bind 2245442, connect 0, delroute 0 10.01 real 1.99 user 53.25 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 321028, close 794211, bind 0, connect 1871731, delroute 0 10.01 real 2.18 user 40.28 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331766, close 801148, bind 1037313, connect 887626, delroute 0 10.01 real 1.92 user 41.65 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 217198, close 321470, bind 686264, connect 661159, delroute 0 10.28 real 1.27 user 38.85 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 264980, close 2545241, bind 2837734, connect 2880133, delroute 0 10.00 real 6.44 user 49.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 355986, close 663749, bind 306781, connect 1708925, delroute 0 0m10.01s real 0m02.18s user 0m47.75s 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 366461, close 665082, bind 971000, connect 842371, delroute 0 0m10.00s real 0m01.98s user 0m45.68s 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 276766, close 674504, bind 0, connect 1483209, delroute 110331 0m10.01s real 0m01.94s user 0m47.02s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1106580, close 580304, bind 4689431, connect 0, delroute 0 10.01 real 4.42 user 71.05 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 526473, close 478622, bind 0, connect 1349907, delroute 0 10.01 real 1.56 user 41.11 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 593449, close 490732, bind 1074067, connect 824351, delroute 0 10.01 real 1.76 user 47.62 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 712561, close 236468, bind 1092383, connect 790455, delroute 0 10.36 real 1.67 user 46.10 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 420467, close 1455480, bind 2308275, connect 2007991, delroute 0 10.00 real 4.78 user 54.67 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 587854, close 456788, bind 288930, connect 1306476, delroute 0 0m10.00s real 0m01.68s user 0m43.51s 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 665371, close 463381, bind 985420, connect 771189, delroute 0 0m10.01s real 0m01.85s user 0m45.22s 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 311136, close 689654, bind 0, connect 1365985, delroute 111120 0m10.01s real 0m01.93s user 0m46.31s 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 344354 1.00 real 0.17 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 173738 0m01.00s real 0m00.04s user 0m00.97s system PASS sys/netinet/bindconnect Duration 8m16.63s