START sys/netinet/bindconnect 2025-01-02T20:35:35Z ==== 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 494252, close 737824, bind 1670841, connect 1354370, delroute 0 10.00 real 3.14 user 27.42 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 923713, close 524070, bind 7981423, connect 0, delroute 0 10.01 real 6.92 user 72.95 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 83219, close 17861, bind 0, connect 2006397, delroute 0 10.01 real 1.74 user 70.18 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 91528, close 79845, bind 2100029, connect 1180131, delroute 0 10.01 real 2.44 user 66.45 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 69498, close 68439, bind 691716, connect 473556, delroute 0 10.14 real 0.97 user 37.11 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 112341, close 332016, bind 2542939, connect 1624999, delroute 0 10.00 real 3.40 user 65.49 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 23635, close 20288, bind 515371, connect 1859580, delroute 0 10.00 real 2.00 user 72.59 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 86643, close 77020, bind 2042173, connect 1129797, delroute 0 10.01 real 2.70 user 66.51 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 35529, close 38579, bind 0, connect 1573833, delroute 17667 10.01 real 1.59 user 71.70 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 421144, close 351066, bind 7661198, connect 0, delroute 0 10.01 real 6.94 user 72.05 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 364064, close 222601, bind 0, connect 3248823, delroute 0 10.01 real 3.18 user 63.97 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 323258, close 230638, bind 1944798, connect 2012997, delroute 0 10.01 real 3.59 user 65.65 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80964, close 94730, bind 680320, connect 629970, delroute 0 10.55 real 1.17 user 30.07 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 264588, close 432361, bind 2318530, connect 2358954, delroute 0 10.00 real 4.22 user 64.21 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 313195, close 146625, bind 692554, connect 3573253, delroute 0 10.00 real 3.97 user 73.55 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 154941, close 142802, bind 2710149, connect 1717919, delroute 0 10.00 real 4.19 user 72.37 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 345657, close 204628, bind 0, connect 2501787, delroute 188955 10.01 real 2.68 user 69.14 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 524790, close 369860, bind 8679753, connect 0, delroute 0 10.00 real 7.81 user 71.95 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6983, close 8305, bind 0, connect 1545707, delroute 0 10.01 real 1.46 user 68.75 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 55055, close 29447, bind 1796703, connect 864934, delroute 0 10.01 real 2.16 user 64.36 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128842, close 107155, bind 2736515, connect 1432018, delroute 0 10.20 real 3.30 user 63.81 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 51162, close 165682, bind 2075929, connect 1207396, delroute 0 10.01 real 2.84 user 62.92 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 8019, close 9539, bind 427617, connect 1414870, delroute 0 10.00 real 1.42 user 70.55 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 38358, close 32705, bind 1797639, connect 890880, delroute 0 10.01 real 1.98 user 64.51 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 17461, close 16349, bind 0, connect 1209549, delroute 8894 10.00 real 1.07 user 69.70 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 845704, close 314319, bind 8694947, connect 0, delroute 0 10.01 real 7.60 user 72.46 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11019, close 14140, bind 0, connect 1765793, delroute 0 10.00 real 1.32 user 69.24 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 60783, close 55914, bind 1848584, connect 958698, delroute 0 10.01 real 2.09 user 66.33 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75076, close 93262, bind 1246915, connect 751234, delroute 0 10.14 real 1.66 user 43.40 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 97328, close 332961, bind 2349481, connect 1485534, delroute 0 10.00 real 3.07 user 66.64 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 11953, close 18097, bind 460655, connect 1614024, delroute 0 0m10.00s real 0m01.77s user 1m12.72s 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 59020, close 54130, bind 1778243, connect 895063, delroute 0 0m10.00s real 0m02.17s user 1m06.30s 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 23613, close 28442, bind 0, connect 1321513, delroute 11344 0m10.00s real 0m01.24s user 1m11.35s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 538936, close 368221, bind 7110393, connect 0, delroute 0 10.01 real 6.58 user 72.10 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 335225, close 208053, bind 0, connect 3043846, delroute 0 10.00 real 3.22 user 62.04 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 310657, close 212923, bind 1728373, connect 1847238, delroute 0 10.01 real 3.46 user 63.90 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79303, close 94470, bind 711797, connect 664867, delroute 0 10.59 real 1.29 user 30.08 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 247151, close 444358, bind 2161675, connect 2262001, delroute 0 10.01 real 4.24 user 62.83 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 512347, close 227604, bind 574917, connect 3592391, delroute 0 0m10.01s real 0m04.68s 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 461689, close 270135, bind 2206180, connect 2258208, delroute 0 0m10.00s real 0m04.59s user 1m10.14s 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 297351, close 189833, bind 0, connect 2243193, delroute 126664 0m10.00s real 0m02.51s user 1m05.17s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 593246, close 335856, bind 8579100, connect 0, delroute 0 10.00 real 7.38 user 72.69 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6605, close 7268, bind 0, connect 1584368, delroute 0 10.01 real 1.29 user 68.86 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 46078, close 34339, bind 1811418, connect 870693, delroute 0 10.01 real 1.88 user 64.14 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127902, close 120469, bind 2770778, connect 1452191, delroute 0 10.22 real 2.95 user 63.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 57313, close 226677, bind 2176230, connect 1308219, delroute 0 10.00 real 2.57 user 63.36 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 7072, close 8704, bind 426938, connect 1428004, delroute 0 0m10.00s real 0m01.74s user 1m10.22s 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 38148, close 33314, bind 1786172, connect 867236, delroute 0 0m10.01s real 0m02.13s user 1m04.41s 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 15063, close 19288, bind 0, connect 1245442, delroute 7251 0m10.00s real 0m01.07s user 1m09.44s 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 336123 1.00 real 0.20 user 0.80 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 172336 0m01.00s real 0m00.13s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m16.88s