START sys/netinet/bindconnect 2024-02-05T19:06:07Z ==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -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 294281, close 312172, bind 1067559, connect 823076, delroute 0 10.00 real 1.79 user 30.54 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 262021, close 209334, bind 6845747, connect 0, delroute 0 10.00 real 6.43 user 72.76 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7628, close 8615, bind 0, connect 2458582, delroute 0 10.00 real 3.09 user 71.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 56369, close 37626, bind 2792314, connect 1488872, delroute 0 10.00 real 4.33 user 73.41 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 68780, close 71706, bind 1190426, connect 805672, delroute 0 10.18 real 1.95 user 49.81 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 86478, close 173265, bind 3168276, connect 1919658, delroute 0 10.01 real 5.26 user 72.55 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 10310, close 10705, bind 532875, connect 2192557, delroute 0 10.00 real 3.52 user 74.09 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 46412, close 39727, bind 2776233, connect 1470157, delroute 0 10.00 real 4.27 user 73.09 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 20579, close 23204, bind 0, connect 2156711, delroute 12036 10.00 real 3.34 user 74.67 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 549790, close 222305, bind 1180452, connect 0, delroute 0 10.00 real 2.84 user 75.68 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 343166, close 331314, bind 0, connect 1418960, delroute 0 10.01 real 3.42 user 67.43 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 359283, close 317184, bind 675796, connect 725200, delroute 0 10.00 real 3.31 user 68.91 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 100585, close 151674, bind 500547, connect 526856, delroute 0 10.73 real 1.53 user 28.08 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 246347, close 1136123, bind 1908806, connect 2026968, delroute 0 10.01 real 5.99 user 65.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 327529, close 479216, bind 244982, connect 1672166, delroute 0 10.00 real 3.86 user 74.74 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 309840, close 530778, bind 873251, connect 1061863, delroute 0 10.00 real 3.91 user 74.31 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 315395, close 245819, bind 0, connect 1237207, delroute 94380 10.00 real 4.20 user 70.51 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 207491, close 211585, bind 7481353, connect 0, delroute 0 10.01 real 6.58 user 73.30 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 20583, close 6849, bind 0, connect 2267389, delroute 0 10.01 real 2.84 user 73.45 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 27457, close 25825, bind 2780743, connect 1285421, delroute 0 10.00 real 4.14 user 72.57 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 115873, close 99856, bind 4363010, connect 2073386, delroute 0 10.29 real 6.06 user 71.51 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 116798, close 165246, bind 3042226, connect 1720359, delroute 0 10.01 real 5.42 user 71.14 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 7822, close 8091, bind 479794, connect 2017010, delroute 0 10.00 real 3.53 user 73.92 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 33537, close 27414, bind 2733332, connect 1270629, delroute 0 10.00 real 4.00 user 73.02 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 12480, close 15568, bind 0, connect 1883548, delroute 6964 10.00 real 3.40 user 74.45 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 266626, close 248429, bind 7399444, connect 0, delroute 0 10.00 real 7.02 user 72.88 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5183, close 6897, bind 0, connect 1989482, delroute 0 10.00 real 2.95 user 69.94 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 28388, close 24824, bind 2456726, connect 1196298, delroute 0 10.00 real 4.07 user 71.94 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73051, close 89060, bind 2189130, connect 1182094, delroute 0 10.17 real 3.12 user 56.83 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 86972, close 304064, bind 3099309, connect 1929651, delroute 0 10.00 real 5.21 user 70.87 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 10175, close 7058, bind 427847, connect 1796515, delroute 0 0m10.00s real 0m03.76s user 1m12.04s 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 33317, close 26372, bind 2339400, connect 1118616, delroute 0 0m10.00s real 0m04.16s user 1m11.13s 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 8706, close 11923, bind 0, connect 1703069, delroute 4785 0m10.00s real 0m03.81s user 1m12.29s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 549934, close 226198, bind 1164861, connect 0, delroute 0 10.00 real 2.90 user 75.53 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 312945, close 261952, bind 0, connect 1233858, delroute 0 10.00 real 2.98 user 65.95 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 329738, close 268259, bind 612146, connect 644807, delroute 0 10.00 real 2.92 user 66.72 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 98768, close 156626, bind 544638, connect 572701, delroute 0 10.70 real 1.60 user 29.84 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 217986, close 1215118, bind 1902782, connect 2023535, delroute 0 10.00 real 5.07 user 64.74 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 385781, close 372942, bind 234701, connect 1544899, delroute 0 0m10.00s real 0m03.75s user 1m13.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 402475, close 365488, bind 738532, connect 848440, delroute 0 0m10.01s real 0m03.53s user 1m13.29s 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 282212, close 200696, bind 0, connect 1173639, delroute 75466 0m10.01s real 0m03.64s user 1m06.76s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 214828, close 217745, bind 7586528, connect 0, delroute 0 10.00 real 6.91 user 73.16 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 18898, close 19603, bind 0, connect 3800697, delroute 0 10.00 real 3.88 user 74.72 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 60619, close 56411, bind 3644782, connect 1919487, delroute 0 10.00 real 5.40 user 73.79 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 144596, close 109863, bind 4343821, connect 2356493, delroute 0 10.35 real 6.36 user 72.70 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 91830, close 207581, bind 3880957, connect 2301567, delroute 0 10.01 real 6.19 user 73.01 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 44498, close 27610, bind 738499, connect 3139261, delroute 0 0m10.00s real 0m04.20s user 1m14.67s 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 93594, close 56932, bind 3441450, connect 1832893, delroute 0 0m10.00s real 0m05.07s user 1m14.14s 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 39819, close 39458, bind 0, connect 2815457, delroute 25160 0m10.00s real 0m03.83s user 1m14.20s 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 231690 1.00 real 0.12 user 0.88 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 130139 0m01.01s real 0m00.10s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m18.11s