START sys/netinet/bindconnect 2025-01-04T01:57:04Z ==== 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 533934, close 838238, bind 1818328, connect 1464829, delroute 0 10.00 real 3.20 user 28.04 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 990675, close 474576, bind 8195012, connect 0, delroute 0 10.01 real 7.60 user 72.18 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 22616, close 21719, bind 0, connect 2085797, delroute 0 10.00 real 1.67 user 70.22 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 153273, close 90629, bind 2179683, connect 1228458, delroute 0 10.01 real 2.85 user 67.13 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75784, close 85341, bind 902598, connect 629498, delroute 0 10.14 real 1.26 user 39.39 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 125506, close 320770, bind 2596642, connect 1691439, delroute 0 10.00 real 3.59 user 65.34 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 19385, close 21573, bind 521673, connect 1903295, delroute 0 10.01 real 2.06 user 71.99 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 88081, close 73420, bind 2098827, connect 1154027, delroute 0 10.01 real 2.53 user 66.59 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 35873, close 39739, bind 0, connect 1636603, delroute 17402 10.01 real 1.40 user 71.75 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 556721, close 388638, bind 7380175, connect 0, delroute 0 10.01 real 6.97 user 71.84 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 390111, close 223204, bind 0, connect 3360757, delroute 0 10.01 real 3.48 user 62.54 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 361326, close 227827, bind 1889651, connect 1996972, delroute 0 10.01 real 3.62 user 64.93 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79890, close 91722, bind 663890, connect 602002, delroute 0 10.58 real 1.04 user 30.43 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 287402, close 379164, bind 2219117, connect 2320848, delroute 0 10.00 real 4.12 user 63.65 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 362340, close 158714, bind 661627, connect 3623375, delroute 0 10.01 real 4.13 user 72.87 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 164651, close 148442, bind 2704037, connect 1778405, delroute 0 10.01 real 3.70 user 72.63 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 372597, close 206194, bind 0, connect 2521959, delroute 186116 10.01 real 2.67 user 68.51 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 521536, close 365900, bind 8726495, connect 0, delroute 0 10.01 real 7.26 user 72.40 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6498, close 6132, bind 0, connect 1618707, delroute 0 10.01 real 1.52 user 67.56 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 37500, close 29580, bind 1832010, connect 888677, delroute 0 10.01 real 1.99 user 64.85 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129326, close 104223, bind 2804191, connect 1462290, delroute 0 10.20 real 3.39 user 64.31 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 51246, close 166969, bind 2098877, connect 1240974, delroute 0 10.00 real 2.94 user 63.07 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 8271, close 9253, bind 422583, connect 1438957, delroute 0 10.00 real 1.48 user 70.17 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 105741, close 29352, bind 1771066, connect 872765, delroute 0 10.01 real 2.24 user 64.35 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 15689, close 13930, bind 0, connect 1216297, delroute 7516 10.01 real 1.15 user 70.16 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 894896, close 333753, bind 8943413, connect 0, delroute 0 10.01 real 7.98 user 71.79 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11659, close 13863, bind 0, connect 1805068, delroute 0 10.01 real 1.34 user 68.87 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 63837, close 56247, bind 1890023, connect 980629, delroute 0 10.01 real 2.04 user 67.47 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75583, close 96404, bind 1299809, connect 809804, delroute 0 10.14 real 1.49 user 45.25 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 86507, close 353259, bind 2435924, connect 1568013, delroute 0 10.01 real 3.43 user 65.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 11725, close 14472, bind 454362, connect 1610612, delroute 0 0m10.01s real 0m01.96s user 1m12.62s 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 59598, close 52727, bind 1780698, connect 903404, delroute 0 0m10.01s real 0m02.20s user 1m06.01s 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 24311, close 29695, bind 0, connect 1378610, delroute 11142 0m10.01s real 0m01.46s user 1m10.81s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 559711, close 386173, bind 7269579, connect 0, delroute 0 10.01 real 6.03 user 72.72 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 341958, close 203965, bind 0, connect 3039518, delroute 0 10.01 real 3.09 user 62.02 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 318725, close 209855, bind 1737492, connect 1843739, delroute 0 10.01 real 3.43 user 64.00 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80276, close 96043, bind 713908, connect 674165, delroute 0 10.61 real 0.99 user 30.45 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 250328, close 429334, bind 2119039, connect 2230008, delroute 0 10.01 real 3.81 user 62.89 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 526217, close 222957, bind 568360, connect 3561305, delroute 0 0m10.00s real 0m04.58s user 1m11.16s 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 466795, close 272853, bind 2249271, connect 2281911, delroute 0 0m10.01s real 0m04.29s user 1m09.43s 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 312849, close 185297, bind 0, connect 2298084, delroute 134169 0m10.01s real 0m02.50s user 1m04.43s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 595663, close 372736, bind 8756670, connect 0, delroute 0 10.01 real 7.68 user 72.23 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6510, close 8661, bind 0, connect 1632122, delroute 0 10.01 real 1.54 user 66.88 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38633, close 35781, bind 1809102, connect 862778, delroute 0 10.01 real 1.93 user 63.73 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128066, close 119136, bind 2823305, connect 1487964, delroute 0 10.21 real 3.58 user 63.48 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 55861, close 218849, bind 2150043, connect 1284484, delroute 0 10.01 real 2.71 user 61.85 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 8124, close 11344, bind 427310, connect 1425061, delroute 0 0m10.01s real 0m01.47s user 1m10.62s 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 37778, close 32228, bind 1765864, connect 866469, delroute 0 0m10.01s real 0m02.00s user 1m04.19s 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 14654, close 16636, bind 0, connect 1223289, delroute 7066 0m10.01s real 0m01.10s user 1m09.49s 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 341988 1.00 real 0.18 user 0.81 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 175263 0m01.00s real 0m00.07s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m16.93s