START sys/netinet/bindconnect 2025-01-05T14:36:11Z ==== 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 1145440, close 1232943, bind 1006889, connect 899060, delroute 0 10.01 real 2.43 user 29.64 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1204621, close 736835, bind 2780847, connect 0, delroute 0 10.01 real 2.77 user 75.05 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 772143, close 571699, bind 0, connect 1169070, delroute 0 10.01 real 1.58 user 37.98 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 894258, close 664133, bind 682794, connect 756602, delroute 0 10.01 real 1.76 user 45.82 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 133870, close 127129, bind 225286, connect 235392, delroute 0 10.26 real 0.49 user 18.92 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 617807, close 1589792, bind 1897847, connect 1857550, delroute 0 10.00 real 4.34 user 54.31 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 680977, close 543701, bind 137232, connect 1125249, delroute 0 10.01 real 1.60 user 37.28 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 829931, close 624090, bind 617906, connect 790957, delroute 0 10.01 real 1.61 user 44.50 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 502452, close 444337, bind 0, connect 886655, delroute 101497 10.01 real 1.34 user 41.74 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 896622, close 679050, bind 410129, connect 0, delroute 0 10.01 real 1.23 user 39.73 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 857814, close 545901, bind 0, connect 347251, delroute 0 10.01 real 0.86 user 31.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 853949, close 586942, bind 167829, connect 184244, delroute 0 10.01 real 0.89 user 35.16 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 465743, close 301469, bind 230081, connect 247450, delroute 0 10.49 real 0.71 user 26.12 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 392466, close 2017510, bind 1644980, connect 1670981, delroute 0 10.00 real 3.90 user 46.57 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 743355, close 566971, bind 59743, connect 488546, delroute 0 10.01 real 0.89 user 34.10 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 776902, close 563747, bind 156420, connect 319983, delroute 0 10.01 real 0.97 user 32.38 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 696573, close 546679, bind 0, connect 355437, delroute 68633 10.01 real 0.95 user 39.56 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1504377, close 990525, bind 2247007, connect 0, delroute 0 10.01 real 3.02 user 76.35 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 760175, close 640768, bind 0, connect 912225, delroute 0 10.01 real 1.40 user 42.78 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 892224, close 731192, bind 649765, connect 585114, delroute 0 10.01 real 1.64 user 49.94 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 791886, close 549382, bind 815702, connect 704740, delroute 0 10.35 real 1.71 user 51.09 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 603721, close 1555427, bind 1729276, connect 1625005, delroute 0 10.01 real 4.06 user 55.00 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 714558, close 633226, bind 167700, connect 899311, delroute 0 10.01 real 1.58 user 46.41 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 850627, close 704711, bind 651129, connect 595217, delroute 0 10.01 real 1.85 user 50.68 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 570359, close 528221, bind 0, connect 718774, delroute 258757 10.01 real 1.15 user 54.02 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1278311, close 774804, bind 2350306, connect 0, delroute 0 10.01 real 2.93 user 74.80 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 296051, close 273166, bind 0, connect 1061011, delroute 0 10.01 real 0.96 user 20.91 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 381634, close 337844, bind 258592, connect 887095, delroute 0 10.01 real 0.87 user 25.27 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 132144, close 146274, bind 223536, connect 278512, delroute 0 10.29 real 0.46 user 19.48 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 381036, close 1528004, bind 1635609, connect 1951200, delroute 0 10.00 real 3.99 user 41.60 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 318623, close 296059, bind 53406, connect 925732, delroute 0 0m10.01s real 0m01.03s user 0m20.97s 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 389100, close 324782, bind 214469, connect 792797, delroute 0 0m10.01s real 0m01.18s user 0m23.07s 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 271098, close 259321, bind 0, connect 788536, delroute 44830 0m10.01s real 0m01.13s user 0m25.71s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 933028, close 695325, bind 374566, connect 0, delroute 0 10.01 real 0.89 user 38.56 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 827984, close 483315, bind 0, connect 318830, delroute 0 10.01 real 0.84 user 29.70 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 847141, close 524175, bind 151661, connect 179736, delroute 0 10.01 real 0.76 user 31.70 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 517253, close 290102, bind 204363, connect 247045, delroute 0 10.48 real 0.66 user 25.29 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 381524, close 1907478, bind 1543795, connect 1622165, delroute 0 10.01 real 3.63 user 44.19 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 827204, close 547415, bind 52129, connect 360955, delroute 0 0m10.01s real 0m00.83s user 0m33.27s 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 862218, close 592680, bind 154396, connect 191902, delroute 0 0m10.01s real 0m00.77s user 0m33.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 671781, close 496061, bind 0, connect 313378, delroute 60947 0m10.01s real 0m00.96s user 0m36.62s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1317419, close 917343, bind 1769424, connect 0, delroute 0 10.01 real 2.16 user 76.05 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 951112, close 907703, bind 0, connect 705369, delroute 0 10.01 real 1.38 user 37.98 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1042798, close 995799, bind 485196, connect 421269, delroute 0 10.01 real 1.71 user 43.76 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 830419, close 636470, bind 707119, connect 594146, delroute 0 10.36 real 1.58 user 47.89 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 549116, close 1757442, bind 1828140, connect 1718234, delroute 0 10.01 real 3.96 user 54.32 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 1029299, close 1018743, bind 117301, connect 618409, delroute 0 0m10.01s real 0m01.69s user 0m39.20s 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 1074337, close 1023384, bind 448938, connect 402833, delroute 0 0m10.01s real 0m01.59s user 0m42.26s 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 696891, close 692053, bind 0, connect 524922, delroute 93636 0m10.01s real 0m01.26s user 0m43.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 347533 1.00 real 0.09 user 0.91 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 164141 0m01.00s real 0m00.09s user 0m00.89s system PASS sys/netinet/bindconnect Duration 8m17.28s