START sys/netinet/bindconnect 2025-01-01T15:59:28Z ==== 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 480721, close 674913, bind 1585020, connect 1287357, delroute 0 10.00 real 2.79 user 27.95 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1022190, close 563671, bind 7955945, connect 0, delroute 0 10.01 real 7.58 user 72.22 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 21982, close 22592, bind 0, connect 2062593, delroute 0 10.01 real 1.79 user 69.60 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 134642, close 83823, bind 1951803, connect 1176194, delroute 0 10.01 real 2.41 user 66.15 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 76188, close 89138, bind 858421, connect 567703, delroute 0 10.15 real 1.29 user 37.67 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 115104, close 344432, bind 2542575, connect 1684182, delroute 0 10.01 real 3.61 user 65.23 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 45203, close 24350, bind 509975, connect 1834948, delroute 0 10.01 real 2.27 user 71.43 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 90806, close 78284, bind 2010114, connect 1115701, delroute 0 10.01 real 2.75 user 66.27 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 36213, close 39380, bind 0, connect 1569374, delroute 17465 10.01 real 1.45 user 71.44 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 578714, close 372829, bind 7324359, connect 0, delroute 0 10.01 real 6.77 user 72.11 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 371170, close 229076, bind 0, connect 3262069, delroute 0 10.01 real 2.83 user 64.91 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 359105, close 238267, bind 1924407, connect 2025767, delroute 0 10.01 real 3.16 user 65.11 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79849, close 89358, bind 666022, connect 606540, delroute 0 10.55 real 1.15 user 29.61 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 282584, close 402594, bind 2267035, connect 2351221, delroute 0 10.01 real 4.59 user 63.33 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 336950, close 170380, bind 679625, connect 3703054, delroute 0 10.01 real 4.52 user 72.98 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 176084, close 152368, bind 2705006, connect 1790361, delroute 0 10.01 real 4.16 user 72.47 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 349145, close 209782, bind 0, connect 2449727, delroute 181459 10.01 real 2.88 user 68.69 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 583533, close 359804, bind 8842563, connect 0, delroute 0 10.00 real 7.45 user 72.40 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6769, close 5531, bind 0, connect 1513982, delroute 0 10.01 real 1.36 user 67.76 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38558, close 30973, bind 1788386, connect 864274, delroute 0 10.01 real 2.00 user 64.23 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128519, close 107693, bind 2738916, connect 1421212, delroute 0 10.20 real 3.22 user 64.10 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 51192, close 172752, bind 2031335, connect 1182021, delroute 0 10.01 real 2.31 user 62.81 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 7794, close 8567, bind 414293, connect 1374629, delroute 0 10.01 real 1.52 user 70.86 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 37380, close 29698, bind 1740305, connect 846048, delroute 0 10.01 real 1.87 user 64.04 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 17358, close 15451, bind 0, connect 1187035, delroute 8409 10.01 real 1.28 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 922366, close 319282, bind 8873797, connect 0, delroute 0 10.01 real 8.14 user 71.84 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 25241, close 14149, bind 0, connect 1746057, delroute 0 10.01 real 1.57 user 68.73 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 62895, close 61031, bind 1853659, connect 960711, delroute 0 10.01 real 2.23 user 66.15 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75949, close 94164, bind 1254599, connect 772839, delroute 0 10.14 real 1.58 user 44.83 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 90352, close 389991, bind 2385678, connect 1550499, delroute 0 10.01 real 3.26 user 64.27 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 12309, close 17439, bind 445346, connect 1553991, delroute 0 0m10.01s real 0m01.78s user 1m12.22s 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 61653, close 54514, bind 1734682, connect 880994, delroute 0 0m10.01s real 0m02.11s user 1m06.25s 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 23449, close 28011, bind 0, connect 1308873, delroute 11028 0m10.01s real 0m01.27s 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 582406, close 359005, bind 7264162, connect 0, delroute 0 10.01 real 6.26 user 72.17 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 326563, close 207665, bind 0, connect 2995715, delroute 0 10.01 real 2.90 user 62.65 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 315227, close 218642, bind 1736156, connect 1853036, delroute 0 10.01 real 2.97 user 64.25 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80567, close 96739, bind 711908, connect 663772, delroute 0 10.59 real 1.34 user 30.24 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 245501, close 441943, bind 2129254, connect 2243049, delroute 0 10.01 real 3.88 user 62.65 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 502872, close 237732, bind 571197, connect 3597099, delroute 0 0m10.01s real 0m04.57s user 1m10.87s 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 472658, close 279043, bind 2237820, connect 2286807, delroute 0 0m10.01s real 0m04.03s user 1m10.64s 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 289085, close 190790, bind 0, connect 2195404, delroute 121639 0m10.01s real 0m02.64s user 1m05.46s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 615966, close 352869, bind 8835455, connect 0, delroute 0 10.01 real 7.34 user 72.44 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7388, close 10509, bind 0, connect 1523171, delroute 0 10.01 real 1.19 user 68.10 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 40007, close 35583, bind 1770121, connect 851431, delroute 0 10.01 real 1.97 user 63.82 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126009, close 118931, bind 2762411, connect 1456215, delroute 0 10.20 real 3.65 user 62.69 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 55209, close 218139, bind 2116651, connect 1268816, delroute 0 10.00 real 2.65 user 62.62 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 7678, close 10349, bind 418799, connect 1366507, delroute 0 0m10.00s real 0m01.48s user 1m10.44s 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 39931, close 32175, bind 1746450, connect 840395, delroute 0 0m10.01s real 0m01.92s user 1m04.10s 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 15440, close 18715, bind 0, connect 1208689, delroute 7406 0m10.01s real 0m01.26s user 1m09.56s 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 333539 1.00 real 0.22 user 0.79 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 171904 0m01.00s real 0m00.08s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.88s