START sys/netinet/bindconnect 2025-01-17T05:08:56Z ==== 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 1133297, close 1171420, bind 931736, connect 873362, delroute 0 10.00 real 2.63 user 28.50 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1096689, close 629631, bind 3267689, connect 0, delroute 0 10.01 real 3.88 user 74.41 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 762833, close 619991, bind 0, connect 1187391, delroute 0 10.01 real 1.55 user 40.76 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 883506, close 707942, bind 746988, connect 777318, delroute 0 10.01 real 1.95 user 47.60 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130816, close 120122, bind 222230, connect 229296, delroute 0 10.23 real 0.45 user 19.61 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 552629, close 1560070, bind 1970956, connect 1916153, delroute 0 10.00 real 4.31 user 56.04 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 656649, close 530600, bind 154120, connect 1126362, delroute 0 10.01 real 1.86 user 39.71 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 788759, close 630376, bind 656007, connect 794277, delroute 0 10.01 real 1.74 user 45.62 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 527339, close 464161, bind 0, connect 869001, delroute 105925 10.01 real 1.38 user 42.27 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 986798, close 589749, bind 411171, connect 0, delroute 0 10.01 real 1.25 user 38.23 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 965663, close 448366, bind 0, connect 306625, delroute 0 10.01 real 0.86 user 31.18 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 996510, close 478216, bind 157180, connect 160787, delroute 0 10.01 real 0.86 user 32.55 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 375009, close 235241, bind 195903, connect 216057, delroute 0 10.45 real 0.55 user 21.92 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 412863, close 1913686, bind 1549984, connect 1572900, delroute 0 10.01 real 3.79 user 45.79 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 866250, close 492381, bind 50179, connect 426565, delroute 0 10.01 real 1.11 user 32.36 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 870759, close 488442, bind 137818, connect 290579, delroute 0 10.01 real 0.77 user 30.73 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 786227, close 509951, bind 0, connect 335945, delroute 64455 10.01 real 1.13 user 38.36 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1213551, close 841401, bind 2887131, connect 0, delroute 0 10.01 real 3.25 user 75.92 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 769268, close 640117, bind 0, connect 916251, delroute 0 10.01 real 1.31 user 44.24 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 857280, close 711337, bind 671164, connect 591233, delroute 0 10.01 real 1.89 user 50.63 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 768250, close 520744, bind 811841, connect 698057, delroute 0 10.34 real 1.75 user 51.92 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 649263, close 1604241, bind 1733357, connect 1632374, delroute 0 10.01 real 4.05 user 55.28 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 722907, close 649118, bind 165180, connect 896233, delroute 0 10.00 real 1.38 user 46.53 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 889830, close 727366, bind 640866, connect 576169, delroute 0 10.01 real 1.83 user 50.23 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 608263, close 520075, bind 0, connect 716389, delroute 252336 10.01 real 1.40 user 53.22 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1182862, close 728814, bind 2614649, connect 0, delroute 0 10.01 real 3.11 user 74.34 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 307769, close 278590, bind 0, connect 1058284, delroute 0 10.01 real 1.15 user 21.45 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 388460, close 334053, bind 248863, connect 884148, delroute 0 10.01 real 1.02 user 24.91 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 131362, close 136780, bind 218473, connect 270734, delroute 0 10.29 real 0.46 user 19.32 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 372084, close 1483080, bind 1604804, connect 1911760, delroute 0 10.00 real 3.64 user 42.45 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 357356, close 313537, bind 51238, connect 914140, delroute 0 0m10.01s real 0m01.02s user 0m21.50s 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 356812, close 296101, bind 206028, connect 804386, delroute 0 0m10.01s real 0m01.08s user 0m22.62s 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 349563, close 303138, bind 0, connect 776913, delroute 43748 0m10.01s real 0m01.07s user 0m25.80s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1003761, close 598357, bind 376042, connect 0, delroute 0 10.01 real 1.10 user 38.48 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 953515, close 414729, bind 0, connect 288662, delroute 0 10.01 real 0.84 user 28.76 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 950465, close 466503, bind 144198, connect 165783, delroute 0 10.01 real 0.87 user 31.18 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 304387, close 200029, bind 173779, connect 202641, delroute 0 10.45 real 0.51 user 20.13 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 392808, close 1843060, bind 1519532, connect 1588807, delroute 0 10.00 real 3.84 user 43.76 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 887114, close 483655, bind 58559, connect 372054, delroute 0 0m10.01s real 0m01.16s user 0m33.86s 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 925576, close 526102, bind 162333, connect 193384, delroute 0 0m10.01s real 0m00.80s user 0m33.02s 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 739817, close 451733, bind 0, connect 307946, delroute 58870 0m10.01s real 0m00.99s user 0m35.75s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1136558, close 825691, bind 2261300, connect 0, delroute 0 10.01 real 2.53 user 76.32 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 964635, close 886742, bind 0, connect 695336, delroute 0 10.01 real 1.38 user 37.97 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1058109, close 980685, bind 494741, connect 427223, delroute 0 10.01 real 1.61 user 45.08 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 768086, close 564478, bind 738029, connect 627601, delroute 0 10.35 real 1.62 user 49.28 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 550672, close 1725653, bind 1802399, connect 1688137, delroute 0 10.00 real 4.19 user 54.57 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 977888, close 965716, bind 117096, connect 639131, delroute 0 0m10.00s real 0m01.78s user 0m39.89s 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 1129149, close 1078886, bind 443254, connect 387805, delroute 0 0m10.01s real 0m01.70s user 0m41.22s 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 681672, close 673652, bind 0, connect 534004, delroute 92311 0m10.01s real 0m01.32s user 0m42.98s 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 348433 1.00 real 0.16 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 172896 0m01.00s real 0m00.11s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m17.14s