START sys/netinet/bindconnect 2025-01-08T05:16:05Z ==== 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 1108837, close 1146577, bind 980515, connect 886668, delroute 0 10.00 real 2.39 user 29.68 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1012719, close 598986, bind 3161659, connect 0, delroute 0 10.01 real 3.11 user 75.77 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 655932, close 564148, bind 0, connect 1197230, delroute 0 10.01 real 1.67 user 40.50 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 708115, close 615106, bind 821480, connect 803390, delroute 0 10.01 real 1.99 user 48.85 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126598, close 121943, bind 244146, connect 248484, delroute 0 10.26 real 0.52 user 21.07 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 490251, close 1454622, bind 1988450, connect 1886063, delroute 0 10.01 real 3.93 user 56.81 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 544719, close 508476, bind 159692, connect 1154436, delroute 0 10.01 real 1.57 user 40.88 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 711183, close 602167, bind 726433, connect 793439, delroute 0 10.01 real 1.97 user 48.04 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 453082, close 426962, bind 0, connect 840665, delroute 101656 10.01 real 1.29 user 44.83 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 808772, close 639532, bind 495888, connect 0, delroute 0 10.01 real 1.27 user 42.94 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 771914, close 511355, bind 0, connect 347221, delroute 0 10.01 real 1.00 user 33.90 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 793702, close 537956, bind 176733, connect 180751, delroute 0 10.01 real 0.97 user 36.23 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 449396, close 297372, bind 241550, connect 254371, delroute 0 10.47 real 0.82 user 27.97 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 334816, close 1987108, bind 1705532, connect 1740835, delroute 0 10.00 real 4.52 user 48.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 695897, close 557737, bind 64826, connect 483457, delroute 0 10.01 real 0.93 user 36.43 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 739152, close 561951, bind 169919, connect 291996, delroute 0 10.01 real 0.72 user 34.51 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 643932, close 532672, bind 0, connect 364588, delroute 65506 10.01 real 1.25 user 40.84 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1164486, close 795119, bind 2790669, connect 0, delroute 0 10.01 real 3.21 user 76.25 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 590896, close 561750, bind 0, connect 845218, delroute 0 10.01 real 1.20 user 45.23 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 702594, close 666015, bind 683225, connect 575548, delroute 0 10.01 real 2.03 user 50.47 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 604223, close 449358, bind 841271, connect 663487, delroute 0 10.34 real 1.75 user 51.20 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 428779, close 1508360, bind 1847352, connect 1728448, delroute 0 10.00 real 3.33 user 56.76 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 557746, close 558649, bind 161305, connect 828489, delroute 0 10.01 real 1.41 user 47.98 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 687198, close 654219, bind 653099, connect 559002, delroute 0 10.01 real 1.74 user 51.47 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 487995, close 468035, bind 0, connect 697088, delroute 223638 10.01 real 1.07 user 53.34 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1125143, close 539341, bind 2576747, connect 0, delroute 0 10.01 real 2.68 user 75.90 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 295863, close 294702, bind 0, connect 1058928, delroute 0 10.01 real 1.14 user 21.18 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 365104, close 339653, bind 265997, connect 874103, delroute 0 10.01 real 1.24 user 26.66 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127554, close 143609, bind 247530, connect 283848, delroute 0 10.29 real 0.56 user 21.76 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 351751, close 1638280, bind 1881118, connect 2113579, delroute 0 10.00 real 4.48 user 46.19 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 250125, close 267440, bind 53878, connect 940160, delroute 0 0m10.00s real 0m01.02s user 0m21.44s 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 310678, close 294871, bind 232713, connect 807277, delroute 0 0m10.01s real 0m01.00s user 0m24.84s 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 280580, close 269691, bind 0, connect 769436, delroute 43594 0m10.01s real 0m00.98s user 0m27.37s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 860999, close 653797, bind 459710, connect 0, delroute 0 10.01 real 1.17 user 40.14 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 782630, close 465508, bind 0, connect 294521, delroute 0 10.01 real 0.86 user 30.10 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 824648, close 515971, bind 140221, connect 159318, delroute 0 10.01 real 0.91 user 32.70 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 528120, close 298110, bind 218417, connect 255150, delroute 0 10.48 real 0.68 user 27.69 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 320938, close 1991135, bind 1690883, connect 1779312, delroute 0 10.00 real 4.33 user 45.64 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 758426, close 511435, bind 51646, connect 345332, delroute 0 0m10.01s real 0m00.98s user 0m36.35s 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 837361, close 543200, bind 152967, connect 180767, delroute 0 0m10.01s real 0m01.00s user 0m34.82s 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 622076, close 476720, bind 0, connect 313996, delroute 57925 0m10.01s real 0m01.09s user 0m37.61s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1165447, close 693085, bind 1985732, connect 0, delroute 0 10.01 real 2.67 user 76.28 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 951171, close 980863, bind 0, connect 599436, delroute 0 10.01 real 1.28 user 38.68 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1002139, close 1028782, bind 486607, connect 392375, delroute 0 10.01 real 1.31 user 42.75 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 648034, close 502470, bind 782605, connect 591873, delroute 0 10.37 real 1.79 user 49.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 424131, close 1682075, bind 1939093, connect 1804000, delroute 0 10.01 real 4.40 user 55.45 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 910105, close 961148, bind 116452, connect 590694, delroute 0 0m10.00s real 0m01.39s user 0m39.61s 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 1035835, close 1069522, bind 452493, connect 372380, delroute 0 0m10.01s real 0m01.44s user 0m41.88s 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 634641, close 652994, bind 0, connect 507994, delroute 83850 0m10.01s real 0m01.26s user 0m42.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 340930 1.00 real 0.18 user 0.82 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 172439 0m01.00s real 0m00.03s user 0m00.97s system PASS sys/netinet/bindconnect Duration 8m17.24s