START sys/netinet/bindconnect 2024-12-26T19:35:49Z ==== 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 392868, close 354300, bind 1213383, connect 973997, delroute 0 10.01 real 1.98 user 28.06 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 853019, close 394158, bind 7691012, connect 0, delroute 0 10.01 real 6.50 user 73.19 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 14272, close 11672, bind 0, connect 1731999, delroute 0 10.01 real 1.42 user 67.65 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 68604, close 48027, bind 1789695, connect 966367, delroute 0 10.01 real 1.98 user 64.06 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70049, close 71375, bind 927331, connect 618508, delroute 0 10.14 real 1.19 user 39.99 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 63171, close 117157, bind 1957049, connect 1173830, delroute 0 10.00 real 2.38 user 64.30 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 14180, close 11827, bind 430637, connect 1550856, delroute 0 10.01 real 1.46 user 69.73 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 71843, close 41340, bind 1670894, connect 907967, delroute 0 10.01 real 1.81 user 63.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 25291, close 16273, bind 0, connect 1254789, delroute 12759 10.01 real 1.25 user 69.57 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 492446, close 293269, bind 6939215, connect 0, delroute 0 10.01 real 5.87 user 72.09 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 342586, close 164012, bind 0, connect 3174066, delroute 0 10.01 real 3.17 user 62.10 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 308165, close 169836, bind 1817837, connect 1912723, delroute 0 10.01 real 3.45 user 63.54 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73689, close 67725, bind 584262, connect 541658, delroute 0 10.54 real 0.86 user 28.42 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 263954, close 235750, bind 1951626, connect 2053472, delroute 0 10.01 real 3.45 user 62.42 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 312163, close 107617, bind 644774, connect 3487646, delroute 0 10.01 real 4.08 user 72.59 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 143827, close 102666, bind 2643534, connect 1758170, delroute 0 10.01 real 3.71 user 72.11 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 337923, close 154908, bind 0, connect 2413458, delroute 187729 10.01 real 2.68 user 67.22 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 408625, close 249333, bind 8709657, connect 0, delroute 0 10.01 real 7.49 user 72.31 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 26603, close 2252, bind 0, connect 1228937, delroute 0 10.01 real 1.13 user 65.44 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 23643, close 14931, bind 1452223, connect 694138, delroute 0 10.01 real 1.43 user 61.19 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 106194, close 80995, bind 2421143, connect 1284524, delroute 0 10.17 real 2.89 user 61.50 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 21858, close 40597, bind 1515416, connect 789115, delroute 0 10.00 real 1.63 user 61.13 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 4403, close 2708, bind 328131, connect 1101016, delroute 0 10.00 real 1.03 user 67.49 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 23635, close 14636, bind 1433576, connect 698978, delroute 0 10.01 real 1.55 user 61.13 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 11267, close 6206, bind 0, connect 944852, delroute 5588 10.01 real 0.85 user 67.09 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 696963, close 254712, bind 8903098, connect 0, delroute 0 10.01 real 7.56 user 72.44 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 8322, close 6549, bind 0, connect 1466326, delroute 0 10.01 real 1.25 user 66.65 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 44627, close 32050, bind 1550909, connect 807914, delroute 0 10.01 real 1.70 user 64.42 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70899, close 81281, bind 1226936, connect 780519, delroute 0 10.14 real 1.29 user 45.35 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 48262, close 126337, bind 1750932, connect 1020757, delroute 0 10.00 real 2.06 user 64.12 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 9574, close 8896, bind 364525, connect 1276584, delroute 0 0m10.01s real 0m01.60s user 1m10.08s 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 65848, close 32217, bind 1491729, connect 767909, delroute 0 0m10.01s real 0m01.82s user 1m04.12s 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 21091, close 17771, bind 0, connect 1100611, delroute 9184 0m10.01s real 0m01.05s user 1m09.41s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 481939, close 291877, bind 6826263, connect 0, delroute 0 10.01 real 5.78 user 71.94 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 312490, close 151825, bind 0, connect 2908261, delroute 0 10.01 real 2.89 user 61.57 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 285756, close 158463, bind 1649314, connect 1775017, delroute 0 10.01 real 2.70 user 62.85 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73470, close 74002, bind 640207, connect 605520, delroute 0 10.60 real 0.98 user 29.91 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 236465, close 238909, bind 1835224, connect 1950966, delroute 0 10.00 real 3.34 user 61.90 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 476314, close 180875, bind 573738, connect 3533038, delroute 0 0m10.01s real 0m04.27s user 1m10.97s 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 422191, close 213449, bind 2258103, connect 2303882, delroute 0 0m10.01s real 0m04.29s user 1m10.19s 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 284530, close 144262, bind 0, connect 2166852, delroute 134078 0m10.01s real 0m02.41s user 1m03.73s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 439274, close 225162, bind 8845057, connect 0, delroute 0 10.01 real 7.04 user 72.85 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 3240, close 2072, bind 0, connect 1188925, delroute 0 10.01 real 0.79 user 65.50 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 22615, close 15160, bind 1429137, connect 670918, delroute 0 10.01 real 1.51 user 60.79 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101898, close 90183, bind 2420812, connect 1305263, delroute 0 10.16 real 2.80 user 60.24 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 23283, close 48598, bind 1519539, connect 783156, delroute 0 10.01 real 1.29 user 60.54 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 3950, close 3087, bind 325048, connect 1075634, delroute 0 0m10.01s real 0m01.10s user 1m07.75s 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 22103, close 14400, bind 1429482, connect 678360, delroute 0 0m10.01s real 0m01.63s user 1m01.20s 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 9665, close 6454, bind 0, connect 923379, delroute 4836 0m10.01s real 0m00.90s user 1m07.47s 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 341605 1.00 real 0.14 user 0.88 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 172285 0m01.00s real 0m00.15s user 0m00.85s system PASS sys/netinet/bindconnect Duration 8m16.80s