START sys/netinet/bindconnect 2024-09-06T00:37:14Z ==== 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 340427, close 151020, bind 320124, connect 252481, delroute 0 10.02 real 1.18 user 26.49 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 623550, close 51384, bind 1517126, connect 0, delroute 0 10.03 real 2.06 user 37.96 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 738597, close 4159, bind 0, connect 147841, delroute 0 10.02 real 1.12 user 38.84 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 799595, close 6177, bind 57015, connect 55101, delroute 0 10.03 real 1.04 user 38.88 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75120, close 29283, bind 226069, connect 190439, delroute 0 11.03 real 0.66 user 23.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 792832, close 9395, bind 61848, connect 58455, delroute 0 10.03 real 1.09 user 38.66 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 818398, close 1844, bind 9091, connect 42348, delroute 0 10.03 real 0.72 user 39.13 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 814877, close 5297, bind 44392, connect 39678, delroute 0 10.03 real 0.73 user 39.27 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 739250, close 6301, bind 0, connect 82777, delroute 8316 10.03 real 1.03 user 38.81 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 449080, close 90329, bind 919966, connect 0, delroute 0 10.03 real 1.15 user 38.08 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 395111, close 31807, bind 0, connect 553243, delroute 0 10.03 real 1.47 user 36.35 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 355769, close 46013, bind 592294, connect 249348, delroute 0 10.03 real 1.47 user 36.30 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 91800, close 105587, bind 349238, connect 369420, delroute 0 11.84 real 0.80 user 27.56 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 348804, close 87342, bind 431432, connect 277457, delroute 0 10.02 real 1.34 user 35.78 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 377672, close 37559, bind 175315, connect 562882, delroute 0 10.03 real 1.39 user 37.83 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 349060, close 64051, bind 103860, connect 133366, delroute 0 10.03 real 0.98 user 38.29 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 384748, close 25478, bind 0, connect 307113, delroute 46010 10.03 real 1.22 user 37.17 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 735992, close 162990, bind 522856, connect 0, delroute 0 10.03 real 1.18 user 38.87 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 796966, close 4303, bind 0, connect 80114, delroute 0 10.02 real 0.80 user 39.10 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 738342, close 11962, bind 107504, connect 116500, delroute 0 10.03 real 0.92 user 39.16 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 607977, close 50045, bind 279825, connect 242282, delroute 0 11.54 real 1.17 user 37.58 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 780169, close 12676, bind 63597, connect 59249, delroute 0 10.05 real 1.01 user 38.49 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 794663, close 4812, bind 16828, connect 73953, delroute 0 10.02 real 1.01 user 39.19 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 804633, close 10234, bind 48572, connect 51557, delroute 0 10.02 real 1.22 user 38.75 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 810458, close 10527, bind 0, connect 55830, delroute 15283 10.03 real 1.06 user 39.01 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 706752, close 27839, bind 1166510, connect 0, delroute 0 10.03 real 1.48 user 38.51 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 777314, close 2291, bind 0, connect 74728, delroute 0 10.03 real 1.00 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 770998, close 5557, bind 63325, connect 53484, delroute 0 10.03 real 0.91 user 39.12 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 73926, close 19243, bind 191104, connect 153656, delroute 0 10.96 real 0.56 user 23.45 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 761397, close 10030, bind 66371, connect 52802, delroute 0 10.03 real 0.94 user 38.59 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 364129, close 13382, bind 82212, connect 312783, delroute 0 0m10.03s real 0m01.28s user 0m38.08s 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 385881, close 31874, bind 284594, connect 202671, delroute 0 0m10.03s real 0m01.28s user 0m37.04s 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 180669, close 19702, bind 0, connect 325213, delroute 24417 0m10.03s real 0m00.82s user 0m36.94s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 414505, close 139741, bind 1225139, connect 0, delroute 0 10.03 real 1.32 user 37.78 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 230529, close 72611, bind 0, connect 605391, delroute 0 10.03 real 0.90 user 32.98 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 229361, close 83082, bind 382564, connect 268199, delroute 0 10.03 real 1.08 user 33.06 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 84090, close 148592, bind 505498, connect 496771, delroute 0 11.50 real 1.13 user 26.82 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 216222, close 206945, bind 483333, connect 402261, delroute 0 10.03 real 1.29 user 32.66 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 412840, close 18591, bind 229666, connect 684484, delroute 0 0m10.03s real 0m01.65s user 0m36.72s 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 375914, close 38862, bind 498074, connect 320359, delroute 0 0m10.03s real 0m01.16s user 0m36.94s 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 324790, close 34409, bind 0, connect 306829, delroute 17414 0m10.03s real 0m01.07s user 0m35.82s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 468198, close 46954, bind 929079, connect 0, delroute 0 10.03 real 1.12 user 38.92 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 606502, close 3422, bind 0, connect 65796, delroute 0 10.03 real 0.91 user 39.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 597470, close 8000, bind 59969, connect 63893, delroute 0 10.02 real 0.98 user 39.00 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 380240, close 42699, bind 313716, connect 290786, delroute 0 11.67 real 1.35 user 37.54 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 559935, close 10955, bind 63879, connect 64770, delroute 0 10.02 real 0.95 user 38.25 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 441265, close 18229, bind 54362, connect 295148, delroute 0 0m10.04s real 0m01.35s user 0m38.51s 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 404733, close 39233, bind 292843, connect 269564, delroute 0 0m10.03s real 0m01.29s user 0m38.64s 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 479225, close 15126, bind 0, connect 148901, delroute 19741 0m10.03s real 0m01.05s user 0m38.18s 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 53266 1.02 real 0.07 user 0.93 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 24889 0m01.03s real 0m00.01s user 0m01.00s system PASS sys/netinet/bindconnect Duration 8m39.43s