START sys/netinet/bindconnect 2025-03-08T05:41:53Z ==== 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 935815, close 758707, bind 1204394, connect 1129568, delroute 0 10.01 real 2.54 user 27.96 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1213539, close 590171, bind 4404044, connect 0, delroute 0 10.01 real 4.58 user 70.66 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 326305, close 462359, bind 0, connect 1679344, delroute 0 10.01 real 1.68 user 34.52 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 484813, close 467547, bind 987529, connect 1099339, delroute 0 10.01 real 2.08 user 42.82 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 275320, close 347305, bind 605643, connect 506536, delroute 0 10.18 real 1.13 user 43.88 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 457577, close 1434158, bind 2341516, connect 2204456, delroute 0 10.00 real 5.11 user 54.94 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 305908, close 373135, bind 216262, connect 1577156, delroute 0 10.01 real 1.83 user 35.16 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 421072, close 433505, bind 878821, connect 1140758, delroute 0 10.01 real 2.03 user 39.59 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 304607, close 643581, bind 0, connect 1433305, delroute 115798 10.01 real 1.91 user 42.62 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 432915, close 668069, bind 2213831, connect 0, delroute 0 10.01 real 2.00 user 54.12 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 357567, close 705155, bind 0, connect 1888420, delroute 0 10.01 real 2.30 user 43.15 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 364164, close 707799, bind 1047522, connect 893422, delroute 0 10.01 real 2.24 user 43.80 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 194722, close 263952, bind 587141, connect 568672, delroute 0 10.28 real 1.21 user 37.90 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 283943, close 2296144, bind 2739942, connect 2708435, delroute 0 10.00 real 5.88 user 52.25 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 329808, close 627380, bind 287902, connect 1618173, delroute 0 10.00 real 2.18 user 44.25 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 313286, close 566686, bind 830186, connect 833435, delroute 0 10.01 real 1.98 user 40.22 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 294995, close 756955, bind 0, connect 1757320, delroute 138936 10.01 real 2.32 user 52.23 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1312343, close 694924, bind 4870094, connect 0, delroute 0 10.01 real 5.04 user 72.73 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 406837, close 453547, bind 0, connect 1421312, delroute 0 10.01 real 1.64 user 46.06 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 501492, close 490273, bind 1122569, connect 902157, delroute 0 10.01 real 2.10 user 50.31 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 551218, close 284694, bind 1162657, connect 926909, delroute 0 10.34 real 2.21 user 51.73 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 445740, close 1203328, bind 2019325, connect 1766928, delroute 0 10.01 real 4.10 user 55.70 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 408325, close 465184, bind 301390, connect 1430225, delroute 0 10.00 real 1.82 user 48.88 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 505037, close 486317, bind 1096872, connect 899488, delroute 0 10.01 real 2.17 user 51.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 337488, close 668769, bind 0, connect 1521760, delroute 224036 10.01 real 2.10 user 52.41 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1180388, close 590654, bind 4146800, connect 0, delroute 0 10.01 real 4.12 user 69.19 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 152402, close 245528, bind 0, connect 1325721, delroute 0 10.01 real 1.29 user 21.77 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 192249, close 240676, bind 411735, connect 1033567, delroute 0 10.01 real 1.09 user 24.34 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 261036, close 345067, bind 618480, connect 453510, delroute 0 10.16 real 1.09 user 49.00 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 356990, close 2012559, bind 2626525, connect 2659163, delroute 0 10.01 real 6.03 user 50.56 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 159180, close 239193, bind 110722, connect 1120674, delroute 0 0m10.01s real 0m01.37s user 0m22.09s 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 185285, close 223099, bind 379957, connect 901799, delroute 0 0m10.01s real 0m01.34s user 0m22.95s 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 177676, close 350108, bind 0, connect 1060829, delroute 56106 0m10.01s real 0m01.18s user 0m27.65s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 409852, close 731761, bind 2273102, connect 0, delroute 0 10.01 real 2.35 user 53.09 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 318321, close 756508, bind 0, connect 1849491, delroute 0 10.01 real 2.15 user 39.63 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 334143, close 768427, bind 1014112, connect 875904, delroute 0 10.01 real 2.24 user 40.92 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 232073, close 343421, bind 700453, connect 685939, delroute 0 10.28 real 1.40 user 39.68 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 265272, close 2483164, bind 2831376, connect 2893812, delroute 0 10.00 real 6.49 user 51.03 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 349943, close 655274, bind 303412, connect 1714509, delroute 0 0m10.00s real 0m02.57s user 0m47.67s 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 359828, close 665251, bind 944007, connect 822825, delroute 0 0m10.01s real 0m01.94s user 0m46.46s 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 273576, close 666898, bind 0, connect 1504224, delroute 110573 0m10.00s real 0m01.99s user 0m46.90s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1170445, close 673999, bind 4400408, connect 0, delroute 0 10.01 real 4.39 user 71.55 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 515275, close 464138, bind 0, connect 1347310, delroute 0 10.01 real 1.62 user 42.17 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 617779, close 475337, bind 1065977, connect 823766, delroute 0 10.01 real 1.78 user 46.82 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 703152, close 224633, bind 1066888, connect 781346, delroute 0 10.35 real 1.89 user 45.96 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 428555, close 1387057, bind 2232144, connect 1947110, delroute 0 10.00 real 4.38 user 54.48 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 574299, close 531384, bind 280094, connect 1294990, delroute 0 0m10.01s real 0m01.83s user 0m43.87s 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 651980, close 458249, bind 979068, connect 766556, delroute 0 0m10.01s real 0m02.17s user 0m45.29s 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 319221, close 616618, bind 0, connect 1323783, delroute 111401 0m10.00s real 0m02.00s user 0m46.72s 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 339479 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 170375 0m01.00s real 0m00.06s user 0m00.97s system PASS sys/netinet/bindconnect Duration 8m16.62s