START sys/netinet/bindconnect 2024-12-15T05:12:40Z ==== 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 402174, close 372485, bind 1205366, connect 993023, delroute 0 10.01 real 2.02 user 28.39 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1107852, close 359340, bind 7131767, connect 0, delroute 0 10.00 real 6.73 user 73.37 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 138904, close 14094, bind 0, connect 1963053, delroute 0 10.02 real 1.76 user 70.05 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 92653, close 57508, bind 2042386, connect 1123948, delroute 0 10.01 real 2.80 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 71033, close 69787, bind 832218, connect 549857, delroute 0 10.13 real 1.13 user 38.17 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 87233, close 163442, bind 2304459, connect 1376293, delroute 0 10.01 real 3.07 user 65.96 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 20182, close 15703, bind 520254, connect 1788537, delroute 0 10.01 real 2.01 user 72.48 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 88896, close 60182, bind 1998157, connect 1073228, delroute 0 10.01 real 2.58 user 66.65 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 36639, close 27970, bind 0, connect 1498785, delroute 18768 10.01 real 1.52 user 71.43 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 657359, close 468826, bind 2717685, connect 0, delroute 0 10.00 real 2.62 user 67.17 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 355993, close 377428, bind 0, connect 1869194, delroute 0 10.01 real 2.00 user 62.36 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 375450, close 398116, bind 985169, connect 956595, delroute 0 10.01 real 2.01 user 62.77 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 102633, close 128645, bind 403194, connect 416366, delroute 0 10.53 real 0.74 user 24.00 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 310470, close 951484, bind 1771055, connect 1782479, delroute 0 10.00 real 3.69 user 62.23 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 362113, close 544841, bind 338038, connect 2039743, delroute 0 10.01 real 2.66 user 71.30 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 369361, close 628987, bind 1109088, connect 1150038, delroute 0 10.00 real 2.25 user 68.46 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 348604, close 287041, bind 0, connect 1721652, delroute 150460 10.01 real 2.21 user 67.81 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 554837, close 256213, bind 8347515, connect 0, delroute 0 10.01 real 7.18 user 72.83 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6729, close 4251, bind 0, connect 1496612, delroute 0 10.01 real 1.18 user 68.92 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38188, close 25739, bind 1767173, connect 861229, delroute 0 10.01 real 1.97 user 64.23 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128132, close 89705, bind 2622904, connect 1361185, delroute 0 10.20 real 3.13 user 64.14 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 39565, close 85322, bind 1898856, connect 1032571, delroute 0 10.01 real 2.30 user 63.58 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 7382, close 5387, bind 406210, connect 1359649, delroute 0 10.00 real 1.54 user 70.76 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 46840, close 24814, bind 1728573, connect 853100, delroute 0 10.01 real 2.01 user 63.70 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 16754, close 10696, bind 0, connect 1169076, delroute 8610 10.01 real 1.02 user 70.66 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 776916, close 243752, bind 8787947, connect 0, delroute 0 10.01 real 7.73 user 72.13 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10691, close 9198, bind 0, connect 1696522, delroute 0 10.01 real 1.57 user 69.35 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 58671, close 41619, bind 1813836, connect 930403, delroute 0 10.01 real 2.35 user 66.77 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71096, close 79891, bind 1091802, connect 674756, delroute 0 10.14 real 1.42 user 42.04 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 67623, close 194953, bind 2136681, connect 1270821, delroute 0 10.01 real 2.67 user 66.27 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 10587, close 10224, bind 438697, connect 1510944, delroute 0 0m10.00s real 0m01.69s user 1m12.29s 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 77212, close 40999, bind 1696620, connect 852270, delroute 0 0m10.01s real 0m02.07s user 1m06.82s 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 21654, close 18157, bind 0, connect 1258287, delroute 10879 0m10.01s real 0m01.31s user 1m11.31s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 650569, close 477611, bind 2696850, connect 0, delroute 0 10.01 real 2.59 user 67.29 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 300246, close 332904, bind 0, connect 1762670, delroute 0 10.01 real 1.73 user 61.22 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 323628, close 372162, bind 909459, connect 918880, delroute 0 10.01 real 1.88 user 61.52 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 98252, close 123003, bind 441273, connect 445485, delroute 0 10.59 real 1.01 user 24.65 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 266250, close 1072015, bind 1811207, connect 1899880, delroute 0 10.01 real 3.67 user 61.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 393778, close 439509, bind 357287, connect 2121957, delroute 0 0m10.00s real 0m02.42s user 1m09.14s 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 428057, close 483651, bind 1141008, connect 1131254, delroute 0 0m10.01s real 0m02.72s user 1m04.40s 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 291927, close 276822, bind 0, connect 1635361, delroute 98288 0m10.00s real 0m01.78s user 1m05.10s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 527129, close 249259, bind 8547764, connect 0, delroute 0 10.01 real 7.26 user 72.60 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6239, close 4911, bind 0, connect 1516720, delroute 0 10.01 real 1.19 user 68.13 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38139, close 25971, bind 1759632, connect 828052, delroute 0 10.01 real 2.09 user 63.85 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127149, close 99958, bind 2678696, connect 1402159, delroute 0 10.22 real 3.24 user 63.19 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 36451, close 80107, bind 1857438, connect 986458, delroute 0 10.00 real 2.29 user 63.18 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 6886, close 5784, bind 410945, connect 1359406, delroute 0 0m10.00s real 0m01.67s user 1m10.72s 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 35692, close 24296, bind 1741789, connect 840794, delroute 0 0m10.01s real 0m01.96s 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 13207, close 10225, bind 0, connect 1191954, delroute 6862 0m10.01s real 0m01.26s user 1m10.18s 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 345712 1.00 real 0.09 user 0.91 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 172047 0m01.00s real 0m00.07s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.86s