commit | 2b3a8f6d084ebeaf3a617c8126ca3dd9b8277494 | [log] [tgz] |
---|---|---|
author | Oleksandr Tymoshenko <ovt@google.com> | Thu Aug 08 00:58:08 2024 +0000 |
committer | Oleksandr Tymoshenko <ovt@google.com> | Tue Aug 13 04:55:11 2024 +0000 |
tree | 56a420b47096d5f6a890a077c2ade2d26a8337e4 | |
parent | 409e8c31de096346ff5d15a6e3ae07d30fb3993a [diff] |
chromeos-base/chromeos-base: reduce tcp_rto_min_us value to 5ms Optimize TCP behavior for GCP to GCP connections BUG=b/339642517 TEST=presubmit RELEASE_NOTE=None Change-Id: I36586914734e0d09506647f9b009f2fec41e5887 Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/78479 Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com> Reviewed-by: Kevin Berry <kpberry@google.com> Reviewed-by: Arnav Kansal <rnv@google.com>
diff --git a/project-lakitu/chromeos-base/chromeos-base/chromeos-base-2-r42.ebuild b/project-lakitu/chromeos-base/chromeos-base/chromeos-base-2-r43.ebuild similarity index 100% rename from project-lakitu/chromeos-base/chromeos-base/chromeos-base-2-r42.ebuild rename to project-lakitu/chromeos-base/chromeos-base/chromeos-base-2-r43.ebuild
diff --git a/project-lakitu/chromeos-base/chromeos-base/chromeos-base-2.ebuild b/project-lakitu/chromeos-base/chromeos-base/chromeos-base-2.ebuild index bafcc1a..0a91346 100644 --- a/project-lakitu/chromeos-base/chromeos-base/chromeos-base-2.ebuild +++ b/project-lakitu/chromeos-base/chromeos-base/chromeos-base-2.ebuild
@@ -12,7 +12,7 @@ LICENSE="BSD-Google" SLOT="0" KEYWORDS="*" -IUSE="pam" +IUSE="pam platform_gcp" DEPEND=">=sys-apps/baselayout-2 " @@ -90,6 +90,9 @@ insinto /etc/sysctl.d doins "${FILESDIR}"/00-sysctl.conf + if use platform_gcp; then + doins "${FILESDIR}"/01-gcp-network.conf + fi insinto /lib/udev/rules.d doins "${FILESDIR}"/udev-rules/*.rules
diff --git a/project-lakitu/chromeos-base/chromeos-base/files/01-gcp-network.conf b/project-lakitu/chromeos-base/chromeos-base/files/01-gcp-network.conf new file mode 100644 index 0000000..f332146 --- /dev/null +++ b/project-lakitu/chromeos-base/chromeos-base/files/01-gcp-network.conf
@@ -0,0 +1,14 @@ +# +# Copyright 2024 Google LLC +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# version 2 as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# + +net.ipv4.tcp_rto_min_us = 5000