diff options
author | bt90 <btom1990@googlemail.com> | 2021-03-05 08:08:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 08:08:29 +0100 |
commit | c1d06d9501f26f7c16fe4136b6b8dcb7f473a6d1 (patch) | |
tree | 0fdfcd785c6686460b0b7350cfe5bd99e58780c3 /etc | |
parent | 4735575e8d132c0b7e5a3991ee3e13acd1c5cb5b (diff) | |
download | syncthing-c1d06d9501f26f7c16fe4136b6b8dcb7f473a6d1.tar.gz syncthing-c1d06d9501f26f7c16fe4136b6b8dcb7f473a6d1.zip |
build: Package sysctl configuration to raise UDP buffer size on Linux (#7417)v1.15.0-rc.1
* Provide a sysctl config to raise max UDP buffer size
* Add sysctl config to deb
* Check if `deb-systemd-invoke` is available
Co-authored-by: otbutz <tbutz@optitool.de>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/linux-sysctl/30-syncthing.conf | 3 | ||||
-rw-r--r-- | etc/linux-sysctl/README.md | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/etc/linux-sysctl/30-syncthing.conf b/etc/linux-sysctl/30-syncthing.conf new file mode 100644 index 000000000..9c7787409 --- /dev/null +++ b/etc/linux-sysctl/30-syncthing.conf @@ -0,0 +1,3 @@ +# Increase maximum receive socket buffer size to 2MiB for QUIC connections +# see https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size +net.core.rmem_max = 2097152 diff --git a/etc/linux-sysctl/README.md b/etc/linux-sysctl/README.md new file mode 100644 index 000000000..0c0e06dfe --- /dev/null +++ b/etc/linux-sysctl/README.md @@ -0,0 +1,21 @@ +sysctl configuration to raise UDP buffer size +=================== +Installation +----------- +**Please note:** When you installed syncthing using the official deb package, you can skip the copying. + +Copy the file `30-syncthing.conf` to `/etc/sysctl.d/` (root permissions required). + +In a terminal run +``` +sudo sysctl -q --system +``` +to apply the sysctl changes. + + +Verification +---------- +You can verify that the new limit is active using +``` +sysctl net.core.rmem_max +``` |