START sys/netinet/bindconnect 2025-01-06T05:18:42Z ==== 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 456028, close 582671, bind 1470173, connect 1178443, delroute 0 10.00 real 2.45 user 27.43 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 917809, close 515958, bind 7919581, connect 0, delroute 0 10.00 real 7.79 user 71.83 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 17543, close 17495, bind 0, connect 1763857, delroute 0 10.01 real 1.36 user 67.68 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 112628, close 58738, bind 1721956, connect 991257, delroute 0 10.01 real 1.93 user 63.61 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73427, close 82290, bind 964605, connect 635889, delroute 0 10.12 real 1.29 user 41.05 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 87810, close 255779, bind 2127898, connect 1392941, delroute 0 10.00 real 2.85 user 63.12 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 23991, close 17382, bind 433750, connect 1587256, delroute 0 10.01 real 1.86 user 70.33 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 99728, close 60787, bind 1728329, connect 952745, delroute 0 10.01 real 2.23 user 63.75 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 43159, close 31649, bind 0, connect 1319190, delroute 14273 10.01 real 1.48 user 68.91 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 528270, close 375756, bind 6700788, connect 0, delroute 0 10.01 real 5.77 user 71.49 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348942, close 204678, bind 0, connect 2955131, delroute 0 10.01 real 2.84 user 61.98 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 318665, close 212036, bind 1730268, connect 1782701, delroute 0 10.01 real 3.38 user 62.65 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79740, close 84432, bind 637337, connect 577873, delroute 0 10.55 real 1.06 user 28.69 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 262043, close 369297, bind 2002494, connect 2070786, delroute 0 10.01 real 3.90 user 62.59 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 319047, close 150760, bind 631014, connect 3344862, delroute 0 10.01 real 4.09 user 72.84 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 160505, close 146439, bind 2582965, connect 1734085, delroute 0 10.01 real 3.99 user 71.99 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 339914, close 192156, bind 0, connect 2291513, delroute 172642 10.01 real 2.59 user 67.96 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 485072, close 330465, bind 8721873, connect 0, delroute 0 10.01 real 7.34 user 72.39 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 4410, close 3544, bind 0, connect 1265335, delroute 0 10.01 real 1.17 user 65.42 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 26650, close 21230, bind 1455265, connect 710094, delroute 0 10.00 real 1.70 user 61.38 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 109627, close 97248, bind 2395048, connect 1305296, delroute 0 10.17 real 2.79 user 61.76 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 37195, close 125576, bind 1668434, connect 989033, delroute 0 10.00 real 1.96 user 60.72 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 5510, close 5534, bind 334838, connect 1154351, delroute 0 10.00 real 1.17 user 67.64 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 29800, close 23658, bind 1487815, connect 744979, delroute 0 10.01 real 1.73 user 61.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 11887, close 9906, bind 0, connect 966381, delroute 5664 10.01 real 0.85 user 67.22 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 789894, close 301206, bind 8820043, connect 0, delroute 0 10.01 real 8.38 user 71.50 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10003, close 10802, bind 0, connect 1512955, delroute 0 10.01 real 1.21 user 66.40 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 71514, close 47508, bind 1569767, connect 823338, delroute 0 10.01 real 1.90 user 64.60 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73382, close 89679, bind 1206292, connect 756497, delroute 0 10.13 real 1.60 user 45.13 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 70329, close 280293, bind 1994772, connect 1268543, delroute 0 10.00 real 2.59 user 63.50 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 11281, close 14856, bind 385749, connect 1382472, delroute 0 0m10.00s real 0m01.69s user 1m09.65s 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 50187, close 44794, bind 1497085, connect 772364, delroute 0 0m10.01s real 0m02.09s user 1m04.08s 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 23391, close 25468, bind 0, connect 1125417, delroute 10509 0m10.01s real 0m01.25s user 1m08.79s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 522393, close 374905, bind 6610091, connect 0, delroute 0 10.00 real 5.58 user 71.69 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 312184, close 189770, bind 0, connect 2768879, delroute 0 10.01 real 2.73 user 61.20 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 289322, close 195807, bind 1560915, connect 1648438, delroute 0 10.01 real 2.95 user 62.32 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80342, close 97004, bind 694338, connect 646594, delroute 0 10.58 real 1.17 user 31.86 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 235371, close 360214, bind 1897003, connect 1981679, delroute 0 10.00 real 3.67 user 61.84 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 486463, close 212927, bind 538589, connect 3314427, delroute 0 0m10.01s real 0m04.14s user 1m10.68s 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 436436, close 258244, bind 2120952, connect 2139999, delroute 0 0m10.00s real 0m04.22s user 1m09.09s 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 285824, close 176176, bind 0, connect 2095546, delroute 122403 0m10.01s real 0m02.30s user 1m03.76s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 508894, close 320437, bind 8847166, connect 0, delroute 0 10.00 real 7.69 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 4428, close 5231, bind 0, connect 1300839, delroute 0 10.01 real 0.97 user 65.88 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 27145, close 23919, bind 1469295, connect 713603, delroute 0 10.01 real 1.58 user 61.82 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 106776, close 108691, bind 2455637, connect 1338731, delroute 0 10.17 real 2.67 user 60.29 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 40293, close 166326, bind 1727536, connect 1049418, delroute 0 10.00 real 2.10 user 60.31 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 5256, close 5563, bind 331439, connect 1132388, delroute 0 0m10.00s real 0m01.34s user 1m06.94s 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 26539, close 23200, bind 1450553, connect 708900, delroute 0 0m10.01s real 0m01.39s user 1m01.05s 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 11350, close 12587, bind 0, connect 992961, delroute 5379 0m10.01s real 0m01.06s user 1m07.53s 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 342576 1.00 real 0.13 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 172966 0m01.00s real 0m00.13s user 0m00.88s system PASS sys/netinet/bindconnect Duration 8m16.76s