START sys/netinet/bindconnect 2025-01-05T20:30:16Z ==== 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 1149393, close 1173299, bind 957925, connect 877710, delroute 0 10.00 real 2.51 user 29.54 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 994307, close 574292, bind 3384854, connect 0, delroute 0 10.01 real 3.45 user 74.71 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 754063, close 591831, bind 0, connect 1236149, delroute 0 10.01 real 1.66 user 40.08 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 775558, close 643254, bind 816446, connect 810474, delroute 0 10.01 real 2.07 user 46.73 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126020, close 121115, bind 236390, connect 243766, delroute 0 10.25 real 0.50 user 19.38 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 512407, close 1529695, bind 2083916, connect 1995299, delroute 0 10.01 real 4.40 user 56.31 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 634274, close 555115, bind 163115, connect 1173542, delroute 0 10.01 real 1.64 user 40.71 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 778005, close 624820, bind 716828, connect 798257, delroute 0 10.01 real 1.75 user 46.27 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 511448, close 476583, bind 0, connect 862635, delroute 111526 10.01 real 1.40 user 44.30 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 944005, close 733610, bind 406759, connect 0, delroute 0 10.01 real 1.15 user 39.75 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 869861, close 565685, bind 0, connect 337655, delroute 0 10.01 real 1.02 user 32.69 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 889351, close 606061, bind 163079, connect 176587, delroute 0 10.01 real 0.80 user 33.74 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 319185, close 235613, bind 202896, connect 221221, delroute 0 10.45 real 0.39 user 21.93 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 366232, close 2047800, bind 1751975, connect 1778553, delroute 0 10.00 real 4.43 user 48.47 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 797520, close 576655, bind 58874, connect 467436, delroute 0 10.01 real 1.01 user 34.43 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 832388, close 604987, bind 161847, connect 298044, delroute 0 10.01 real 1.07 user 32.05 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 741845, close 548896, bind 0, connect 354673, delroute 65173 10.01 real 0.96 user 40.02 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1159821, close 778668, bind 2912804, connect 0, delroute 0 10.01 real 2.95 user 76.50 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 751859, close 639801, bind 0, connect 916615, delroute 0 10.01 real 1.54 user 45.40 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 758489, close 678023, bind 701332, connect 595652, delroute 0 10.01 real 1.86 user 51.48 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 702403, close 514357, bind 872600, connect 701277, delroute 0 10.33 real 1.92 user 51.40 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 517248, close 1529424, bind 1895280, connect 1765102, delroute 0 10.00 real 4.36 user 56.85 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 649812, close 613114, bind 172671, connect 901656, delroute 0 10.01 real 1.55 user 48.08 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 766889, close 687255, bind 678293, connect 583806, delroute 0 10.01 real 1.69 user 51.63 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 556225, close 514834, bind 0, connect 725199, delroute 245080 10.01 real 1.33 user 53.23 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1138764, close 661748, bind 2648857, connect 0, delroute 0 10.01 real 2.93 user 75.20 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 389334, close 342494, bind 0, connect 1047495, delroute 0 10.01 real 1.16 user 21.43 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 443910, close 395605, bind 274148, connect 878500, delroute 0 10.01 real 1.09 user 25.03 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 131045, close 143711, bind 245205, connect 284062, delroute 0 10.26 real 0.41 user 21.06 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 408599, close 1637569, bind 1875723, connect 2115440, delroute 0 10.00 real 4.34 user 44.27 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 271066, close 276975, bind 54601, connect 942426, delroute 0 0m10.01s real 0m00.99s user 0m21.68s 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 357244, close 312115, bind 221865, connect 803489, delroute 0 0m10.01s real 0m01.14s user 0m23.69s 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 247742, close 244531, bind 0, connect 796821, delroute 44830 0m10.01s real 0m01.02s user 0m25.93s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 963410, close 642220, bind 383419, connect 0, delroute 0 10.01 real 1.09 user 39.15 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 881494, close 446728, bind 0, connect 289327, delroute 0 10.01 real 0.84 user 29.92 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 902742, close 491420, bind 136380, connect 160304, delroute 0 10.01 real 0.74 user 31.25 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 366501, close 229984, bind 191972, connect 217594, delroute 0 10.49 real 0.62 user 21.93 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 353926, close 2023539, bind 1705067, connect 1802030, delroute 0 10.00 real 4.05 user 45.47 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 835025, close 515761, bind 51593, connect 354266, delroute 0 0m10.01s real 0m01.05s user 0m34.81s 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 915076, close 574563, bind 143533, connect 177033, delroute 0 0m10.01s real 0m00.96s user 0m32.76s 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 681803, close 494568, bind 0, connect 304019, delroute 59887 0m10.01s real 0m00.80s user 0m35.80s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1106536, close 788612, bind 2195645, connect 0, delroute 0 10.01 real 2.70 user 75.34 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1050365, close 1051757, bind 0, connect 622286, delroute 0 10.01 real 1.60 user 37.66 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1089244, close 1093524, bind 472952, connect 390105, delroute 0 10.01 real 1.62 user 42.78 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 724453, close 562941, bind 822813, connect 628754, delroute 0 10.36 real 1.80 user 49.00 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 469373, close 1678958, bind 1952067, connect 1810139, delroute 0 10.00 real 4.11 user 55.83 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 1012031, close 1029077, bind 119013, connect 605208, delroute 0 0m10.01s real 0m01.70s user 0m39.73s 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 1127073, close 1126313, bind 438645, connect 367950, delroute 0 0m10.01s real 0m01.74s user 0m40.73s 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 696963, close 691852, bind 0, connect 525495, delroute 91261 0m10.01s real 0m01.17s user 0m42.61s 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 328321 1.00 real 0.21 user 0.79 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 173889 0m01.00s real 0m00.05s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m17.21s