START sys/netinet/bindconnect 2024-12-30T00:51:39Z ==== 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 419866, close 385426, bind 1247149, connect 1043292, delroute 0 10.00 real 2.14 user 28.01 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 878416, close 411308, bind 8066673, connect 0, delroute 0 10.01 real 7.10 user 72.69 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 18873, close 14383, bind 0, connect 2026948, delroute 0 10.01 real 1.47 user 69.15 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 81209, close 55875, bind 1871514, connect 1181447, delroute 0 10.01 real 2.45 user 66.29 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71554, close 73358, bind 857846, connect 633046, delroute 0 10.15 real 1.22 user 39.32 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 111975, close 169066, bind 2330600, connect 1434230, delroute 0 10.01 real 3.23 user 66.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 19448, close 16347, bind 521258, connect 1855426, delroute 0 10.01 real 1.89 user 72.32 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 93788, close 64208, bind 2113231, connect 1178593, delroute 0 10.01 real 2.46 user 67.69 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 116997, close 26589, bind 0, connect 1518413, delroute 16762 10.01 real 1.69 user 71.55 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 583267, close 375113, bind 7153129, connect 0, delroute 0 10.01 real 6.21 user 72.07 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 367982, close 228685, bind 0, connect 3205095, delroute 0 10.01 real 3.21 user 63.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 364032, close 232103, bind 1860058, connect 1957185, delroute 0 10.01 real 3.52 user 65.45 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80178, close 87519, bind 637541, connect 608071, delroute 0 10.55 real 1.22 user 29.52 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 286019, close 373770, bind 2207660, connect 2300638, delroute 0 10.01 real 4.29 user 63.52 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 350284, close 168861, bind 660440, connect 3657996, delroute 0 10.00 real 4.27 user 73.20 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 171306, close 148543, bind 2686873, connect 1822760, delroute 0 10.01 real 3.76 user 72.28 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 351038, close 210007, bind 0, connect 2390226, delroute 181770 10.01 real 2.48 user 68.48 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 468607, close 251281, bind 8817287, connect 0, delroute 0 10.01 real 7.90 user 71.96 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6190, close 3912, bind 0, connect 1564755, delroute 0 10.01 real 1.34 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 36381, close 24400, bind 1800954, connect 870356, delroute 0 10.01 real 2.20 user 63.31 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130378, close 94358, bind 2720446, connect 1403555, delroute 0 10.20 real 3.31 user 64.07 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 41360, close 78613, bind 1931074, connect 1030198, delroute 0 10.00 real 2.34 user 62.82 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 7271, close 5789, bind 418955, connect 1399359, delroute 0 10.01 real 1.48 user 70.75 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 38475, close 25038, bind 1774655, connect 863590, delroute 0 10.01 real 1.80 user 64.34 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 16190, close 10180, bind 0, connect 1213723, delroute 8305 10.01 real 1.17 user 69.46 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 811663, close 238255, bind 8831451, connect 0, delroute 0 10.01 real 7.75 user 72.13 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10297, close 8362, bind 0, connect 1730746, delroute 0 10.01 real 1.55 user 69.12 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 59102, close 42969, bind 1817438, connect 941146, delroute 0 10.01 real 2.16 user 66.27 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 67941, close 73201, bind 855702, connect 553656, delroute 0 10.13 real 1.24 user 40.14 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 65560, close 189916, bind 2146445, connect 1274881, delroute 0 10.01 real 2.57 user 66.03 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 36744, close 10731, bind 445655, connect 1540337, delroute 0 0m10.01s real 0m02.02s user 1m12.30s 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 56411, close 41763, bind 1732236, connect 876332, delroute 0 0m10.01s real 0m02.14s user 1m05.74s 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 22922, close 19064, bind 0, connect 1301836, delroute 11254 0m10.01s real 0m01.18s user 1m11.40s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 579929, close 373031, bind 7049483, connect 0, delroute 0 10.01 real 6.71 user 71.67 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 325565, close 208072, bind 0, connect 2943478, delroute 0 10.01 real 2.75 user 62.72 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 318135, close 215373, bind 1705527, connect 1831138, delroute 0 10.01 real 3.02 user 64.68 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 81336, close 96890, bind 703075, connect 669763, delroute 0 10.58 real 1.27 user 31.78 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 248890, close 394379, bind 2093385, connect 2213761, delroute 0 10.00 real 3.50 user 63.18 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 501105, close 236344, bind 566743, connect 3522823, delroute 0 0m10.00s real 0m04.29s user 1m11.42s 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 467827, close 271871, bind 2250959, connect 2280615, delroute 0 0m10.00s real 0m04.44s user 1m10.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 299304, close 190154, bind 0, connect 2211975, delroute 128855 0m10.01s real 0m02.32s user 1m04.97s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 499325, close 236672, bind 8841794, connect 0, delroute 0 10.00 real 7.78 user 71.81 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5560, close 4324, bind 0, connect 1546666, delroute 0 10.01 real 1.34 user 67.47 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36376, close 24831, bind 1811203, connect 847026, delroute 0 10.01 real 2.23 user 63.16 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126181, close 101526, bind 2747072, connect 1421870, delroute 0 10.22 real 3.36 user 63.36 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 63096, close 107198, bind 1975881, connect 1076847, delroute 0 10.00 real 2.51 user 63.25 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 6815, close 5228, bind 423767, connect 1406304, delroute 0 0m10.01s real 0m01.48s user 1m10.61s 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 35847, close 24925, bind 1781512, connect 856937, delroute 0 0m10.01s real 0m01.98s user 1m03.66s 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 15044, close 10166, bind 0, connect 1194749, delroute 7672 0m10.01s real 0m01.19s user 1m09.50s 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 348186 1.00 real 0.18 user 0.83 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 175224 0m01.00s real 0m00.10s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.86s