From owner-freebsd-current@freebsd.org Fri Apr 24 14:08:38 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 796442B61BB for ; Fri, 24 Apr 2020 14:08:38 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 497wxx12WDz4Q2t for ; Fri, 24 Apr 2020 14:08:36 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-wr1-x431.google.com with SMTP id f13so10932048wrm.13 for ; Fri, 24 Apr 2020 07:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=j3meTc3oaT65PLwIA8M/aeZPSgOjne3B81ZvFWtcK7s=; b=gVqsDlKILlvVS3znv+CRa0toOiBP9kHL6HYqbEdw5h92x9/P+2lJZFnMLhJtJr7nGQ l2mXMWbE1z1kGPDKpTS4j5Ns5f/2mUC8iObGwMZmnqRTaJfq1KvN4pK5gwgpVY5PTj5S CK4FjkE0TL0KYqmdsiyXxUs3qhJ7CSylN87KOtdBZUKaXQJu7+ZqBmvMpGBpW3SWseIy Q+bv2tt7Lm8FTav3WVz3mYRJmQ0uFhcJPUSp5Qps9GrgIhIhUQCMX7DQ1stu8kynNfy3 uxCZwT+yOBBt4Dy1vSmQWN1p0qEXHdTRi68d0v1X76OyZIN/e6oRhGqc/TetiO5FUIZW wiVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=j3meTc3oaT65PLwIA8M/aeZPSgOjne3B81ZvFWtcK7s=; b=lLtp+qXTN2YeSCnmUV3pAhim4C43NfLha774omVn55OJNKES7rNdiP8QP6KXXL8poM NXO5pwnbjDo8F5Ft2ALJ+0YI3A6zdSEDcENQgHKT8ZWdsiZUDaT2yobElwxhJ9Zt8t9f HIcMeFmpvGM4urK2Aqp8WcR0+C+F2KtWBhGGtpXHrgvdno4+qx5t1HAO2vUOucK7TTUJ SLDHW43LzgOwmNWSdPkmCvFFKRitYb9Dq34cH7JJgO77G69082RD6lP2QURA8wVTCJtk hJhx7YxGo/nn8xQVWR+YKhrkubsYfI77sL2JNbjLq59pG5wFv6wW+qfOMalsn+ERL5ru GO0A== X-Gm-Message-State: AGi0PuZu6iy9ViLUZ3AthVzmfKTK3HdsDogjhwHirsrZexvVPLZWa3j1 ee9/YeLwTHqasKIfz+LaypXfXoESQ0w= X-Google-Smtp-Source: APiQypLpwkGHLM7Zy9a6CmSdPf+gm6rlaRQu6ieP4QylYNk8MXW8nziZkJ8UQ5FGdsAjr32ysNKEFA== X-Received: by 2002:a5d:4dcb:: with SMTP id f11mr11160088wru.174.1587737314607; Fri, 24 Apr 2020 07:08:34 -0700 (PDT) Received: from MacBook-Pro-van-Johan.local (85-147-130-226.cable.dynamic.v4.ziggo.nl. [85.147.130.226]) by smtp.gmail.com with ESMTPSA id h2sm9318353wro.9.2020.04.24.07.08.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Apr 2020 07:08:33 -0700 (PDT) Subject: Re: How to enable tcp bbr in FreeBSD??? To: freebsd-current@freebsd.org 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: Johan Hendriks Message-ID: <6042155a-297b-d85e-1d64-24d93da329a2@gmail.com> Date: Fri, 24 Apr 2020 16:08:32 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Language: nl X-Rspamd-Queue-Id: 497wxx12WDz4Q2t X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=gVqsDlKI; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johhendriks@gmail.com designates 2a00:1450:4864:20::431 as permitted sender) smtp.mailfrom=johhendriks@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; 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]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-9.07), ipnet: 2a00:1450::/32(-2.33), asn: 15169(-0.43), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[1.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 14:08:38 -0000 Op 24-04-2020 om 15:51 schreef ykla: > WITH_EXTRA_TCP_STACKS=1  in make.conf  ? And why not make it in kernel > default? > > 在 2020年4月24日星期五,Johan Hendriks > 写道: > > > 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=0 > sysctl net.inet.tcp.functions_default=bbr > > 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 if > you add the make options WITH_EXTRA_TCP_STACKS=1 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=1 > > 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 > " > It looks like you need to add the following to the kernel as well. option     TCPHPTS Maybe it is not ready for prime time, i do not know why it is not in the default build. Maybe ask the committer. regards, Johan