START sys/netinet/bindconnect 2024-12-19T05:06:00Z ==== 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 417547, close 372976, bind 1277387, connect 1027600, delroute 0 10.01 real 2.30 user 28.10 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 906343, close 394670, bind 7785060, connect 0, delroute 0 10.01 real 6.99 user 72.75 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 21229, close 15818, bind 0, connect 2006214, delroute 0 10.01 real 1.52 user 69.79 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 100692, close 66796, bind 2092012, connect 1147473, delroute 0 10.01 real 2.71 user 66.92 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 65361, close 56971, bind 562623, connect 398449, delroute 0 10.11 real 0.81 user 36.31 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 83075, close 147217, bind 2284369, connect 1388860, delroute 0 10.00 real 2.96 user 65.92 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 35845, close 14775, bind 499539, connect 1832493, delroute 0 10.01 real 1.84 user 72.26 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 105646, close 55364, bind 2004762, connect 1097706, delroute 0 10.01 real 2.48 user 67.13 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 31294, close 23614, bind 0, connect 1530938, delroute 15709 10.01 real 1.44 user 71.40 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 654162, close 474603, bind 2682588, connect 0, delroute 0 10.01 real 2.57 user 67.43 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 353571, close 378065, bind 0, connect 1884906, delroute 0 10.01 real 2.01 user 61.93 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 373459, close 403163, bind 964881, connect 952890, delroute 0 10.01 real 1.91 user 62.18 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101845, close 124151, bind 405626, connect 420119, delroute 0 10.53 real 0.63 user 23.58 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 309824, close 937643, bind 1740751, connect 1775922, delroute 0 10.00 real 3.45 user 61.89 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 352425, close 540897, bind 319834, connect 1970349, delroute 0 10.01 real 2.57 user 70.65 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 361911, close 644887, bind 1088220, connect 1156474, delroute 0 10.01 real 2.42 user 67.78 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 351010, close 283485, bind 0, connect 1707996, delroute 140425 10.01 real 2.09 user 66.92 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 462282, close 238869, bind 8691125, connect 0, delroute 0 10.01 real 7.53 user 72.24 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5800, close 3930, bind 0, connect 1532091, delroute 0 10.01 real 1.16 user 67.88 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 33950, close 21726, bind 1756514, connect 838669, delroute 0 10.01 real 1.95 user 63.90 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125546, close 92403, bind 2665583, connect 1394906, delroute 0 10.20 real 3.11 user 63.98 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 35481, close 71078, bind 1863098, connect 1000960, delroute 0 10.00 real 2.27 user 62.73 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 6826, close 5248, bind 405610, connect 1348108, delroute 0 10.01 real 1.65 user 69.96 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 35247, close 23129, bind 1748533, connect 844010, delroute 0 10.01 real 2.03 user 64.36 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 15728, close 9456, bind 0, connect 1177366, delroute 7887 10.01 real 1.22 user 69.70 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 773247, close 214384, bind 8895483, connect 0, delroute 0 10.01 real 7.87 user 72.06 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 32391, close 9061, bind 0, connect 1690243, delroute 0 10.01 real 1.70 user 69.40 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 56181, close 40571, bind 1787329, connect 918061, delroute 0 10.01 real 1.93 user 67.19 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71134, close 82708, bind 1177541, connect 740633, delroute 0 10.14 real 1.58 user 43.26 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 62097, close 171693, bind 2092429, connect 1231887, delroute 0 10.00 real 2.51 user 66.41 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 10578, close 9496, bind 432598, connect 1511019, delroute 0 0m10.00s real 0m01.88s user 1m11.63s 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 52887, close 38047, bind 1702599, connect 856334, delroute 0 0m10.01s real 0m02.28s user 1m06.69s 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 21124, close 18549, bind 0, connect 1263837, delroute 10631 0m10.00s real 0m01.19s user 1m10.84s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 638187, close 466237, bind 2619649, connect 0, delroute 0 10.01 real 2.32 user 67.00 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 297561, close 338702, bind 0, connect 1767940, delroute 0 10.01 real 1.81 user 59.95 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 319576, close 363633, bind 898666, connect 916518, delroute 0 10.01 real 2.02 user 61.17 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 102481, close 134472, bind 460417, connect 494462, delroute 0 10.56 real 0.81 user 25.48 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 262617, close 1066308, bind 1765786, connect 1879683, delroute 0 10.00 real 3.88 user 60.75 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 384979, close 423608, bind 343648, connect 2060520, delroute 0 0m10.00s real 0m02.56s user 1m07.85s 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 415671, close 471487, bind 1099965, connect 1112224, delroute 0 0m10.00s real 0m02.08s user 1m04.63s 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 290065, close 251028, bind 0, connect 1563716, delroute 95230 0m10.01s real 0m01.74s user 1m04.73s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 480944, close 224472, bind 8733610, connect 0, delroute 0 10.01 real 7.48 user 72.26 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 21892, close 3295, bind 0, connect 1487350, delroute 0 10.01 real 1.35 user 67.61 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 34593, close 24071, bind 1742247, connect 820313, delroute 0 10.01 real 2.05 user 63.59 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 123710, close 98265, bind 2686048, connect 1394462, delroute 0 10.20 real 3.41 user 62.91 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 41476, close 84931, bind 1867533, connect 990103, delroute 0 10.01 real 2.36 user 62.05 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 6565, close 5335, bind 408439, connect 1339096, delroute 0 0m10.00s real 0m01.69s user 1m09.60s 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 34383, close 23434, bind 1718850, connect 824077, delroute 0 0m10.01s real 0m02.17s user 1m03.72s 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 13329, close 9029, bind 0, connect 1134983, delroute 6976 0m10.01s real 0m01.07s user 1m09.51s 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 333654 1.00 real 0.11 user 0.90 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 172911 0m01.00s real 0m00.13s user 0m00.87s system PASS sys/netinet/bindconnect Duration 8m16.78s