START sys/netinet/bindconnect 2024-12-20T23:35:25Z ==== 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 423789, close 373543, bind 1221993, connect 1000642, delroute 0 10.00 real 2.20 user 28.34 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 936538, close 405814, bind 7499473, connect 0, delroute 0 10.01 real 6.97 user 72.67 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 20236, close 15127, bind 0, connect 1889184, delroute 0 10.01 real 1.85 user 69.13 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 82707, close 54679, bind 1807316, connect 1083283, delroute 0 10.02 real 2.34 user 65.53 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72860, close 78146, bind 894780, connect 610909, delroute 0 10.13 real 1.27 user 39.57 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 81840, close 143132, bind 2220397, connect 1339702, delroute 0 10.00 real 2.55 user 65.73 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 17015, close 14045, bind 465330, connect 1702733, delroute 0 10.01 real 2.00 user 72.26 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 83059, close 56971, bind 1952493, connect 1072877, delroute 0 10.01 real 2.62 user 65.74 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 32092, close 25181, bind 0, connect 1455852, delroute 16373 10.01 real 1.49 user 71.06 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 630233, close 468478, bind 2653901, connect 0, delroute 0 10.01 real 2.29 user 66.84 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 351715, close 400548, bind 0, connect 1951245, delroute 0 10.01 real 1.99 user 62.81 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 367843, close 415954, bind 975944, connect 975181, delroute 0 10.01 real 2.18 user 62.03 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103855, close 124092, bind 402595, connect 416952, delroute 0 10.56 real 0.65 user 23.88 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 302780, close 990730, bind 1746456, connect 1807834, delroute 0 10.00 real 3.68 user 61.80 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 356549, close 537539, bind 324075, connect 2012563, delroute 0 10.01 real 2.62 user 70.22 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 355652, close 661818, bind 1104235, connect 1188528, delroute 0 10.01 real 2.53 user 68.15 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 344097, close 281996, bind 0, connect 1740234, delroute 145102 10.01 real 1.86 user 67.38 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 427179, close 245627, bind 8694693, connect 0, delroute 0 10.01 real 7.35 user 72.55 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6144, close 4317, bind 0, connect 1458062, delroute 0 10.01 real 1.08 user 67.72 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 31222, close 20724, bind 1682527, connect 811796, delroute 0 10.01 real 1.88 user 63.54 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 119087, close 88405, bind 2644393, connect 1395298, delroute 0 10.19 real 3.05 user 63.72 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 31551, close 65603, bind 1786852, connect 936605, delroute 0 10.00 real 2.06 user 62.80 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 5917, close 4302, bind 380795, connect 1292632, delroute 0 10.01 real 1.40 user 69.77 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 31332, close 20168, bind 1664136, connect 807816, delroute 0 10.01 real 1.78 user 63.92 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 79066, close 8566, bind 0, connect 1124114, delroute 6882 10.01 real 1.22 user 69.36 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 695167, close 257628, bind 8911526, connect 0, delroute 0 10.01 real 7.63 user 72.31 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10355, close 8855, bind 0, connect 1624277, delroute 0 10.01 real 1.56 user 68.14 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 70350, close 38284, bind 1695807, connect 878301, delroute 0 10.01 real 2.22 user 66.24 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71938, close 84928, bind 1221808, connect 763469, delroute 0 10.13 real 1.40 user 44.23 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 59091, close 78724, bind 1842018, connect 1012454, delroute 0 10.00 real 2.18 user 66.12 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 10968, close 10125, bind 408513, connect 1436001, delroute 0 0m10.01s real 0m01.56s user 1m12.27s 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 77732, close 38438, bind 1623527, connect 825506, delroute 0 0m10.01s real 0m01.96s user 1m06.37s 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 21659, close 17660, bind 0, connect 1230665, delroute 10671 0m10.01s real 0m01.29s user 1m10.68s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 617555, close 466348, bind 2644769, connect 0, delroute 0 10.01 real 2.60 user 66.97 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 292869, close 352584, bind 0, connect 1825257, delroute 0 10.01 real 1.71 user 60.27 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 312773, close 355129, bind 885121, connect 912351, delroute 0 10.01 real 1.84 user 61.00 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101415, close 134315, bind 464451, connect 479635, delroute 0 10.54 real 0.90 user 26.22 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 257361, close 1059447, bind 1725811, connect 1834308, delroute 0 10.00 real 3.46 user 61.27 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 380741, close 426881, bind 342814, connect 2080716, delroute 0 0m10.01s real 0m02.84s user 1m08.38s 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 412520, close 488757, bind 1134173, connect 1155609, delroute 0 0m10.01s real 0m02.16s user 1m04.42s 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 291394, close 249862, bind 0, connect 1600389, delroute 98557 0m10.01s real 0m01.91s user 1m04.70s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 461151, close 227790, bind 8719595, connect 0, delroute 0 10.01 real 8.31 user 71.50 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 4923, close 3077, bind 0, connect 1437507, delroute 0 10.01 real 1.10 user 68.07 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 31059, close 21366, bind 1663972, connect 783671, delroute 0 10.01 real 1.83 user 63.68 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 117787, close 97239, bind 2635656, connect 1389619, delroute 0 10.21 real 3.00 user 63.76 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 32713, close 71118, bind 1781643, connect 936201, delroute 0 10.01 real 2.12 user 62.81 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 5608, close 4514, bind 386014, connect 1293195, delroute 0 0m10.01s real 0m01.56s user 1m09.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 30833, close 20983, bind 1642432, connect 787935, delroute 0 0m10.01s real 0m02.21s user 1m03.46s 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 13253, close 8751, bind 0, connect 1103441, delroute 6836 0m10.01s real 0m01.01s user 1m08.90s 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 339659 1.00 real 0.13 user 0.87 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 169572 0m01.00s real 0m00.09s user 0m00.91s system PASS sys/netinet/bindconnect Duration 8m16.79s