From owner-freebsd-current@freebsd.org Fri Apr 24 13:51:51 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAB572B5AC7 for ; Fri, 24 Apr 2020 13:51:51 +0000 (UTC) (envelope-from yklaxds@gmail.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 497wZZ6RP3z4P2C for ; Fri, 24 Apr 2020 13:51:50 +0000 (UTC) (envelope-from yklaxds@gmail.com) Received: by mail-io1-xd2e.google.com with SMTP id i19so10366501ioh.12 for ; Fri, 24 Apr 2020 06:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5WPy8rYTazn58tpy6koRRydqeyOEAHLPRNMxqeSkb/s=; b=XypDTzIpCNg7DwjfBuGZvB6CTbcJ4Zqe6BlV31usOzoi9TVitQvsxtRkEG2c26sblD ADfiLmBZBKscOVQ4kfAklh07zt2Gp546qlACZl6fOVu5hDzniJaiQXEqAqJW4K+xTKiW 151tZcLvw8O7PHcdAEo0kes2BWAeFHzIuaUkKvlcY8U1iRHrCNkv4LpmlLUkTU4C942e WzAbK0/Z6+tIfjb0X+EmwRYAx/kd+fqjLFsuXii4hR54zluozwYdT8fK4o+cFcGHvJ33 y9fIzH3VGjo1omVz55m5Z737bZEAMVqMjpkr0cPCtchzrMaFetz7hcHPNmaUb0WIBUg+ RhMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5WPy8rYTazn58tpy6koRRydqeyOEAHLPRNMxqeSkb/s=; b=njIjz03oGaDwj60EOwKe8o48YGNMWPfRcLcwsbVLaf7+lHIGiU4XXevFoILJjSSHGq O6ysueJz7yHc2pnSuYt+9QQXx9u+TK37Sii5khhH+WVeO4K/xIh78cWxPSQD94knSv9q HVdSMVdeL2Hn3wDAJpz3SHz2cOkVYm/L5/Hrv7Tn14yTO6x398LNaJeAILn5/jbZdO1/ UeELypmuqje8PSr4SiwyAgeq2L98qEoLxT90pz4HCQuEk4NXQttqwBp46UkaLl+HBFKo ISR07tB1IcVWh0j4L4LvZUIZH/qtSyRCqaR3Pd1dhoadD3A78f8IkjIRiUlSqjVt/VOb rx5Q== X-Gm-Message-State: AGi0PuaNKLguFAGZIIiZSUgQY+jwopk4FGXDQTtt6Fc6N2MTIFbZnlKR +hZkvej1W/mVW9DqfXvrS/ypqGDqinLCWbDmmmD9Gw== X-Google-Smtp-Source: APiQypJ0AbvduG5+a2wcZtJczE8KFiti5AsZavfR0D7Eb+uNTKpAwf5zNvg5nIt9VNFKO8UP0scDlsZcYC7xW19m1EQ= X-Received: by 2002:a05:6638:155:: with SMTP id y21mr8511128jao.79.1587736309794; Fri, 24 Apr 2020 06:51:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6e02:60d:0:0:0:0 with HTTP; Fri, 24 Apr 2020 06:51:49 -0700 (PDT) In-Reply-To: <5ff3b794-671d-9ab8-2127-38cfb6602039@gmail.com> References: <20200424113135.GH39563@home.opsec.eu> <20200424115425.GA64056@mail.bsd4all.net> <20200424131837.GK39563@home.opsec.eu> <20200424.153055.531079989.sthaug@nethelp.no> <20200424133722.GL39563@home.opsec.eu> <5ff3b794-671d-9ab8-2127-38cfb6602039@gmail.com> From: ykla Date: Fri, 24 Apr 2020 21:51:49 +0800 Message-ID: Subject: Re: How to enable tcp bbr in FreeBSD??? To: Johan Hendriks Cc: "freebsd-current@freebsd.org" X-Rspamd-Queue-Id: 497wZZ6RP3z4P2C X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XypDTzIp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yklaxds@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=yklaxds@gmail.com X-Spamd-Result: default: False [-1.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[e.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-6.19), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2020 13:51:51 -0000 WITH_EXTRA_TCP_STACKS=3D1 in make.conf ? And why not make it in kernel default? =E5=9C=A8 2020=E5=B9=B44=E6=9C=8824=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=94=EF= =BC=8CJohan Hendriks =E5=86=99=E9=81=93=EF=BC=9A > > Op 24-04-2020 om 15:37 schreef Kurt Jaeger: > >> Hi! >> >> You can enable the stack globally on new connections without >>> restarting the box or daemons by running these commands: >>> >>> kldload tcp_bbr >>> >>> sysctl net.inet.tcp.functions_inherit_listen_socket_stack=3D0 >>> sysctl net.inet.tcp.functions_default=3Dbbr >>> >> This fails on the box running 13.0: >> >> # kldload tcp_bbr >> kldload: can't load tcp_bbr: No such file or directory >> >> So it looks it has to be hooked to the build somehow ? >> >> And: man -k bbr has no results as well... >> >> The commit message says the following: > > > This commit adds BBR (Bottleneck Bandwidth and RTT) congestion control. > This > is a completely separate TCP stack (tcp_bbr.ko) that will be built only i= f > you add the make options WITH_EXTRA_TCP_STACKS=3D1 and also include the > option > TCPHPTS. You can also include the RATELIMIT option if you have a NIC > interface that > supports hardware pacing, BBR understands how to use such a feature. > > > So i think you need te rebuild with the following option set > WITH_EXTRA_TCP_STACKS=3D1 > > regards > Johan Hendriks > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >