START sys/netinet/bindconnect 2024-12-30T17:05:39Z ==== 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 423138, close 381109, bind 1218896, connect 1015005, delroute 0 10.00 real 1.89 user 28.36 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1061153, close 381641, bind 7139330, connect 0, delroute 0 10.01 real 6.62 user 73.06 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 42177, close 15543, bind 0, connect 1916290, delroute 0 10.01 real 1.48 user 69.14 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 118611, close 63879, bind 2056933, connect 1126572, delroute 0 10.01 real 2.46 user 66.71 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70771, close 73585, bind 853177, connect 578711, delroute 0 10.13 real 1.19 user 38.83 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 77768, close 147141, bind 2215567, connect 1312283, delroute 0 10.00 real 2.88 user 65.46 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 18394, close 14742, bind 494454, connect 1735833, delroute 0 10.01 real 1.85 user 71.59 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 127271, close 57278, bind 1984005, connect 1064922, delroute 0 10.01 real 2.47 user 66.14 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 34618, close 26369, bind 0, connect 1436936, delroute 16869 10.01 real 1.50 user 70.74 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 540792, close 358916, bind 6450764, connect 0, delroute 0 10.01 real 6.12 user 71.40 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 367082, close 215643, bind 0, connect 3125924, delroute 0 10.01 real 3.00 user 63.55 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 341862, close 222450, bind 1815663, connect 1878311, delroute 0 10.01 real 3.10 user 64.36 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79394, close 87047, bind 637810, connect 580705, delroute 0 10.54 real 0.97 user 29.36 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 278018, close 368379, bind 2139163, connect 2200149, delroute 0 10.00 real 4.00 user 63.70 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 305322, close 151510, bind 632115, connect 3377259, delroute 0 10.00 real 4.06 user 72.75 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 159305, close 141673, bind 2634145, connect 1745979, delroute 0 10.01 real 4.19 user 71.91 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 352936, close 201814, bind 0, connect 2393079, delroute 173627 10.01 real 2.99 user 67.82 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 454597, close 266130, bind 8620084, connect 0, delroute 0 10.01 real 7.72 user 71.93 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5861, close 3461, bind 0, connect 1469569, delroute 0 10.01 real 1.43 user 68.15 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 33719, close 20873, bind 1722820, connect 794549, delroute 0 10.01 real 1.69 user 63.98 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 124386, close 90482, bind 2684085, connect 1359948, delroute 0 10.20 real 3.36 user 63.43 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 46953, close 56617, bind 1794536, connect 908576, delroute 0 10.00 real 2.11 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 6926, close 4754, bind 406325, connect 1285266, delroute 0 10.00 real 1.32 user 70.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 34555, close 21967, bind 1711396, connect 802969, delroute 0 10.01 real 1.89 user 64.17 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 15601, close 9477, bind 0, connect 1122229, delroute 7896 10.01 real 1.01 user 69.86 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 703946, close 229441, bind 8684374, connect 0, delroute 0 10.01 real 7.51 user 72.35 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 9498, close 7681, bind 0, connect 1672662, delroute 0 10.01 real 1.24 user 68.63 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 86847, close 38581, bind 1795672, connect 897007, delroute 0 10.01 real 2.03 user 66.46 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71683, close 84353, bind 1178002, connect 734622, delroute 0 10.13 real 1.50 user 44.41 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 58849, close 153842, bind 2049819, connect 1171193, delroute 0 10.00 real 2.49 user 66.10 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 23543, close 10535, bind 427510, connect 1481280, delroute 0 0m10.00s real 0m01.80s user 1m11.56s 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 53151, close 38787, bind 1670517, connect 830337, delroute 0 0m10.01s real 0m01.84s user 1m06.36s 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 22165, close 17940, bind 0, connect 1259824, delroute 10878 0m10.00s real 0m01.21s user 1m11.88s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 527844, close 353373, bind 6398066, connect 0, delroute 0 10.01 real 5.29 user 72.18 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 322895, close 201301, bind 0, connect 2894563, delroute 0 10.01 real 2.69 user 61.94 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 302835, close 203752, bind 1670661, connect 1743404, delroute 0 10.01 real 3.12 user 64.01 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79334, close 94213, bind 698509, connect 659064, delroute 0 10.58 real 1.07 user 31.39 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 243020, close 367784, bind 1975187, connect 2076986, delroute 0 10.00 real 3.71 user 63.08 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 488159, close 214878, bind 541618, connect 3320579, delroute 0 0m10.01s real 0m04.07s user 1m11.29s 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 440548, close 256957, bind 2178166, connect 2168771, delroute 0 0m10.01s real 0m03.78s user 1m09.84s 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 293309, close 179240, bind 0, connect 2151043, delroute 124640 0m10.01s real 0m02.10s user 1m04.78s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 493584, close 231142, bind 8494678, connect 0, delroute 0 10.01 real 7.09 user 72.68 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5213, close 3632, bind 0, connect 1464884, delroute 0 10.01 real 1.42 user 66.96 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 32573, close 22070, bind 1699157, connect 775624, delroute 0 10.01 real 2.06 user 62.92 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 122680, close 98799, bind 2707728, connect 1362180, delroute 0 10.21 real 3.25 user 63.51 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 45953, close 74184, bind 1812332, connect 929737, delroute 0 10.01 real 2.09 user 62.77 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 5755, close 4354, bind 399940, connect 1287281, delroute 0 0m10.00s real 0m01.37s user 1m09.45s 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 31021, close 20284, bind 1689524, connect 778446, delroute 0 0m10.01s real 0m01.87s user 1m03.89s 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 13486, close 8619, bind 0, connect 1108559, delroute 6552 0m10.01s real 0m01.04s user 1m09.07s 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 342607 1.00 real 0.09 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 175591 0m01.00s real 0m00.09s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.82s