START sys/netinet/bindconnect 2025-01-01T05:26:13Z ==== 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 525922, close 794624, bind 1735291, connect 1414712, delroute 0 10.00 real 3.01 user 28.11 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1128186, close 492583, bind 7480502, connect 0, delroute 0 10.00 real 7.24 user 72.64 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 40443, close 20270, bind 0, connect 2060912, delroute 0 10.01 real 2.01 user 68.72 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 103848, close 83040, bind 1960683, connect 1166438, delroute 0 10.01 real 2.59 user 65.81 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73861, close 81674, bind 882478, connect 586367, delroute 0 10.16 real 1.21 user 39.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 110971, close 322655, bind 2550925, connect 1652636, delroute 0 10.01 real 3.50 user 64.73 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 22552, close 22429, bind 521818, connect 1920207, delroute 0 10.01 real 2.28 user 71.95 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 212305, close 78460, bind 2010678, connect 1125333, delroute 0 10.01 real 2.77 user 66.29 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 37431, close 40335, bind 0, connect 1614226, delroute 18454 10.01 real 1.49 user 71.31 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 536538, close 337358, bind 7414243, connect 0, delroute 0 10.01 real 6.96 user 71.50 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 381991, close 186645, bind 0, connect 3415237, delroute 0 10.01 real 3.24 user 63.72 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 351424, close 187600, bind 1943467, connect 2047578, delroute 0 10.01 real 3.67 user 65.12 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73785, close 72350, bind 600011, connect 557650, delroute 0 10.57 real 1.05 user 29.12 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 289563, close 263929, bind 2135750, connect 2247287, delroute 0 10.01 real 4.13 user 64.53 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 361265, close 130972, bind 670023, connect 3690434, delroute 0 10.01 real 4.61 user 72.83 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 155558, close 112652, bind 2681880, connect 1765312, delroute 0 10.01 real 3.82 user 72.32 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 373555, close 169281, bind 0, connect 2594533, delroute 209113 10.01 real 2.88 user 68.88 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 549137, close 365104, bind 8878503, connect 0, delroute 0 10.01 real 7.89 user 71.86 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7434, close 7411, bind 0, connect 1593435, delroute 0 10.01 real 1.25 user 68.20 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 45115, close 32282, bind 1782219, connect 855655, delroute 0 10.01 real 2.19 user 64.06 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130744, close 106828, bind 2699958, connect 1403953, delroute 0 10.20 real 3.04 user 64.28 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 50567, close 148166, bind 2022500, connect 1159371, delroute 0 10.00 real 2.37 user 61.89 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 8193, close 9149, bind 420701, connect 1405191, delroute 0 10.00 real 1.62 user 70.43 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 39517, close 31381, bind 1770489, connect 855657, delroute 0 10.01 real 1.87 user 63.80 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 17394, close 15242, bind 0, connect 1237188, delroute 8256 10.01 real 1.20 user 69.30 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 903063, close 320300, bind 8775181, connect 0, delroute 0 10.01 real 8.16 user 71.68 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11533, close 13084, bind 0, connect 1793502, delroute 0 10.01 real 1.51 user 68.84 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 92158, close 55328, bind 1824014, connect 950138, delroute 0 10.01 real 2.05 user 66.22 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75758, close 96349, bind 1226016, connect 778308, delroute 0 10.14 real 1.74 user 44.98 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 89975, close 365573, bind 2403626, connect 1547349, delroute 0 10.01 real 3.20 user 65.56 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 13036, close 18152, bind 458513, connect 1612462, delroute 0 0m10.00s real 0m02.14s user 1m11.97s 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 60224, close 53774, bind 1771309, connect 896434, delroute 0 0m10.01s real 0m02.56s user 1m05.64s 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 25267, close 29325, bind 0, connect 1344027, delroute 11610 0m10.01s real 0m01.39s user 1m11.13s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 528808, close 319225, bind 7310646, connect 0, delroute 0 10.01 real 6.63 user 72.20 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348030, close 167577, bind 0, connect 3155898, delroute 0 10.01 real 3.09 user 62.67 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 312982, close 172662, bind 1809186, connect 1941353, delroute 0 10.01 real 3.45 user 64.52 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72782, close 74797, bind 645503, connect 607167, delroute 0 10.58 real 0.97 user 29.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 256809, close 252059, bind 1966873, connect 2097410, delroute 0 10.01 real 3.43 user 63.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 537195, close 187521, bind 586274, connect 3648801, delroute 0 0m10.00s real 0m04.69s user 1m11.55s 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 460681, close 216288, bind 2360587, connect 2420478, delroute 0 0m10.01s real 0m04.75s user 1m10.31s 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 314688, close 153407, bind 0, connect 2321712, delroute 148012 0m10.01s real 0m02.67s user 1m04.98s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 580152, close 342136, bind 8849703, connect 0, delroute 0 10.00 real 8.01 user 72.02 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7003, close 7835, bind 0, connect 1626842, delroute 0 10.01 real 1.43 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 40524, close 34950, bind 1785866, connect 846955, delroute 0 10.01 real 1.90 user 63.83 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127847, close 114713, bind 2737226, connect 1435287, delroute 0 10.22 real 3.51 user 62.82 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 60760, close 239717, bind 2166377, connect 1319797, delroute 0 10.01 real 2.63 user 62.66 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 8066, close 9107, bind 433690, connect 1431655, delroute 0 0m10.01s real 0m01.82s user 1m09.60s 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 40286, close 34615, bind 1755270, connect 848737, delroute 0 0m10.00s real 0m02.00s user 1m03.69s 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 16345, close 19555, bind 0, connect 1247859, delroute 7975 0m10.01s real 0m01.28s 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 342976 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 173618 0m01.00s real 0m00.04s user 0m00.98s system PASS sys/netinet/bindconnect Duration 8m16.89s