START sys/netinet/bindconnect 2025-03-22T05:52:03Z ==== 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 910162, close 725311, bind 1127789, connect 1108926, delroute 0 10.01 real 2.41 user 27.49 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1169715, close 616071, bind 4448017, connect 0, delroute 0 10.01 real 4.45 user 70.13 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348721, close 384294, bind 0, connect 1730708, delroute 0 10.01 real 1.85 user 33.84 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 506101, close 504337, bind 1028543, connect 1118554, delroute 0 10.01 real 2.22 user 42.17 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 293788, close 382306, bind 613676, connect 560469, delroute 0 10.18 real 1.06 user 48.14 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 456569, close 1647371, bind 2193459, connect 2057347, delroute 0 10.00 real 4.71 user 52.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 315231, close 350552, bind 217993, connect 1525657, delroute 0 10.01 real 1.79 user 34.21 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 412238, close 447623, bind 858638, connect 1145118, delroute 0 10.01 real 2.21 user 37.84 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 291122, close 681555, bind 0, connect 1551684, delroute 116645 10.01 real 2.19 user 41.17 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 436684, close 801575, bind 2442297, connect 0, delroute 0 10.01 real 2.52 user 54.81 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 359690, close 846534, bind 0, connect 2040608, delroute 0 10.01 real 2.55 user 42.81 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 365196, close 911791, bind 1093303, connect 927630, delroute 0 10.01 real 2.20 user 43.86 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 169096, close 227815, bind 522566, connect 505818, delroute 0 10.28 real 1.01 user 34.44 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 288945, close 2422253, bind 2776385, connect 2750775, delroute 0 10.01 real 6.19 user 53.20 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 336922, close 619557, bind 277239, connect 1586223, delroute 0 10.00 real 2.41 user 42.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 322991, close 655033, bind 838654, connect 840286, delroute 0 10.01 real 1.76 user 38.57 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 293388, close 890361, bind 0, connect 1828604, delroute 150297 10.01 real 2.41 user 51.47 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1207287, close 621030, bind 4999716, connect 0, delroute 0 10.01 real 4.81 user 73.47 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 425753, close 486651, bind 0, connect 1474962, delroute 0 10.01 real 1.45 user 44.54 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 526324, close 526852, bind 1156177, connect 937829, delroute 0 10.01 real 2.22 user 49.99 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 543962, close 282292, bind 1144096, connect 924969, delroute 0 10.33 real 1.89 user 50.66 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 450232, close 1342218, bind 2055378, connect 1798719, delroute 0 10.00 real 4.35 user 54.75 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 413252, close 565438, bind 295735, connect 1419700, delroute 0 10.01 real 2.32 user 46.62 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 521079, close 596579, bind 1112626, connect 912322, delroute 0 10.01 real 2.12 user 49.95 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 332917, close 772858, bind 0, connect 1714895, delroute 240782 10.01 real 2.46 user 51.80 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1184145, close 592010, bind 4217808, connect 0, delroute 0 10.01 real 4.03 user 70.31 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 156306, close 261347, bind 0, connect 1332966, delroute 0 10.01 real 0.99 user 21.30 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 203075, close 257646, bind 428318, connect 1025859, delroute 0 10.01 real 1.36 user 24.59 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 269453, close 348367, bind 695001, connect 486828, delroute 0 10.20 real 1.05 user 48.92 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 370227, close 2127237, bind 2634394, connect 2672118, delroute 0 10.01 real 6.08 user 50.20 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 165601, close 301545, bind 124333, connect 1145384, delroute 0 0m10.00s real 0m01.23s user 0m23.40s 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 186136, close 258218, bind 384112, connect 900695, delroute 0 0m10.01s real 0m01.25s user 0m23.27s 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 183420, close 422025, bind 0, connect 1140578, delroute 62482 0m10.01s real 0m01.24s user 0m29.47s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 441035, close 806634, bind 2468432, connect 0, delroute 0 10.00 real 2.71 user 54.72 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 334575, close 807037, bind 0, connect 1883899, delroute 0 10.01 real 1.96 user 39.01 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 350228, close 789568, bind 1030137, connect 878472, delroute 0 10.01 real 2.22 user 40.21 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 214264, close 314128, bind 653948, connect 643411, delroute 0 10.25 real 1.24 user 39.11 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 273422, close 2534113, bind 2876667, connect 2908913, delroute 0 10.00 real 6.44 user 50.51 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 371043, close 691211, bind 315815, connect 1747204, delroute 0 0m10.01s real 0m02.08s user 0m48.10s 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 384872, close 775169, bind 1005947, connect 856801, delroute 0 0m10.00s real 0m01.97s user 0m45.41s 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 275198, close 778883, bind 0, connect 1620135, delroute 116138 0m10.00s real 0m02.07s user 0m47.12s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1100128, close 592953, bind 4655646, connect 0, delroute 0 10.01 real 4.53 user 72.07 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 479658, close 557244, bind 0, connect 1408251, delroute 0 10.01 real 1.50 user 40.96 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 563367, close 681628, bind 1108620, connect 863754, delroute 0 10.01 real 2.17 user 47.40 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 614765, close 269263, bind 1112570, connect 870292, delroute 0 10.35 real 2.12 user 46.77 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 430352, close 1590156, bind 2280485, connect 1994337, delroute 0 10.00 real 4.86 user 54.29 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 500311, close 671493, bind 296603, connect 1380066, delroute 0 0m10.00s real 0m01.93s user 0m43.08s 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 625058, close 511993, bind 1061119, connect 832607, delroute 0 0m10.01s real 0m02.04s user 0m45.36s 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 314773, close 684109, bind 0, connect 1362722, delroute 112678 0m10.01s real 0m01.71s user 0m46.01s 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 334169 1.00 real 0.11 user 0.92 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 172097 0m01.00s real 0m00.09s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m16.63s