START sys/netinet/bindconnect 2024-12-21T05:47:41Z ==== 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 436656, close 400367, bind 1261329, connect 1043303, delroute 0 10.00 real 2.07 user 28.27 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 870138, close 391841, bind 7977036, connect 0, delroute 0 10.01 real 7.71 user 72.03 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 19603, close 14993, bind 0, connect 2063974, delroute 0 10.01 real 1.78 user 69.92 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 87274, close 59276, bind 2178746, connect 1223223, delroute 0 10.01 real 2.70 user 67.47 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70596, close 72195, bind 856463, connect 584988, delroute 0 10.13 real 1.12 user 39.78 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 94207, close 155908, bind 2341150, connect 1415475, delroute 0 10.01 real 3.10 user 66.80 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 96694, close 12823, bind 496635, connect 1799748, delroute 0 10.01 real 2.25 user 71.86 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 78025, close 54721, bind 2064722, connect 1112286, delroute 0 10.01 real 2.62 user 66.97 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 34152, close 26050, bind 0, connect 1590243, delroute 17390 10.01 real 1.73 user 71.90 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 662265, close 474685, bind 2749112, connect 0, delroute 0 10.01 real 2.56 user 67.86 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 366077, close 411245, bind 0, connect 1992197, delroute 0 10.01 real 2.02 user 62.29 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 380141, close 406273, bind 995773, connect 985854, delroute 0 10.01 real 1.89 user 62.95 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101419, close 119105, bind 395128, connect 415117, delroute 0 10.54 real 0.74 user 23.69 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 320201, close 956645, bind 1765247, connect 1804123, delroute 0 10.00 real 3.13 user 63.33 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 356274, close 557894, bind 325668, connect 2032070, delroute 0 10.01 real 2.82 user 71.27 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 363430, close 643913, bind 1090974, connect 1170898, delroute 0 10.01 real 2.22 user 68.63 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 360374, close 288655, bind 0, connect 1761800, delroute 151832 10.01 real 2.37 user 67.15 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 458378, close 251700, bind 8896009, connect 0, delroute 0 10.01 real 7.50 user 72.15 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5771, close 3654, bind 0, connect 1590179, delroute 0 10.01 real 1.15 user 68.29 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 34253, close 21844, bind 1786752, connect 843575, delroute 0 10.01 real 2.23 user 63.08 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129424, close 84166, bind 2686680, connect 1346935, delroute 0 10.20 real 3.22 user 63.85 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 35456, close 69802, bind 1915807, connect 1000221, delroute 0 10.00 real 2.11 user 63.40 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 6607, close 4518, bind 415403, connect 1371839, delroute 0 10.01 real 1.41 user 70.46 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 35655, close 23145, bind 1794112, connect 861727, delroute 0 10.01 real 2.22 user 64.07 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 14663, close 9561, bind 0, connect 1196833, delroute 7480 10.01 real 1.28 user 70.07 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 764757, close 243309, bind 8820456, connect 0, delroute 0 10.01 real 8.47 user 71.40 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 9590, close 8611, bind 0, connect 1745587, delroute 0 10.01 real 1.60 user 69.39 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 55653, close 39211, bind 1814938, connect 931330, delroute 0 10.01 real 2.18 user 66.75 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71936, close 83798, bind 1194477, connect 751801, delroute 0 10.13 real 1.43 user 43.63 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 58629, close 142467, bind 2092617, connect 1209163, delroute 0 10.01 real 2.50 user 66.86 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 10390, close 9177, bind 444035, connect 1555997, delroute 0 0m10.01s real 0m01.89s user 1m12.16s 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 52820, close 38497, bind 1767169, connect 888651, delroute 0 0m10.01s real 0m02.32s user 1m07.10s 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 20437, close 16128, bind 0, connect 1311034, delroute 10142 0m10.01s real 0m01.25s user 1m11.97s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 649314, close 476700, bind 2704600, connect 0, delroute 0 10.01 real 2.44 user 67.50 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 304572, close 357936, bind 0, connect 1826417, delroute 0 10.01 real 1.93 user 60.33 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 328769, close 358267, bind 903433, connect 922229, delroute 0 10.01 real 1.63 user 60.85 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 99571, close 129443, bind 452160, connect 484198, delroute 0 10.55 real 0.69 user 25.26 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 268577, close 1049459, bind 1744598, connect 1865458, delroute 0 10.00 real 3.65 user 61.25 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 400452, close 424165, bind 344566, connect 2109475, delroute 0 0m10.01s real 0m02.54s user 1m09.16s 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 429711, close 477452, bind 1133343, connect 1218737, delroute 0 0m10.01s real 0m02.48s user 1m05.43s 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 301605, close 251294, bind 0, connect 1626509, delroute 102567 0m10.01s real 0m01.98s user 1m04.32s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 488472, close 231998, bind 8830287, connect 0, delroute 0 10.01 real 6.87 user 72.91 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 4862, close 3340, bind 0, connect 1535810, delroute 0 10.01 real 1.22 user 68.14 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 34653, close 22872, bind 1798708, connect 838766, delroute 0 10.01 real 1.91 user 63.97 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126833, close 96251, bind 2726099, connect 1391349, delroute 0 10.23 real 3.08 user 64.14 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 43660, close 75984, bind 1909919, connect 998930, delroute 0 10.01 real 2.05 user 63.21 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 6361, close 5358, bind 415247, connect 1377251, delroute 0 0m10.01s real 0m01.48s user 1m10.25s 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 34723, close 23107, bind 1772828, connect 840647, delroute 0 0m10.01s real 0m01.86s user 1m04.21s 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 34039, close 8572, bind 0, connect 1180318, delroute 6694 0m10.01s real 0m01.13s user 1m09.63s 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 342744 1.00 real 0.16 user 0.85 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 175610 0m01.00s real 0m00.10s user 0m00.89s system PASS sys/netinet/bindconnect Duration 8m16.81s