START sys/netinet/bindconnect 2024-12-26T05:07:58Z ==== 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 399502, close 363259, bind 1225480, connect 1012445, delroute 0 10.01 real 2.08 user 27.84 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 908333, close 401938, bind 7666072, connect 0, delroute 0 10.01 real 7.73 user 72.15 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 18661, close 13824, bind 0, connect 2015925, delroute 0 10.01 real 1.74 user 69.11 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 205866, close 68742, bind 2043858, connect 1083529, delroute 0 10.01 real 2.83 user 66.63 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72367, close 74944, bind 781648, connect 495609, delroute 0 10.17 real 1.01 user 37.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 103426, close 149985, bind 2269702, connect 1351615, delroute 0 10.00 real 2.85 user 65.97 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 59439, close 15591, bind 500100, connect 1793072, delroute 0 10.01 real 1.99 user 71.97 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 117176, close 57529, bind 1975534, connect 1087305, delroute 0 10.01 real 2.68 user 66.55 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 32811, close 25501, bind 0, connect 1530402, delroute 17273 10.01 real 1.40 user 71.74 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 661910, close 467384, bind 2709443, connect 0, delroute 0 10.01 real 2.47 user 67.45 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 351667, close 391557, bind 0, connect 1919834, delroute 0 10.01 real 1.68 user 62.50 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 376184, close 406536, bind 989980, connect 977403, delroute 0 10.01 real 1.81 user 62.32 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103144, close 122219, bind 411704, connect 412680, delroute 0 10.55 real 0.83 user 23.81 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 307722, close 982973, bind 1809258, connect 1842990, delroute 0 10.01 real 3.68 user 63.23 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 353448, close 555723, bind 334444, connect 2038760, delroute 0 10.01 real 2.32 user 71.90 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 368521, close 637715, bind 1117680, connect 1162030, delroute 0 10.01 real 2.36 user 68.21 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 344148, close 287809, bind 0, connect 1777644, delroute 155089 10.01 real 2.11 user 67.68 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 460903, close 257443, bind 8586086, connect 0, delroute 0 10.01 real 7.26 user 72.64 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6712, close 4362, bind 0, connect 1522723, delroute 0 10.01 real 1.11 user 68.36 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36146, close 23859, bind 1787897, connect 863074, delroute 0 10.01 real 2.17 user 64.24 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126096, close 95628, bind 2680741, connect 1404388, delroute 0 10.19 real 2.90 user 63.79 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 55180, close 82741, bind 1892538, connect 1020255, delroute 0 10.00 real 2.43 user 63.37 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 6684, close 4581, bind 411016, connect 1353131, delroute 0 10.00 real 1.71 user 70.72 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 35019, close 22838, bind 1755930, connect 849882, delroute 0 10.00 real 2.11 user 64.63 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 18916, close 9367, bind 0, connect 1173586, delroute 7564 10.01 real 1.02 user 70.34 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 787854, close 231015, bind 8807167, connect 0, delroute 0 10.01 real 7.81 user 72.12 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10254, close 8770, bind 0, connect 1701802, delroute 0 10.01 real 1.39 user 69.45 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 56815, close 41478, bind 1803522, connect 919821, delroute 0 10.01 real 2.19 user 66.58 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73018, close 86169, bind 1231706, connect 748269, delroute 0 10.14 real 1.67 user 43.19 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 64121, close 175713, bind 2113883, connect 1225388, delroute 0 10.00 real 2.52 user 66.01 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 61890, close 10701, bind 440066, connect 1507127, delroute 0 0m10.01s real 0m01.83s user 1m12.82s 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 57265, close 41438, bind 1726496, connect 867336, delroute 0 0m10.01s real 0m02.14s user 1m06.68s 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 23252, close 19747, bind 0, connect 1253905, delroute 11639 0m10.01s real 0m01.36s user 1m11.22s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 654261, close 475445, bind 2686028, connect 0, delroute 0 10.01 real 2.40 user 67.96 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 295891, close 348557, bind 0, connect 1802718, delroute 0 10.01 real 1.87 user 60.53 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 321083, close 370635, bind 909019, connect 944285, delroute 0 10.01 real 1.79 user 60.59 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 99565, close 139314, bind 472883, connect 497134, delroute 0 10.56 real 0.82 user 25.81 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 266290, close 1056073, bind 1776007, connect 1890843, delroute 0 10.00 real 3.85 user 61.04 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 390074, close 443891, bind 350848, connect 2132658, delroute 0 0m10.00s real 0m02.48s user 1m08.58s 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 423127, close 486377, bind 1160738, connect 1159305, delroute 0 0m10.01s real 0m02.28s user 1m05.09s 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 296069, close 258226, bind 0, connect 1643874, delroute 100604 0m10.01s real 0m01.97s user 1m04.09s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 495440, close 231924, bind 8681392, connect 0, delroute 0 10.01 real 7.58 user 72.18 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 8806, close 4569, bind 0, connect 1533672, delroute 0 10.01 real 1.29 user 68.88 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 37077, close 25417, bind 1752757, connect 829527, delroute 0 10.01 real 2.17 user 64.43 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 124648, close 107532, bind 2728202, connect 1433750, delroute 0 10.22 real 3.00 user 62.95 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 39347, close 103705, bind 1938847, connect 1057775, delroute 0 10.01 real 2.05 user 63.33 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 6749, close 4943, bind 416299, connect 1336979, delroute 0 0m10.00s real 0m01.65s user 1m10.62s 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 35261, close 25807, bind 1746409, connect 836194, delroute 0 0m10.01s real 0m01.99s user 1m04.15s 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 14388, close 10121, bind 0, connect 1161049, delroute 7345 0m10.01s real 0m01.13s user 1m10.25s 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 342156 1.00 real 0.13 user 0.87 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 176773 0m01.00s real 0m00.09s user 0m00.91s system PASS sys/netinet/bindconnect Duration 8m16.87s