START sys/netinet/bindconnect 2024-12-23T05:12:15Z ==== 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 425561, close 387009, bind 1240953, connect 1028630, delroute 0 10.00 real 1.98 user 28.81 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 825651, close 393105, bind 7977491, connect 0, delroute 0 10.01 real 7.29 user 72.42 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 48912, close 16357, bind 0, connect 2003411, delroute 0 10.01 real 1.59 user 69.81 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 97348, close 65902, bind 2102709, connect 1103683, delroute 0 10.01 real 2.68 user 66.55 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72053, close 76495, bind 828152, connect 611296, delroute 0 10.14 real 1.17 user 39.69 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 95278, close 163665, bind 2349842, connect 1428544, delroute 0 10.01 real 2.81 user 66.55 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 19082, close 16114, bind 505504, connect 1831488, delroute 0 10.01 real 1.96 user 72.62 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 82125, close 57070, bind 2006826, connect 1083479, delroute 0 10.01 real 2.66 user 66.58 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 35432, close 27916, bind 0, connect 1551951, delroute 18586 10.01 real 1.46 user 71.43 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 656203, close 473447, bind 2729517, connect 0, delroute 0 10.01 real 2.64 user 67.26 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 363154, close 398544, bind 0, connect 1968521, delroute 0 10.01 real 1.79 user 62.71 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 376662, close 420308, bind 1000263, connect 1004877, delroute 0 10.01 real 2.11 user 62.43 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 105854, close 130057, bind 409907, connect 431082, delroute 0 10.53 real 0.83 user 24.11 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 313374, close 1052435, bind 1855356, connect 1908034, delroute 0 10.01 real 3.98 user 62.66 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 356508, close 536696, bind 329203, connect 2000678, delroute 0 10.00 real 2.51 user 71.57 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 358513, close 668864, bind 1122282, connect 1200394, delroute 0 10.01 real 2.51 user 68.52 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 352174, close 283392, bind 0, connect 1759330, delroute 153129 10.01 real 2.24 user 67.51 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 414153, close 256038, bind 8746215, connect 0, delroute 0 10.01 real 7.26 user 72.74 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 14732, close 4065, bind 0, connect 1557334, delroute 0 10.01 real 1.22 user 68.07 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36082, close 23610, bind 1801857, connect 876546, delroute 0 10.01 real 2.05 user 63.75 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125506, close 91832, bind 2703385, connect 1424643, delroute 0 10.20 real 3.34 user 63.56 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 36025, close 72517, bind 1897469, connect 1018129, delroute 0 10.00 real 2.14 user 63.52 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 7166, close 4737, bind 423151, connect 1400094, delroute 0 10.01 real 1.52 user 70.34 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 35559, close 23095, bind 1754550, connect 855093, delroute 0 10.01 real 1.90 user 63.86 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 15700, close 10239, bind 0, connect 1188636, delroute 7736 10.01 real 1.08 user 69.96 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 703662, close 258936, bind 8852277, connect 0, delroute 0 10.01 real 8.14 user 71.78 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10026, close 8695, bind 0, connect 1723234, delroute 0 10.01 real 1.49 user 69.14 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 54179, close 38646, bind 1824945, connect 935110, delroute 0 10.01 real 2.12 user 67.64 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70585, close 80860, bind 1153713, connect 727071, delroute 0 10.13 real 1.45 user 44.60 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 59120, close 159795, bind 2124920, connect 1224861, delroute 0 10.00 real 2.28 user 65.48 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 29456, close 8978, bind 433757, connect 1512164, delroute 0 0m10.01s real 0m01.81s user 1m12.19s 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 53325, close 38092, bind 1745095, connect 863943, delroute 0 0m10.01s real 0m02.31s user 1m06.44s 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 20835, close 17300, bind 0, connect 1275689, delroute 10634 0m10.01s real 0m01.17s user 1m10.86s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 640509, close 470796, bind 2700352, connect 0, delroute 0 10.01 real 2.73 user 67.11 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 301555, close 358859, bind 0, connect 1866182, delroute 0 10.01 real 1.89 user 60.70 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 321005, close 369157, bind 913721, connect 944818, delroute 0 10.01 real 1.78 user 61.33 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101685, close 130393, bind 453951, connect 484571, delroute 0 10.55 real 0.80 user 25.76 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 264102, close 1102869, bind 1833594, connect 1933416, delroute 0 10.01 real 4.00 user 60.50 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 395341, close 441494, bind 357535, connect 2194165, delroute 0 0m10.00s real 0m02.72s user 1m08.32s 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 420739, close 493441, bind 1169974, connect 1190202, delroute 0 0m10.01s real 0m02.20s user 1m05.58s 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 298126, close 251770, bind 0, connect 1657162, delroute 105140 0m10.01s real 0m01.90s user 1m05.32s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 448826, close 236970, bind 8819819, connect 0, delroute 0 10.01 real 7.63 user 72.08 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5493, close 3965, bind 0, connect 1572746, delroute 0 10.01 real 1.48 user 67.80 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 34706, close 24771, bind 1780866, connect 846648, delroute 0 10.01 real 1.84 user 64.04 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 123712, close 102875, bind 2786180, connect 1462885, delroute 0 10.20 real 2.90 user 63.69 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 38262, close 101087, bind 1980015, connect 1074877, delroute 0 10.01 real 2.38 user 62.50 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 6312, close 4681, bind 407625, connect 1362211, delroute 0 0m10.00s real 0m01.78s user 1m10.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 34054, close 23638, bind 1768930, connect 853957, delroute 0 0m10.01s real 0m02.20s user 1m04.00s 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 13458, close 9273, bind 0, connect 1192711, delroute 7023 0m10.01s real 0m01.06s user 1m10.05s 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 347516 1.00 real 0.14 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 174066 0m01.00s real 0m00.08s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.88s