START sys/netinet/bindconnect 2025-03-27T05:07:17Z ==== 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 949655, close 777330, bind 1176320, connect 1037415, delroute 0 10.00 real 2.18 user 28.65 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1080412, close 566666, bind 4297409, connect 0, delroute 0 10.01 real 4.35 user 70.12 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 396958, close 438837, bind 0, connect 1629207, delroute 0 10.01 real 1.51 user 37.20 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 511560, close 581437, bind 1040937, connect 1009126, delroute 0 10.01 real 2.18 user 44.49 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 267957, close 341346, bind 651484, connect 518841, delroute 0 10.18 real 1.07 user 52.06 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 445942, close 1643967, bind 2421070, connect 2273940, delroute 0 10.01 real 5.24 user 55.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 314311, close 491866, bind 229665, connect 1535458, delroute 0 10.00 real 1.99 user 37.17 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 428033, close 496818, bind 899490, connect 1104221, delroute 0 10.01 real 2.01 user 40.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 290245, close 696429, bind 0, connect 1622214, delroute 118063 10.01 real 2.10 user 43.95 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 431663, close 906229, bind 2487443, connect 0, delroute 0 10.01 real 2.74 user 55.57 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 358139, close 815578, bind 0, connect 1962368, delroute 0 10.01 real 2.32 user 43.00 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 359287, close 950903, bind 1162548, connect 984846, delroute 0 10.01 real 2.50 user 45.12 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 201106, close 281523, bind 589176, connect 588978, delroute 0 10.27 real 1.34 user 39.59 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 274876, close 2411858, bind 2840037, connect 2798382, delroute 0 10.01 real 5.79 user 53.32 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 346870, close 624740, bind 284119, connect 1631430, delroute 0 10.00 real 2.33 user 44.66 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 339327, close 575329, bind 854476, connect 841625, delroute 0 10.01 real 2.00 user 39.30 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 297929, close 810679, bind 0, connect 1757072, delroute 144319 10.01 real 2.14 user 52.50 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1169516, close 624927, bind 4903636, connect 0, delroute 0 10.01 real 4.90 user 72.62 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 396461, close 515630, bind 0, connect 1375984, delroute 0 10.01 real 1.75 user 44.49 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 494636, close 526173, bind 1090143, connect 870813, delroute 0 10.01 real 2.25 user 50.13 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 515273, close 269584, bind 1124275, connect 887470, delroute 0 10.33 real 1.85 user 51.63 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 415570, close 1550405, bind 2206471, connect 1984708, delroute 0 10.01 real 4.75 user 55.71 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 388883, close 517313, bind 284738, connect 1341254, delroute 0 10.00 real 1.99 user 46.94 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 493409, close 520718, bind 1073579, connect 863334, delroute 0 10.01 real 1.87 user 50.83 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 310678, close 716197, bind 0, connect 1638757, delroute 220808 10.01 real 2.04 user 51.61 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 916574, close 574358, bind 3644598, connect 0, delroute 0 10.01 real 3.77 user 67.06 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 152946, close 276990, bind 0, connect 1325165, delroute 0 10.01 real 1.21 user 22.97 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 196058, close 275948, bind 439943, connect 1021899, delroute 0 10.01 real 1.35 user 25.76 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 218614, close 279104, bind 544065, connect 427740, delroute 0 10.17 real 0.86 user 44.07 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 339199, close 2324669, bind 2689302, connect 2691884, delroute 0 10.00 real 6.05 user 50.83 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 165810, close 293826, bind 121707, connect 1166539, delroute 0 0m10.01s real 0m01.59s user 0m23.37s 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 187128, close 247599, bind 403721, connect 893302, delroute 0 0m10.01s real 0m01.39s user 0m23.65s 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 178339, close 441999, bind 0, connect 1154118, delroute 61485 0m10.01s real 0m01.54s user 0m29.13s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 422566, close 855189, bind 2554921, connect 0, delroute 0 10.00 real 2.47 user 56.03 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 329387, close 797528, bind 0, connect 1869322, delroute 0 10.01 real 2.02 user 39.61 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 342947, close 802517, bind 1061493, connect 885379, delroute 0 10.01 real 2.10 user 41.55 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 225103, close 358071, bind 700968, connect 678936, delroute 0 10.24 real 1.30 user 40.55 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 258840, close 2617265, bind 2934525, connect 2991107, delroute 0 10.00 real 6.14 user 52.18 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 364289, close 701371, bind 320834, connect 1789170, delroute 0 0m10.01s real 0m02.45s user 0m49.32s 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 385724, close 697937, bind 1033876, connect 886200, delroute 0 0m10.01s real 0m02.00s user 0m47.97s 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 274161, close 746882, bind 0, connect 1559913, delroute 113116 0m10.01s real 0m02.01s user 0m47.85s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1071647, close 602629, bind 4539299, connect 0, delroute 0 10.01 real 4.55 user 72.26 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 427294, close 504010, bind 0, connect 1382732, delroute 0 10.01 real 1.41 user 41.16 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 525084, close 541820, bind 1099228, connect 839375, delroute 0 10.01 real 1.90 user 48.38 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 545083, close 244384, bind 1078985, connect 819841, delroute 0 10.34 real 2.18 user 47.83 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 405735, close 1738176, bind 2451183, connect 2189176, delroute 0 10.00 real 5.39 user 55.64 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 439743, close 632037, bind 293197, connect 1341697, delroute 0 0m10.01s real 0m02.12s user 0m43.86s 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 539638, close 539600, bind 1066829, connect 827095, delroute 0 0m10.01s real 0m02.01s user 0m47.44s 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 300257, close 671661, bind 0, connect 1358050, delroute 107950 0m10.01s real 0m01.94s user 0m45.96s 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 346324 1.00 real 0.07 user 0.94 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 174053 0m01.00s real 0m00.08s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m16.62s