START sys/netinet/bindconnect 2024-12-29T16:12:14Z ==== 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 490778, close 702505, bind 1617872, connect 1324500, delroute 0 10.00 real 2.61 user 28.00 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1006225, close 544769, bind 8019114, connect 0, delroute 0 10.01 real 7.31 user 72.38 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 47965, close 21226, bind 0, connect 2027219, delroute 0 10.01 real 1.66 user 69.87 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 109744, close 88713, bind 2106514, connect 1193510, delroute 0 10.01 real 2.60 user 66.98 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74958, close 83773, bind 897072, connect 610253, delroute 0 10.13 real 1.32 user 38.57 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 112329, close 333507, bind 2560740, connect 1669562, delroute 0 10.00 real 4.01 user 64.87 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 25660, close 23552, bind 522869, connect 1799994, delroute 0 10.01 real 2.15 user 71.52 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 91327, close 76434, bind 2019258, connect 1124362, delroute 0 10.01 real 2.34 user 66.62 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 36325, close 35905, bind 0, connect 1530714, delroute 17355 10.01 real 1.62 user 71.53 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 561773, close 325543, bind 7579682, connect 0, delroute 0 10.01 real 6.82 user 72.05 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 374989, close 198577, bind 0, connect 3430899, delroute 0 10.01 real 3.36 user 63.95 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 370964, close 198383, bind 1917638, connect 2067682, delroute 0 10.01 real 3.61 user 65.49 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75062, close 75714, bind 595295, connect 569199, delroute 0 10.55 real 1.04 user 28.09 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 299693, close 296033, bind 2141485, connect 2259306, delroute 0 10.01 real 3.88 user 63.97 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 324032, close 139824, bind 691525, connect 3670257, delroute 0 10.00 real 4.25 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 174348, close 129677, bind 2676581, connect 1770638, delroute 0 10.01 real 4.01 user 72.73 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 357230, close 176843, bind 0, connect 2545495, delroute 207117 10.01 real 2.54 user 69.16 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 580307, close 353610, bind 8807362, connect 0, delroute 0 10.01 real 7.96 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 7107, close 7399, bind 0, connect 1508592, delroute 0 10.01 real 1.17 user 68.18 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38920, close 29627, bind 1773370, connect 852436, delroute 0 10.01 real 1.83 user 64.55 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129400, close 105739, bind 2673336, connect 1390925, delroute 0 10.20 real 3.24 user 63.56 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 50884, close 159764, bind 2025163, connect 1176169, delroute 0 10.01 real 2.63 user 63.15 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 21977, close 8512, bind 405571, connect 1346984, delroute 0 10.01 real 1.54 user 70.34 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 38376, close 29702, bind 1746386, connect 849953, delroute 0 10.01 real 2.32 user 64.11 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 16935, close 14539, bind 0, connect 1181741, delroute 8038 10.01 real 1.13 user 70.22 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 899862, close 333354, bind 8879960, connect 0, delroute 0 10.01 real 8.09 user 71.85 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11559, close 13713, bind 0, connect 1753050, delroute 0 10.01 real 1.62 user 69.29 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 61928, close 54934, bind 1820880, connect 954321, delroute 0 10.01 real 2.19 user 66.92 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 76180, close 96025, bind 1255459, connect 788218, delroute 0 10.13 real 1.62 user 44.45 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 120889, close 372548, bind 2390486, connect 1554777, delroute 0 10.00 real 3.32 user 65.03 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 12217, close 17853, bind 448131, connect 1582099, delroute 0 0m10.00s real 0m01.75s user 1m12.03s 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 70755, close 51733, bind 1721182, connect 891704, delroute 0 0m10.01s real 0m02.03s user 1m06.99s 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 29026, close 31011, bind 0, connect 1288602, delroute 11885 0m10.01s real 0m01.37s user 1m10.86s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 558809, close 322589, bind 7462035, connect 0, delroute 0 10.01 real 6.31 user 72.92 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 340469, close 180293, bind 0, connect 3150196, delroute 0 10.01 real 2.89 user 63.39 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 327710, close 184911, bind 1794678, connect 1949152, delroute 0 10.01 real 3.08 user 64.66 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74526, close 81260, bind 666239, connect 599598, delroute 0 10.58 real 0.99 user 30.04 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 264043, close 296201, bind 2015460, connect 2154326, delroute 0 10.01 real 4.03 user 63.30 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 519397, close 209639, bind 599162, connect 3761208, delroute 0 0m10.01s real 0m04.70s user 1m11.26s 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 479356, close 243783, bind 2285921, connect 2363526, delroute 0 0m10.01s real 0m04.33s user 1m10.49s 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 297621, close 163090, bind 0, connect 2231914, delroute 135583 0m10.01s real 0m02.52s user 1m05.13s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 602562, close 319979, bind 8799661, connect 0, delroute 0 10.01 real 7.59 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 6704, close 7719, bind 0, connect 1521370, delroute 0 10.01 real 1.27 user 68.29 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 39493, close 34771, bind 1761041, connect 846064, delroute 0 10.01 real 1.81 user 64.21 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127703, close 117874, bind 2694885, connect 1405054, delroute 0 10.22 real 2.96 user 62.47 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 58018, close 231804, bind 2112172, connect 1282075, delroute 0 10.01 real 2.69 user 62.23 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 7352, close 8593, bind 418398, connect 1377020, delroute 0 0m10.00s real 0m01.59s user 1m10.54s 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 39685, close 34679, bind 1737020, connect 846976, delroute 0 0m10.01s real 0m01.94s user 1m04.18s 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 15111, close 18027, bind 0, connect 1202247, delroute 7131 0m10.01s real 0m01.17s user 1m09.87s 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 344645 1.00 real 0.16 user 0.87 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 176372 0m01.00s real 0m00.09s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.85s