START sys/netinet/bindconnect 2025-01-02T05:10:27Z ==== 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 487402, close 707052, bind 1645416, connect 1324064, delroute 0 10.01 real 2.64 user 28.21 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1022484, close 537681, bind 7898038, connect 0, delroute 0 10.01 real 7.15 user 72.49 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 349695, close 21280, bind 0, connect 1954888, delroute 0 10.01 real 2.02 user 70.01 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 191852, close 92521, bind 2162671, connect 1138021, delroute 0 10.01 real 2.59 user 67.17 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73819, close 81068, bind 865660, connect 592521, delroute 0 10.13 real 1.16 user 38.36 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 114450, close 333925, bind 2593631, connect 1663773, delroute 0 10.00 real 3.35 user 65.85 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 43898, close 24418, bind 526089, connect 1855772, delroute 0 10.00 real 2.06 user 71.55 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 140729, close 79520, bind 2047168, connect 1125124, delroute 0 10.01 real 2.22 user 67.11 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 38592, close 38102, bind 0, connect 1569610, delroute 18761 10.01 real 1.56 user 71.53 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 574394, close 372281, bind 7370903, connect 0, delroute 0 10.01 real 6.42 user 72.00 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 396858, close 226321, bind 0, connect 3330399, delroute 0 10.01 real 3.34 user 64.07 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 364120, close 229281, bind 1929513, connect 2041299, delroute 0 10.01 real 3.49 user 64.40 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 78926, close 88615, bind 646279, connect 600362, delroute 0 10.54 real 0.94 user 30.28 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 292754, close 392219, bind 2231763, connect 2353718, delroute 0 10.00 real 4.24 user 63.60 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 344736, close 156582, bind 685490, connect 3633622, delroute 0 10.00 real 4.66 user 72.85 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 173162, close 149304, bind 2714052, connect 1742237, delroute 0 10.01 real 3.99 user 72.42 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 366503, close 210272, bind 0, connect 2571354, delroute 195240 10.01 real 2.93 user 69.10 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 571080, close 361942, bind 8832977, connect 0, delroute 0 10.00 real 7.36 user 72.50 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7764, close 7496, bind 0, connect 1563796, delroute 0 10.01 real 1.45 user 67.78 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 39658, close 31841, bind 1826626, connect 878926, delroute 0 10.01 real 1.98 user 63.46 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130196, close 110768, bind 2762818, connect 1453935, delroute 0 10.19 real 3.16 user 63.31 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 54230, close 187806, bind 2089297, connect 1238438, delroute 0 10.00 real 2.67 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 7907, close 9188, bind 426042, connect 1419782, delroute 0 10.01 real 1.79 user 70.24 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 72514, close 29778, bind 1776474, connect 860285, delroute 0 10.01 real 2.09 user 64.05 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 19545, close 13188, bind 0, connect 1229702, delroute 7896 10.01 real 1.11 user 70.04 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 900592, close 350750, bind 8783954, connect 0, delroute 0 10.01 real 7.89 user 72.05 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 12293, close 15802, bind 0, connect 1777733, delroute 0 10.01 real 1.52 user 69.23 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 61523, close 55243, bind 1842097, connect 958761, delroute 0 10.01 real 2.39 user 67.15 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73697, close 89155, bind 1158575, connect 715116, delroute 0 10.14 real 1.65 user 43.43 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 94276, close 370958, bind 2410866, connect 1544081, delroute 0 10.01 real 3.19 user 65.67 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 12279, close 21321, bind 463128, connect 1634072, delroute 0 0m10.01s real 0m02.01s user 1m12.50s 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 71723, close 53270, bind 1768337, connect 902405, delroute 0 0m10.01s real 0m02.16s user 1m06.42s 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 24859, close 31194, bind 0, connect 1312156, delroute 11890 0m10.01s real 0m01.35s user 1m11.21s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 556467, close 381275, bind 7380145, connect 0, delroute 0 10.00 real 6.49 user 72.06 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 345376, close 208692, bind 0, connect 3060480, delroute 0 10.01 real 3.26 user 62.30 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 320310, close 214073, bind 1770450, connect 1889028, delroute 0 10.01 real 3.14 user 63.89 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79381, close 91678, bind 712604, connect 654296, delroute 0 10.55 real 1.17 user 30.39 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 253871, close 430001, bind 2146265, connect 2269618, delroute 0 10.00 real 4.34 user 62.45 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 543404, close 228384, bind 582636, connect 3646882, delroute 0 0m10.01s real 0m04.42s user 1m11.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 476516, close 275740, bind 2263251, connect 2328335, delroute 0 0m10.00s real 0m04.66s user 1m09.82s 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 305751, close 188542, bind 0, connect 2297143, delroute 130491 0m10.01s real 0m02.38s user 1m05.80s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 585190, close 336941, bind 8924371, connect 0, delroute 0 10.00 real 7.89 user 71.82 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6974, close 7778, bind 0, connect 1555227, delroute 0 10.01 real 1.18 user 68.08 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 54250, close 35570, bind 1811993, connect 862816, delroute 0 10.01 real 1.96 user 63.89 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126907, close 119908, bind 2797379, connect 1471083, delroute 0 10.20 real 3.52 user 63.06 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 60432, close 257687, bind 2189111, connect 1346529, delroute 0 10.00 real 2.69 user 62.78 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 7240, close 8368, bind 422169, connect 1392228, delroute 0 0m10.00s real 0m01.56s user 1m10.59s 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 36643, close 32105, bind 1778123, connect 854755, delroute 0 0m10.01s real 0m01.87s 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 15588, close 21630, bind 0, connect 1233962, delroute 7604 0m10.00s real 0m01.18s user 1m09.62s 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 337236 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 171481 0m01.00s real 0m00.11s user 0m00.87s system PASS sys/netinet/bindconnect Duration 8m16.80s