START sys/netinet/bindconnect 2024-01-15T09:39:51Z ==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -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 1728925, close 391330, bind 785838, connect 419968, delroute 0 10.01 real 1.29 user 28.36 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1038914, close 83414, bind 4418110, connect 0, delroute 0 10.01 real 2.96 user 37.03 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 2551349, close 32833, bind 0, connect 173479, delroute 0 10.01 real 1.21 user 38.71 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2211675, close 56959, bind 86653, connect 67386, delroute 0 10.01 real 1.10 user 38.87 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1018444, close 14877, bind 45356, connect 44154, delroute 0 10.45 real 0.59 user 28.45 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2346366, close 50292, bind 145592, connect 112146, delroute 0 10.00 real 1.09 user 38.78 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.61.26/24 count: socket 2230533, close 7741, bind 18832, connect 60523, delroute 0 10.01 real 1.12 user 38.87 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.61.26/24 count: socket 1893876, close 62572, bind 98777, connect 51214, delroute 0 10.01 real 1.02 user 39.00 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.61.26/24 count: socket 1875845, close 20901, bind 0, connect 113035, delroute 19283 10.01 real 0.92 user 38.91 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 854594, close 115179, bind 1082323, connect 0, delroute 0 10.01 real 0.88 user 37.88 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 917732, close 32365, bind 0, connect 681430, delroute 0 10.01 real 0.95 user 37.14 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 896219, close 42774, bind 404432, connect 254503, delroute 0 10.01 real 0.66 user 37.72 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 123244, close 17925, bind 62760, connect 50934, delroute 0 10.55 real 0.15 user 17.05 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 896479, close 56417, bind 405879, connect 280679, delroute 0 10.00 real 1.00 user 36.88 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.61.26/24 count: socket 856161, close 50820, bind 72750, connect 314530, delroute 0 10.01 real 0.93 user 38.08 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.61.26/24 count: socket 828805, close 83165, bind 215040, connect 179858, delroute 0 10.01 real 0.75 user 38.41 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.61.26/24 count: socket 873070, close 31301, bind 0, connect 416451, delroute 77424 10.01 real 0.86 user 37.58 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1415946, close 854620, bind 1266806, connect 0, delroute 0 10.01 real 1.38 user 38.67 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1967476, close 75382, bind 0, connect 291896, delroute 0 10.01 real 1.04 user 38.93 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1825056, close 187854, bind 245919, connect 78991, delroute 0 10.01 real 1.18 user 38.99 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1448679, close 111755, bind 280463, connect 237781, delroute 0 10.46 real 1.02 user 38.95 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1630303, close 97978, bind 453276, connect 318465, delroute 0 10.00 real 1.28 user 38.67 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.61.26/24 count: socket 2057686, close 174825, bind 43830, connect 153202, delroute 0 10.01 real 1.01 user 39.09 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.61.26/24 count: socket 2409862, close 35795, bind 121962, connect 125544, delroute 0 10.01 real 1.03 user 38.94 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.61.26/24 count: socket 1709838, close 60229, bind 0, connect 184187, delroute 143502 10.01 real 1.07 user 38.89 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 999218, close 223616, bind 3649916, connect 0, delroute 0 10.01 real 2.33 user 37.77 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 2038355, close 18043, bind 0, connect 101292, delroute 0 10.01 real 0.97 user 39.05 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2564237, close 9909, bind 41433, connect 25193, delroute 0 10.01 real 1.12 user 38.85 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 992282, close 14255, bind 48841, connect 45901, delroute 0 10.45 real 0.49 user 30.47 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2394834, close 9297, bind 43531, connect 34247, delroute 0 10.01 real 1.03 user 38.94 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:61::26/64 count: socket 1825634, close 29032, bind 51182, connect 195867, delroute 0 0m10.01s real 0m01.24s user 0m38.66s 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:61::26/64 count: socket 1769947, close 58530, bind 161890, connect 116250, delroute 0 0m10.01s real 0m01.03s user 0m38.84s 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:61::26/64 count: socket 1234013, close 57462, bind 0, connect 335240, delroute 45671 0m10.01s real 0m00.98s user 0m37.27s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 835090, close 142748, bind 1367923, connect 0, delroute 0 10.01 real 1.12 user 37.96 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 729687, close 50437, bind 0, connect 1118069, delroute 0 10.01 real 1.15 user 36.31 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 710011, close 65273, bind 592195, connect 439095, delroute 0 10.01 real 1.03 user 36.57 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 95009, close 35784, bind 127973, connect 102308, delroute 0 10.75 real 0.16 user 17.63 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 640958, close 94030, bind 583728, connect 464010, delroute 0 10.00 real 0.82 user 36.55 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:61::26/64 count: socket 889065, close 30992, bind 114879, connect 483911, delroute 0 0m10.01s real 0m00.96s user 0m37.74s 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:61::26/64 count: socket 884758, close 47559, bind 378244, connect 291528, delroute 0 0m10.01s real 0m01.00s user 0m38.03s 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:61::26/64 count: socket 858070, close 28194, bind 0, connect 329591, delroute 35275 0m10.01s real 0m00.82s user 0m37.02s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 648343, close 560186, bind 4473295, connect 0, delroute 0 10.01 real 2.92 user 36.93 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 925353, close 55157, bind 0, connect 875729, delroute 0 10.01 real 1.30 user 38.78 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1157869, close 131882, bind 561000, connect 274482, delroute 0 10.01 real 0.86 user 39.08 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1475211, close 87310, bind 283808, connect 205102, delroute 0 10.42 real 1.12 user 39.08 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1329086, close 187582, bind 518136, connect 239927, delroute 0 10.00 real 1.09 user 38.94 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:61::26/64 count: socket 941128, close 139354, bind 391154, connect 808681, delroute 0 0m10.01s real 0m01.39s user 0m38.55s 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:61::26/64 count: socket 854536, close 159766, bind 863713, connect 560362, delroute 0 0m10.01s real 0m01.41s user 0m38.39s 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:61::26/64 count: socket 1575402, close 26555, bind 0, connect 175487, delroute 31543 0m10.01s real 0m01.09s user 0m37.98s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.61.26/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 238367 1.00 real 0.09 user 0.89 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:61::26/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 100925 0m01.01s real 0m00.02s user 0m01.01s system PASS sys/netinet/bindconnect Duration 8m19.63s