From nobody Sat Jun 04 15:57:23 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 004051BD7D8F; Sat, 4 Jun 2022 15:57:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LFksg1szWz3Px9; Sat, 4 Jun 2022 15:57:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654358247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1aPALzhU3r1YZstKo07Y0WHHnE4ZQ8+LcuuF4JGEWrU=; b=bBpnEw0p7/TS5SZVc2npKphNTPAHCHvwdY4NEtTjsSrPovk8nyHmGzSLe0rwjBSE2wUOk+ /MTBmMbVY6oIk2atWrC7sycYkOqtUQNvMMJ13gLCiTTULD8i7jzA4Ey/MOTWK1Nm+Pw13Y 9cdwhu21qDi0pIC/c7zStj2AJbPmeh57Qp6kuTij9iH3zdflPIeuiYbFoefUo/KfzcaNVm tQ/RnM6AS+cP/OJPBlTjGllQ16B42x/yKW7EKDn9dBcc+Lrq/u2Ps7YJKmKS+3uy1Fr/C+ 2sdxzXFRU5Hn72j8YlsKapU/SDWUipNTQy6YS3g8nCfbYpJO9OuBD5Vekt6eSw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BCABF20941; Sat, 4 Jun 2022 15:57:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 254FvN2q008583; Sat, 4 Jun 2022 15:57:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 254FvN5L008582; Sat, 4 Jun 2022 15:57:23 GMT (envelope-from git) Date: Sat, 4 Jun 2022 15:57:23 GMT Message-Id: <202206041557.254FvN5L008582@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gordon Bergling Subject: git: 32a01b2b8691 - main - rack: Fix a common typo in comments and a sysctl description List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 32a01b2b8691453b59a26cf273a5a5eae7643985 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654358247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1aPALzhU3r1YZstKo07Y0WHHnE4ZQ8+LcuuF4JGEWrU=; b=gHtGaFHbpeu2tlkRIEU/sSgkaHsClayVr+cPuP3qrin7leou3bk0DP3XC66AfQQ641D8un qGXZ79fwOSyWqtLDqwNCb0Gmyi2tXbqAilNk9KZTbZuRitEACIg51PFSdbRE3KtMfHvA/N 2CIbtUY1+/tVMoFaUUbHnnjN7X3lTk6fKNN5BsIl50coqfE/pjGfEwxQD0RcIw+o/zqd38 OHgnyh6kBmu16AuFDhtgGcfaS/JWlj82gdQ2xUgIuiQioshIUJiRUMjlkA76H0kdG/+9FX Wyv4FB2Ym7FmxHDQ5GTUY6ju71RZgNZDSckHKAtN1vkAtmHK+qgIYi9my/nZQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654358247; a=rsa-sha256; cv=none; b=dIyjbruC7/YA5BvYIxCtrtptH65PaxFajkyq+TAhiRZ++D4GI42I1QWp4JleZP3T8ITXBc sV72wP3y3FyZEHYTA6VVifa2JSlvx2j6RPzl0IqnieB0RNfzX+/+t9E51pnz3d/iA1cY1M goqsHvgu/7IM7peDU7DTNx6bX6wbx1UPqsHLawuwTHVf6i+a9uuiovPheklzAYDUDjSMMj c7XTxaHLHXqvWCSj9hDnkZYTlOIOc5LkkXkarERoobkTC0K3upgDua4S2ph0S53K82ECp6 Bpx3OA6UBrb55mvrlZKbvYK+k4P98GDhaYh2A4NUE76XONUiSfAqVMqMzcYsYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=32a01b2b8691453b59a26cf273a5a5eae7643985 commit 32a01b2b8691453b59a26cf273a5a5eae7643985 Author: Gordon Bergling AuthorDate: 2022-06-04 15:56:56 +0000 Commit: Gordon Bergling CommitDate: 2022-06-04 15:56:56 +0000 rack: Fix a common typo in comments and a sysctl description - s/multipler/multiplier/ MFC after: 3 days --- sys/netinet/tcp_stacks/rack.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index cdfd9541fb53..3b40138d0fd5 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -310,8 +310,8 @@ static int32_t rack_gp_per_bw_mul_down = 4; /* 4% */ static int32_t rack_gp_rtt_maxmul = 3; /* 3 x maxmin */ static int32_t rack_gp_rtt_minmul = 1; /* minrtt + (minrtt/mindiv) is lower rtt */ static int32_t rack_gp_rtt_mindiv = 4; /* minrtt + (minrtt * minmul/mindiv) is lower rtt */ -static int32_t rack_gp_decrease_per = 20; /* 20% decrease in multipler */ -static int32_t rack_gp_increase_per = 2; /* 2% increase in multipler */ +static int32_t rack_gp_decrease_per = 20; /* 20% decrease in multiplier */ +static int32_t rack_gp_increase_per = 2; /* 2% increase in multiplier */ static int32_t rack_per_lower_bound = 50; /* Don't allow to drop below this multiplier */ static int32_t rack_per_upper_bound_ss = 0; /* Don't allow SS to grow above this */ static int32_t rack_per_upper_bound_ca = 0; /* Don't allow CA to grow above this */ @@ -1107,7 +1107,7 @@ rack_init_sysctls(void) SYSCTL_CHILDREN(rack_timely), OID_AUTO, "rtt_max_mul", CTLFLAG_RW, &rack_gp_rtt_maxmul, 3, - "Rack timely multipler of lowest rtt for rtt_max"); + "Rack timely multiplier of lowest rtt for rtt_max"); SYSCTL_ADD_S32(&rack_sysctl_ctx, SYSCTL_CHILDREN(rack_timely), OID_AUTO, "rtt_min_div", CTLFLAG_RW, @@ -3110,7 +3110,7 @@ rack_bw_can_be_raised(struct tcp_rack *rack, uint64_t cur_bw, uint64_t last_bw_e * rate to push us faster there is no sense of * increasing. * - * We first caculate our actual pacing rate (ss or ca multipler + * We first caculate our actual pacing rate (ss or ca multiplier * times our cur_bw). * * Then we take the last measured rate and multipy by our @@ -3863,7 +3863,7 @@ rack_update_multiplier(struct tcp_rack *rack, int32_t timely_says, uint64_t last (rack->use_fixed_rate) || (rack->in_probe_rtt) || (rack->rc_always_pace == 0)) { - /* No dynamic GP multipler in play */ + /* No dynamic GP multiplier in play */ return; } losses = rack->r_ctl.rc_loss_count - rack->r_ctl.rc_loss_at_start; @@ -4030,7 +4030,7 @@ rack_make_timely_judgement(struct tcp_rack *rack, uint32_t rtt, int32_t rtt_diff log_rtt_a_diff |= (uint32_t)rtt_diff; if (rtt >= (get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt) * rack_gp_rtt_maxmul)) { - /* Reduce the b/w multipler */ + /* Reduce the b/w multiplier */ timely_says = 2; log_mult = get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt) * rack_gp_rtt_maxmul; log_mult <<= 32; @@ -4041,7 +4041,7 @@ rack_make_timely_judgement(struct tcp_rack *rack, uint32_t rtt, int32_t rtt_diff } else if (rtt <= (get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt) + ((get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt) * rack_gp_rtt_minmul) / max(rack_gp_rtt_mindiv , 1)))) { - /* Increase the b/w multipler */ + /* Increase the b/w multiplier */ log_mult = get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt) + ((get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt) * rack_gp_rtt_minmul) / max(rack_gp_rtt_mindiv , 1)); @@ -4068,13 +4068,13 @@ rack_make_timely_judgement(struct tcp_rack *rack, uint32_t rtt, int32_t rtt_diff if (rtt_diff <= 0) { /* * Rttdiff is less than zero, increase the - * b/w multipler (its 0 or negative) + * b/w multiplier (its 0 or negative) */ timely_says = 0; rack_log_timely(rack, timely_says, log_mult, get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt), log_rtt_a_diff, __LINE__, 6); } else { - /* Reduce the b/w multipler */ + /* Reduce the b/w multiplier */ timely_says = 1; rack_log_timely(rack, timely_says, log_mult, get_filter_value_small(&rack->r_ctl.rc_gp_min_rtt), log_rtt_a_diff, __LINE__, 7); @@ -9854,7 +9854,7 @@ rack_check_bottom_drag(struct tcpcb *tp, * * This means we need to boost the b/w in * addition to any earlier boosting of - * the multipler. + * the multiplier. */ rack->rc_dragged_bottom = 1; rack_validate_multipliers_at_or_above100(rack);