From d44b6b204638550553154473c1f6a2e2d5a115a5 Mon Sep 17 00:00:00 2001 From: Alexander Tratsevskiy Date: Fri, 22 Mar 2024 11:18:11 +0300 Subject: [PATCH] The setting improves network performance. Significantly speeds up ocserv. See more: https://djangocas.dev/blog/huge-improve-network-performance-by-change-tcp-congestion-control-to-bbr/ --- .../sys-apps/openrc/network_performance.conf | 3 +++ profiles/templates/6_ac_update_sync/remerge/0-ini | 2 +- profiles/templates/6_ac_update_sync/remerge/2024/20240322 | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 profiles/templates/2_ac_install_merge/sys-apps/openrc/network_performance.conf create mode 100644 profiles/templates/6_ac_update_sync/remerge/2024/20240322 diff --git a/profiles/templates/2_ac_install_merge/sys-apps/openrc/network_performance.conf b/profiles/templates/2_ac_install_merge/sys-apps/openrc/network_performance.conf new file mode 100644 index 000000000..cfbfe859d --- /dev/null +++ b/profiles/templates/2_ac_install_merge/sys-apps/openrc/network_performance.conf @@ -0,0 +1,3 @@ +# Calculate path=/etc/sysctl.d format=procmail +net.core.default_qdisc=fq +net.ipv4.tcp_congestion_control=bbr diff --git a/profiles/templates/6_ac_update_sync/remerge/0-ini b/profiles/templates/6_ac_update_sync/remerge/0-ini index c5935ba87..23bf749f9 100644 --- a/profiles/templates/6_ac_update_sync/remerge/0-ini +++ b/profiles/templates/6_ac_update_sync/remerge/0-ini @@ -2,4 +2,4 @@ [overlay-calculate] # Save the latest version, because when switching profile cl-setup-profile 3.2.2 makes a call cl-setup-system -remerge = 20240308 +remerge = 20240322 diff --git a/profiles/templates/6_ac_update_sync/remerge/2024/20240322 b/profiles/templates/6_ac_update_sync/remerge/2024/20240322 new file mode 100644 index 000000000..326efdea3 --- /dev/null +++ b/profiles/templates/6_ac_update_sync/remerge/2024/20240322 @@ -0,0 +1,4 @@ +# Calculate format=samba name=ini.env ini(overlay-calculate.remerge)<#-cl_pass_file-# merge=sys-apps/openrc + +[overlay-calculate] +remerge = #-cl_pass_file-#