START sys/netinet/bindconnect 2024-07-06T00:49:28Z ==== 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 212301, close 242882, bind 518008, connect 419652, delroute 0 10.03 real 1.34 user 26.71 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 721009, close 60382, bind 1395495, connect 0, delroute 0 10.02 real 1.91 user 38.11 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 923333, close 6897, bind 0, connect 100715, delroute 0 10.03 real 0.96 user 39.15 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 941251, close 11459, bind 56170, connect 58431, delroute 0 10.03 real 1.00 user 39.06 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 84491, close 44763, bind 255489, connect 205955, delroute 0 10.97 real 0.72 user 25.48 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 921745, close 22842, bind 71429, connect 73633, delroute 0 10.02 real 1.08 user 38.55 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.51.25/24 count: socket 986158, close 4060, bind 9321, connect 43829, delroute 0 10.02 real 1.16 user 38.96 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.51.25/24 count: socket 943910, close 7959, bind 46569, connect 42985, delroute 0 10.02 real 1.01 user 38.98 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.51.25/24 count: socket 906528, close 9453, bind 0, connect 76576, delroute 6780 10.02 real 1.05 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 470996, close 85178, bind 982668, connect 0, delroute 0 10.02 real 1.31 user 37.99 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 399999, close 32075, bind 0, connect 909995, delroute 0 10.02 real 1.49 user 36.62 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 383207, close 49939, bind 512975, connect 242003, delroute 0 10.02 real 1.34 user 36.13 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 94298, close 119471, bind 397794, connect 407121, delroute 0 11.53 real 1.04 user 29.35 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 373925, close 80390, bind 349305, connect 221225, delroute 0 10.02 real 1.29 user 35.72 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.51.25/24 count: socket 397100, close 39611, bind 92534, connect 454246, delroute 0 10.03 real 1.46 user 37.95 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.51.25/24 count: socket 342882, close 84468, bind 146822, connect 165198, delroute 0 10.02 real 1.07 user 37.89 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.51.25/24 count: socket 395760, close 28334, bind 0, connect 239124, delroute 39064 10.03 real 0.87 user 37.14 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 626019, close 148151, bind 1090380, connect 0, delroute 0 10.02 real 1.50 user 38.59 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 934353, close 8248, bind 0, connect 81094, delroute 0 10.02 real 0.95 user 39.12 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 951085, close 22195, bind 82956, connect 63879, delroute 0 10.02 real 1.07 user 38.89 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 658793, close 78857, bind 368883, connect 276389, delroute 0 11.53 real 1.39 user 38.53 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 830723, close 66874, bind 196359, connect 167392, delroute 0 10.03 real 1.32 user 38.14 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.51.25/24 count: socket 988216, close 4553, bind 6756, connect 38444, delroute 0 10.03 real 1.02 user 39.00 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.51.25/24 count: socket 930349, close 34394, bind 98151, connect 64534, delroute 0 10.02 real 1.12 user 38.88 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.51.25/24 count: socket 933000, close 16721, bind 0, connect 78306, delroute 23041 10.03 real 0.91 user 39.10 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 701876, close 9712, bind 1828260, connect 0, delroute 0 10.03 real 1.99 user 38.18 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 882383, close 4551, bind 0, connect 84791, delroute 0 10.02 real 0.84 user 39.24 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 909850, close 6660, bind 44109, connect 41754, delroute 0 10.03 real 1.15 user 39.05 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79915, close 40291, bind 243298, connect 193468, delroute 0 10.90 real 0.62 user 27.06 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 892312, close 20802, bind 51993, connect 49193, delroute 0 10.02 real 1.36 user 38.31 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:51::25/64 count: socket 437272, close 23332, bind 82945, connect 323067, delroute 0 0m10.02s real 0m01.13s user 0m38.34s 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:51::25/64 count: socket 420079, close 58330, bind 310900, connect 233328, delroute 0 0m10.03s real 0m00.96s user 0m37.25s 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:51::25/64 count: socket 259979, close 34469, bind 0, connect 323938, delroute 21706 0m10.03s real 0m00.95s user 0m36.70s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 433917, close 146870, bind 1314576, connect 0, delroute 0 10.02 real 1.50 user 37.30 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 244576, close 69423, bind 0, connect 605687, delroute 0 10.03 real 1.10 user 32.57 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 235519, close 90361, bind 433917, connect 278109, delroute 0 10.02 real 1.05 user 32.62 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 84983, close 145032, bind 509370, connect 503805, delroute 0 11.29 real 1.15 user 27.61 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 225016, close 190084, bind 501328, connect 398784, delroute 0 10.03 real 1.37 user 32.63 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:51::25/64 count: socket 361095, close 17801, bind 213383, connect 503421, delroute 0 0m10.03s real 0m01.21s user 0m33.18s 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:51::25/64 count: socket 320110, close 26757, bind 367529, connect 248125, delroute 0 0m10.03s real 0m01.11s user 0m31.11s 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:51::25/64 count: socket 263200, close 32674, bind 0, connect 205037, delroute 14200 0m10.04s real 0m00.96s user 0m30.48s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 469427, close 156289, bind 1319622, connect 0, delroute 0 10.11 real 1.86 user 38.61 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 696430, close 8919, bind 0, connect 85059, delroute 0 10.02 real 1.05 user 39.02 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 649388, close 22006, bind 108713, connect 106198, delroute 0 10.03 real 1.15 user 38.79 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 400689, close 70419, bind 359757, connect 343010, delroute 0 11.62 real 1.47 user 38.70 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 613089, close 40679, bind 149496, connect 132190, delroute 0 10.03 real 1.22 user 37.98 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:51::25/64 count: socket 492276, close 39565, bind 71783, connect 316215, delroute 0 0m10.03s real 0m01.42s user 0m38.50s 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:51::25/64 count: socket 416729, close 86878, bind 364398, connect 316257, delroute 0 0m10.03s real 0m01.43s user 0m38.33s 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:51::25/64 count: socket 503302, close 30031, bind 0, connect 190737, delroute 21008 0m10.03s real 0m01.16s user 0m38.01s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.51.25/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 55461 1.02 real 0.06 user 0.98 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:51::25/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 25080 0m01.02s real 0m00.02s user 0m00.98s system PASS sys/netinet/bindconnect Duration 8m38.29s