START sys/netinet/bindconnect 2024-11-27T05:16:28Z ==== 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 397798, close 367861, bind 1185962, connect 1000227, delroute 0 10.00 real 2.03 user 28.29 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1091074, close 394105, bind 7275424, connect 0, delroute 0 10.01 real 6.99 user 72.66 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 21106, close 15371, bind 0, connect 2020432, delroute 0 10.01 real 1.80 user 69.91 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 243237, close 57883, bind 1906729, connect 1100959, delroute 0 10.01 real 2.66 user 67.09 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71437, close 71196, bind 764497, connect 522700, delroute 0 10.14 real 0.98 user 37.00 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 84704, close 160497, bind 2280371, connect 1367854, delroute 0 10.01 real 2.79 user 65.80 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 18124, close 14672, bind 497516, connect 1794574, delroute 0 10.01 real 2.20 user 72.22 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 84137, close 57155, bind 2007263, connect 1089261, delroute 0 10.01 real 2.96 user 66.57 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 33326, close 27711, bind 0, connect 1506705, delroute 17289 10.01 real 1.44 user 71.11 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 664667, close 457852, bind 2707683, connect 0, delroute 0 10.01 real 2.51 user 67.13 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 360059, close 376308, bind 0, connect 1871265, delroute 0 10.01 real 2.06 user 62.62 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 380095, close 413673, bind 994103, connect 973067, delroute 0 10.01 real 1.90 user 63.18 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101934, close 116251, bind 387760, connect 387145, delroute 0 10.54 real 0.70 user 23.47 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 314811, close 937675, bind 1764153, connect 1771021, delroute 0 10.00 real 3.84 user 62.19 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 355996, close 559565, bind 341286, connect 2036837, delroute 0 10.00 real 2.77 user 71.05 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 376258, close 646934, bind 1122810, connect 1164339, delroute 0 10.01 real 2.50 user 67.84 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 347665, close 299472, bind 0, connect 1756749, delroute 149872 10.01 real 2.21 user 67.84 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 474102, close 254230, bind 8804064, connect 0, delroute 0 10.00 real 7.77 user 71.94 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6613, close 4533, bind 0, connect 1513363, delroute 0 10.01 real 1.37 user 68.68 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 35461, close 24280, bind 1745202, connect 838828, delroute 0 10.01 real 2.05 user 64.18 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127338, close 84801, bind 2636852, connect 1342967, delroute 0 10.21 real 3.10 user 63.99 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 35956, close 70875, bind 1874403, connect 992259, delroute 0 10.00 real 2.33 user 62.89 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 7153, close 5558, bind 410186, connect 1334259, delroute 0 10.01 real 1.53 user 70.51 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 59509, close 22783, bind 1749618, connect 837948, delroute 0 10.01 real 2.18 user 64.46 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 15213, close 9072, bind 0, connect 1161663, delroute 7720 10.01 real 1.24 user 69.92 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 818547, close 243461, bind 8823352, connect 0, delroute 0 10.01 real 8.56 user 71.27 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10072, close 8954, bind 0, connect 1688019, delroute 0 10.01 real 1.44 user 69.04 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 57623, close 39703, bind 1812583, connect 922951, delroute 0 10.01 real 2.32 user 66.79 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71734, close 82284, bind 1147039, connect 709983, delroute 0 10.13 real 1.55 user 42.82 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 71610, close 163074, bind 2066375, connect 1200485, delroute 0 10.00 real 2.53 user 66.57 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 17761, close 8882, bind 441556, connect 1519705, delroute 0 0m10.01s real 0m01.98s user 1m12.12s 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 56164, close 39893, bind 1724443, connect 849597, delroute 0 0m10.01s real 0m01.95s user 1m06.53s 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 20807, close 18079, bind 0, connect 1247984, delroute 10375 0m10.01s real 0m01.05s user 1m11.80s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 648554, close 466423, bind 2709814, connect 0, delroute 0 10.01 real 2.50 user 67.29 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 301626, close 356149, bind 0, connect 1837988, delroute 0 10.01 real 1.59 user 61.83 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 326458, close 371322, bind 926262, connect 938647, delroute 0 10.01 real 1.61 user 61.17 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 100855, close 121766, bind 452089, connect 475538, delroute 0 10.60 real 0.95 user 24.83 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 267609, close 1071601, bind 1800001, connect 1901610, delroute 0 10.00 real 3.96 user 60.37 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 396609, close 442832, bind 354853, connect 2122190, delroute 0 0m10.00s real 0m02.68s user 1m08.90s 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 428558, close 484136, bind 1140413, connect 1142092, delroute 0 0m10.01s real 0m02.43s user 1m05.02s 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 296587, close 259702, bind 0, connect 1609241, delroute 100317 0m10.01s real 0m01.95s user 1m05.67s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 545983, close 236330, bind 8665964, connect 0, delroute 0 10.01 real 7.32 user 72.56 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5845, close 3927, bind 0, connect 1465735, delroute 0 10.01 real 1.27 user 68.42 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36118, close 24744, bind 1756657, connect 820707, delroute 0 10.01 real 1.89 user 63.71 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126324, close 103088, bind 2684423, connect 1377914, delroute 0 10.22 real 2.92 user 62.93 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 52534, close 83256, bind 1862332, connect 977745, delroute 0 10.00 real 2.45 user 63.15 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 6427, close 4930, bind 409791, connect 1337662, delroute 0 0m10.01s real 0m01.51s user 1m11.14s 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 34704, close 24206, bind 1730441, connect 824727, delroute 0 0m10.01s real 0m02.04s user 1m04.35s 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 13681, close 9543, bind 0, connect 1153174, delroute 7046 0m10.01s real 0m01.12s user 1m10.14s 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 342383 1.00 real 0.14 user 0.89 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 173410 0m01.00s real 0m00.08s user 0m00.93s system PASS sys/netinet/bindconnect Duration 8m16.87s