START sys/netinet/bindconnect 2024-11-09T05:37:25Z ==== 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 392996, close 335869, bind 1213965, connect 998659, delroute 0 10.01 real 2.06 user 27.38 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 954464, close 372674, bind 7808534, connect 0, delroute 0 10.01 real 7.14 user 72.54 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 21242, close 15010, bind 0, connect 2043891, delroute 0 10.01 real 1.81 user 70.00 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 144384, close 65656, bind 2028058, connect 1120784, delroute 0 10.01 real 2.66 user 66.77 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70134, close 69026, bind 774230, connect 523640, delroute 0 10.13 real 0.83 user 38.95 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 83516, close 155432, bind 2272955, connect 1363051, delroute 0 10.00 real 2.96 user 65.38 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 19756, close 16078, bind 516009, connect 1817956, delroute 0 10.01 real 2.30 user 71.55 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 101471, close 58688, bind 2002453, connect 1099217, delroute 0 10.01 real 2.29 user 66.12 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 36064, close 27760, bind 0, connect 1509058, delroute 18610 10.01 real 1.50 user 71.64 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 663468, close 466452, bind 2682952, connect 0, delroute 0 10.01 real 2.37 user 67.36 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 360197, close 369832, bind 0, connect 1864632, delroute 0 10.01 real 2.11 user 62.28 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 383269, close 408474, bind 990625, connect 967123, delroute 0 10.01 real 1.73 user 62.61 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 100592, close 115058, bind 389948, connect 390295, delroute 0 10.53 real 0.52 user 23.22 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 313508, close 973186, bind 1807143, connect 1846984, delroute 0 10.00 real 3.56 user 62.54 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 367985, close 553382, bind 339172, connect 2065212, delroute 0 10.01 real 2.70 user 71.29 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 374795, close 629232, bind 1087617, connect 1148280, delroute 0 10.01 real 2.36 user 68.39 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 357804, close 289823, bind 0, connect 1737766, delroute 149153 10.01 real 2.10 user 67.65 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 467405, close 248002, bind 8790530, connect 0, delroute 0 10.01 real 7.64 user 72.17 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6531, close 3881, bind 0, connect 1502208, delroute 0 10.01 real 1.31 user 67.95 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36462, close 23955, bind 1763268, connect 852163, delroute 0 10.01 real 1.81 user 64.77 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130002, close 91563, bind 2616902, connect 1356949, delroute 0 10.20 real 3.30 user 63.88 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 44734, close 73042, bind 1875814, connect 988945, delroute 0 10.00 real 2.29 user 62.86 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 6910, close 5496, bind 418720, connect 1367166, delroute 0 10.01 real 1.57 user 70.68 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 37260, close 24825, bind 1782893, connect 864513, delroute 0 10.01 real 1.96 user 65.21 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 16567, close 10553, bind 0, connect 1170976, delroute 8422 10.01 real 1.07 user 70.19 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 797027, close 258702, bind 8840671, connect 0, delroute 0 10.01 real 7.82 user 72.14 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10615, close 8376, bind 0, connect 1685463, delroute 0 10.01 real 1.56 user 69.54 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 82665, close 41755, bind 1810527, connect 926985, delroute 0 10.01 real 2.30 user 67.20 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71960, close 81879, bind 1098748, connect 681689, delroute 0 10.12 real 1.62 user 41.66 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 64369, close 177493, bind 2113744, connect 1238536, delroute 0 10.01 real 2.63 user 65.54 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 10839, close 10101, bind 442928, connect 1516348, delroute 0 0m10.01s real 0m01.78s user 1m12.87s 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 56859, close 39765, bind 1732176, connect 870967, delroute 0 0m10.01s real 0m02.09s user 1m06.64s 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 23092, close 19369, bind 0, connect 1242161, delroute 11319 0m10.01s real 0m01.10s user 1m11.42s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 648820, close 468378, bind 2658105, connect 0, delroute 0 10.01 real 2.34 user 67.27 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 304764, close 340244, bind 0, connect 1792799, delroute 0 10.01 real 1.71 user 60.05 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 328112, close 367855, bind 913463, connect 927745, delroute 0 10.00 real 1.89 user 61.68 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 102665, close 135550, bind 455694, connect 475493, delroute 0 10.57 real 0.64 user 25.71 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 270283, close 1111294, bind 1836978, connect 1933386, delroute 0 10.00 real 3.97 user 60.88 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 403408, close 432962, bind 352485, connect 2112212, delroute 0 0m10.00s real 0m02.57s user 1m08.56s 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 436447, close 481471, bind 1127943, connect 1135612, delroute 0 0m10.00s real 0m02.16s user 1m05.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 307368, close 257746, bind 0, connect 1661365, delroute 102676 0m10.01s real 0m02.16s user 1m05.25s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 504705, close 232870, bind 8861229, connect 0, delroute 0 10.00 real 7.79 user 72.04 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6385, close 4277, bind 0, connect 1529813, delroute 0 10.01 real 1.44 user 68.24 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38958, close 25817, bind 1755768, connect 833139, delroute 0 10.01 real 1.86 user 63.88 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 131372, close 89504, bind 2540637, connect 1286216, delroute 0 10.23 real 2.96 user 63.07 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 39066, close 91891, bind 1912332, connect 1015176, delroute 0 10.01 real 2.50 user 62.24 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 6813, close 5252, bind 411212, connect 1357352, delroute 0 0m10.00s real 0m01.59s user 1m10.56s 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 37475, close 25584, bind 1771262, connect 834745, delroute 0 0m10.01s real 0m02.16s user 1m04.10s 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 13874, close 9326, bind 0, connect 1161721, delroute 6839 0m10.00s real 0m01.07s user 1m09.51s 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 329925 1.00 real 0.12 user 0.84 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 140758 0m01.00s real 0m00.12s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m16.77s