START sys/netinet/bindconnect 2024-12-31T05:23: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 500277, close 774663, bind 1714550, connect 1390105, delroute 0 10.01 real 2.88 user 28.42 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1154057, close 517163, bind 7731892, connect 0, delroute 0 10.01 real 7.42 user 72.44 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 22042, close 20761, bind 0, connect 2028892, delroute 0 10.01 real 1.84 user 69.26 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 109496, close 90552, bind 2127109, connect 1128615, delroute 0 10.01 real 2.47 user 66.53 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74229, close 81891, bind 890372, connect 590560, delroute 0 10.12 real 1.17 user 39.37 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 110068, close 325927, bind 2515327, connect 1645195, delroute 0 10.01 real 3.33 user 65.74 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 19469, close 21631, bind 500133, connect 1837525, delroute 0 10.01 real 2.14 user 72.17 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 87871, close 76901, bind 2030213, connect 1113172, delroute 0 10.01 real 2.35 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 36898, close 37298, bind 0, connect 1518145, delroute 18143 10.01 real 1.40 user 71.38 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 537019, close 349010, bind 7545343, connect 0, delroute 0 10.01 real 7.03 user 71.69 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 379352, close 191811, bind 0, connect 3469786, delroute 0 10.01 real 3.69 user 63.82 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 348778, close 194667, bind 1988718, connect 2123522, delroute 0 10.01 real 3.60 user 65.50 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73242, close 71382, bind 599774, connect 567049, delroute 0 10.54 real 0.98 user 28.41 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 289693, close 295058, bind 2173188, connect 2313206, delroute 0 10.00 real 4.19 user 63.43 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 350986, close 138262, bind 697237, connect 3764982, delroute 0 10.01 real 4.48 user 73.49 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 160666, close 119781, bind 2692265, connect 1763194, delroute 0 10.01 real 4.08 user 72.61 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 366723, close 172078, bind 0, connect 2655040, delroute 220523 10.01 real 2.84 user 69.05 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 547606, close 366689, bind 8954742, connect 0, delroute 0 10.00 real 7.79 user 72.09 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7190, close 7242, bind 0, connect 1510588, delroute 0 10.01 real 1.27 user 68.21 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 39286, close 31839, bind 1782972, connect 873423, delroute 0 10.01 real 2.09 user 64.02 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129291, close 106054, bind 2714984, connect 1417474, delroute 0 10.21 real 3.04 user 63.65 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 50258, close 157552, bind 2019626, connect 1170818, delroute 0 10.01 real 2.16 user 63.01 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 7633, close 9150, bind 406822, connect 1371065, delroute 0 10.01 real 1.40 user 70.43 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 38189, close 30137, bind 1759473, connect 864610, delroute 0 10.01 real 2.08 user 64.08 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 16236, close 13792, bind 0, connect 1172229, delroute 7915 10.00 real 1.02 user 69.88 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 924621, close 338669, bind 8829100, connect 0, delroute 0 10.01 real 7.36 user 72.50 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11367, close 13451, bind 0, connect 1744685, delroute 0 10.01 real 1.35 user 69.70 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 60931, close 58392, bind 1847530, connect 966942, delroute 0 10.01 real 2.29 user 67.05 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 76752, close 99150, bind 1295145, connect 812602, delroute 0 10.13 real 1.75 user 44.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 100489, close 399077, bind 2408080, connect 1575954, delroute 0 10.01 real 3.40 user 65.07 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 12353, close 15329, bind 442348, connect 1565517, delroute 0 0m10.01s real 0m02.02s user 1m11.95s 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 107826, close 52892, bind 1725675, connect 879937, delroute 0 0m10.00s real 0m02.06s user 1m06.68s 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 25168, close 31619, bind 0, connect 1305295, delroute 11750 0m10.01s real 0m01.28s user 1m11.40s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 529534, close 330690, bind 7469166, connect 0, delroute 0 10.01 real 6.59 user 72.48 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 347975, close 172547, bind 0, connect 3209643, delroute 0 10.01 real 3.10 user 62.49 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 314835, close 176204, bind 1792890, connect 1952196, delroute 0 10.01 real 3.27 user 64.39 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74130, close 82346, bind 663308, connect 627640, delroute 0 10.57 real 1.13 user 29.35 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 258626, close 282124, bind 2003938, connect 2172392, delroute 0 10.00 real 3.53 user 63.09 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 534090, close 198893, bind 610982, connect 3838480, delroute 0 0m10.00s real 0m05.11s user 1m11.23s 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 462347, close 241351, bind 2327935, connect 2436856, delroute 0 0m10.01s real 0m04.82s user 1m10.58s 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 311603, close 158692, bind 0, connect 2360135, delroute 148901 0m10.01s real 0m02.64s user 1m05.02s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 633432, close 338389, bind 8785094, connect 0, delroute 0 10.00 real 7.68 user 72.21 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 13175, close 9441, bind 0, connect 1553281, delroute 0 10.01 real 1.38 user 68.52 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38962, close 35926, bind 1786372, connect 861776, delroute 0 10.01 real 1.88 user 63.60 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127773, close 118391, bind 2753463, connect 1461288, delroute 0 10.22 real 3.09 user 63.71 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 60857, close 250322, bind 2151793, connect 1334647, delroute 0 10.01 real 2.76 user 62.44 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 23698, close 8990, bind 416561, connect 1356198, delroute 0 0m10.00s real 0m01.73s user 1m10.25s 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 37678, close 33107, bind 1760573, connect 858888, delroute 0 0m10.00s real 0m02.04s user 1m04.06s 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 15018, close 19205, bind 0, connect 1209312, delroute 7140 0m10.00s real 0m01.11s user 1m09.77s 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 346468 1.00 real 0.11 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 172671 0m01.00s real 0m00.09s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.83s