START sys/netinet/bindconnect 2024-05-25T04:48:55Z ==== 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 563280, close 948278, bind 2039635, connect 1485268, delroute 0 10.01 real 3.88 user 29.16 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 921405, close 267627, bind 8802944, connect 0, delroute 0 10.01 real 7.99 user 72.00 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 16344, close 16150, bind 0, connect 3076650, delroute 0 10.01 real 3.34 user 72.91 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 138660, close 87824, bind 3416557, connect 1797591, delroute 0 10.01 real 5.38 user 72.47 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 67308, close 57457, bind 812253, connect 501440, delroute 0 10.12 real 1.25 user 40.96 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 133472, close 250228, bind 4045111, connect 2205603, delroute 0 10.00 real 6.04 user 72.22 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 43254, close 22943, bind 644059, connect 2710458, delroute 0 10.01 real 4.50 user 73.96 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 146953, close 91382, bind 3482492, connect 1699245, delroute 0 10.01 real 5.51 user 71.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 39024, close 35069, bind 0, connect 2529053, delroute 21135 10.01 real 3.83 user 74.84 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 823762, close 309342, bind 1496943, connect 0, delroute 0 10.01 real 3.16 user 75.71 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 496321, close 360502, bind 0, connect 1701885, delroute 0 10.01 real 3.86 user 67.79 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 518694, close 382016, bind 828220, connect 900476, delroute 0 10.01 real 3.61 user 68.54 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 97419, close 118603, bind 390052, connect 412206, delroute 0 10.58 real 1.25 user 22.73 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 366482, close 1079231, bind 1974455, connect 2109690, delroute 0 10.00 real 6.47 user 65.49 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 446737, close 563111, bind 280951, connect 1981258, delroute 0 10.01 real 4.38 user 74.42 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 411696, close 640083, bind 1034789, connect 1306419, delroute 0 10.01 real 4.35 user 74.14 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 465854, close 241993, bind 0, connect 1397221, delroute 138931 10.01 real 4.61 user 69.64 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 519782, close 356991, bind 9033243, connect 0, delroute 0 10.01 real 8.00 user 71.87 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 15609, close 12251, bind 0, connect 2925518, delroute 0 10.01 real 3.21 user 73.65 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 69291, close 50362, bind 3570100, connect 1527710, delroute 0 10.01 real 5.03 user 71.21 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 158517, close 103834, bind 4522837, connect 1941051, delroute 0 10.26 real 5.89 user 70.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 91342, close 205346, bind 3868036, connect 1967387, delroute 0 10.00 real 5.83 user 71.42 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 31656, close 14670, bind 644246, connect 2459294, delroute 0 10.01 real 3.67 user 74.39 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 67989, close 48516, bind 3474896, connect 1513373, delroute 0 10.01 real 5.02 user 71.93 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 37359, close 17375, bind 0, connect 2208449, delroute 11779 10.01 real 3.25 user 75.05 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 882042, close 214571, bind 8934726, connect 0, delroute 0 10.01 real 8.06 user 72.04 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7979, close 11816, bind 0, connect 2448943, delroute 0 10.01 real 3.14 user 70.85 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 90528, close 55412, bind 2940111, connect 1343928, delroute 0 10.01 real 4.24 user 70.39 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72006, close 79358, bind 1328952, connect 720610, delroute 0 10.17 real 2.28 user 45.83 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 141529, close 343552, bind 3603326, connect 2023600, delroute 0 10.00 real 5.86 user 69.48 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 52731, close 9327, bind 516964, connect 2092542, delroute 0 0m10.01s real 0m04.06s user 1m12.48s 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 58587, close 53583, bind 2780361, connect 1234494, delroute 0 0m10.01s real 0m04.51s user 1m09.60s 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 32930, close 18063, bind 0, connect 1961009, delroute 7690 0m10.01s real 0m03.58s user 1m12.05s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 812215, close 312122, bind 1489971, connect 0, delroute 0 10.01 real 2.78 user 75.78 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 416472, close 297689, bind 0, connect 1509145, delroute 0 10.01 real 3.48 user 65.35 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 446277, close 322095, bind 750325, connect 808045, delroute 0 10.01 real 3.19 user 66.20 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 95751, close 127302, bind 442682, connect 461552, delroute 0 10.64 real 1.24 user 24.68 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 308895, close 1133192, bind 1913935, connect 2052806, delroute 0 10.00 real 5.51 user 63.62 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 543056, close 378872, bind 265403, connect 1734164, delroute 0 0m10.01s real 0m03.91s user 1m13.35s 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 558755, close 400746, bind 866280, connect 995542, delroute 0 0m10.01s real 0m03.60s user 1m13.14s 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 383323, close 221755, bind 0, connect 1386484, delroute 99052 0m10.01s real 0m04.27s user 1m06.63s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 546286, close 306795, bind 8811987, connect 0, delroute 0 10.01 real 8.18 user 71.74 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11425, close 12569, bind 0, connect 2903899, delroute 0 10.01 real 3.43 user 73.55 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 142787, close 54522, bind 3490717, connect 1454374, delroute 0 10.01 real 4.75 user 72.21 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 162597, close 85720, bind 4318715, connect 1767883, delroute 0 10.28 real 5.53 user 70.80 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 91441, close 270636, bind 3927163, connect 2038511, delroute 0 10.01 real 6.00 user 70.74 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 38503, close 15412, bind 632139, connect 2471428, delroute 0 0m10.01s real 0m03.76s user 1m14.47s 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 74167, close 54103, bind 3457520, connect 1477005, delroute 0 0m10.01s real 0m05.23s user 1m11.36s 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 22444, close 22617, bind 0, connect 2186591, delroute 12154 0m10.01s real 0m03.19s user 1m14.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 349011 1.00 real 0.14 user 0.89 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 180064 0m01.01s real 0m00.11s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m17.04s