START sys/netinet/bindconnect 2024-01-05T05:29:58Z ==== 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 1294663, close 1363259, bind 982334, connect 1297098, delroute 0 10.00 real 3.27 user 31.91 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 992293, close 226237, bind 8914715, connect 0, delroute 0 10.00 real 8.48 user 71.59 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 110752, close 255592, bind 0, connect 1520824, delroute 0 10.00 real 2.48 user 76.83 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 242732, close 311650, bind 1129708, connect 1164335, delroute 0 10.00 real 3.30 user 76.27 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 84558, close 83485, bind 439180, connect 268883, delroute 0 10.16 real 0.94 user 25.06 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 304303, close 826393, bind 2383712, connect 1812011, delroute 0 10.01 real 5.65 user 74.01 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 121908, close 230729, bind 108160, connect 1397593, delroute 0 10.00 real 2.67 user 76.87 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 223043, close 294674, bind 1018886, connect 1140264, delroute 0 10.01 real 3.55 user 76.23 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 142454, close 259264, bind 0, connect 1314693, delroute 61417 10.01 real 2.97 user 75.65 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 825414, close 382663, bind 1911227, connect 0, delroute 0 10.00 real 3.80 user 74.94 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 473585, close 396742, bind 0, connect 1901855, delroute 0 10.01 real 4.28 user 66.91 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 501140, close 407937, bind 917564, connect 980682, delroute 0 10.00 real 3.99 user 67.56 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 95684, close 112583, bind 381655, connect 399958, delroute 0 10.27 real 1.17 user 22.05 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 364457, close 1096988, bind 2019002, connect 2140258, delroute 0 10.01 real 6.45 user 65.30 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 448423, close 556052, bind 289855, connect 2025834, delroute 0 10.00 real 4.49 user 74.26 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 397192, close 703205, bind 1099474, connect 1413344, delroute 0 10.00 real 4.48 user 74.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 459052, close 259448, bind 0, connect 1530672, delroute 139048 10.00 real 4.31 user 70.46 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 557453, close 425419, bind 8848932, connect 0, delroute 0 10.00 real 8.36 user 71.38 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 50619, close 144791, bind 0, connect 1244022, delroute 0 10.00 real 1.64 user 77.35 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 145802, close 222597, bind 686802, connect 1057581, delroute 0 10.00 real 2.42 user 76.76 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 319797, close 236529, bind 1338406, connect 858945, delroute 0 10.32 real 4.10 user 74.70 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 188737, close 615229, bind 1635409, connect 1635731, delroute 0 10.01 real 3.99 user 75.28 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 61979, close 161096, bind 67525, connect 1217855, delroute 0 10.01 real 2.04 user 77.04 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 158284, close 248277, bind 790825, connect 1042410, delroute 0 10.00 real 2.91 user 76.42 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 93156, close 158635, bind 0, connect 1178248, delroute 37226 10.00 real 1.93 user 77.02 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 929793, close 184909, bind 9002212, connect 0, delroute 0 10.00 real 8.55 user 71.30 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 97042, close 173194, bind 0, connect 1298158, delroute 0 10.01 real 1.67 user 76.91 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 155482, close 202243, bind 586647, connect 1022611, delroute 0 10.00 real 2.23 user 76.30 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80880, close 87766, bind 445475, connect 382603, delroute 0 10.14 real 1.12 user 30.68 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 174550, close 781077, bind 1611373, connect 1876522, delroute 0 10.00 real 4.59 user 73.97 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 112400, close 254066, bind 116664, connect 1276309, delroute 0 0m10.00s real 0m03.24s user 1m15.44s 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 227389, close 314372, bind 926407, connect 965621, delroute 0 0m10.00s real 0m03.39s user 1m14.24s 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 116248, close 211087, bind 0, connect 1020502, delroute 41121 0m10.01s real 0m03.20s user 1m12.94s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 813910, close 372318, bind 1837495, connect 0, delroute 0 10.00 real 3.39 user 75.74 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 406249, close 307731, bind 0, connect 1627618, delroute 0 10.00 real 3.11 user 64.61 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 433186, close 345644, bind 826050, connect 876458, delroute 0 10.00 real 3.91 user 65.34 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 94037, close 122308, bind 431281, connect 453687, delroute 0 10.27 real 1.08 user 24.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 302830, close 1173503, bind 1951608, connect 2095796, delroute 0 10.00 real 6.07 user 62.86 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 536585, close 384054, bind 274476, connect 1780378, delroute 0 0m10.00s real 0m04.39s user 1m13.41s 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 532662, close 452722, bind 1012681, connect 1147428, delroute 0 0m10.00s real 0m04.17s user 1m12.09s 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 392577, close 217197, bind 0, connect 1398940, delroute 100326 0m10.00s real 0m04.11s user 1m06.45s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 624055, close 345477, bind 8687012, connect 0, delroute 0 10.00 real 8.05 user 71.89 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 305586, close 574513, bind 0, connect 2445531, delroute 0 10.00 real 4.90 user 74.90 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 547616, close 573404, bind 2613130, connect 1313203, delroute 0 10.01 real 5.55 user 74.44 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 503197, close 317333, bind 2294400, connect 1158558, delroute 0 10.34 real 4.81 user 74.53 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 503015, close 950953, bind 3584355, connect 1812853, delroute 0 10.01 real 6.09 user 73.64 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 350181, close 395500, bind 220602, connect 1894792, delroute 0 0m10.00s real 0m03.59s user 1m16.27s 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 551201, close 555735, bind 2593302, connect 1221454, delroute 0 0m10.00s real 0m04.95s user 1m14.84s 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 291408, close 310628, bind 0, connect 1526605, delroute 133446 0m10.00s real 0m03.60s user 1m11.42s 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 352557 1.00 real 0.21 user 0.78 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 187310 0m01.00s real 0m00.11s user 0m00.86s system PASS sys/netinet/bindconnect Duration 8m16.55s