diff --git a/configs/os/services/kvmd-janus.service b/configs/os/services/kvmd-janus.service index b928865f..9a154d29 100644 --- a/configs/os/services/kvmd-janus.service +++ b/configs/os/services/kvmd-janus.service @@ -7,6 +7,7 @@ Type=oneshot ExecStart=/bin/true ExecStop=/bin/true RemainAfterExit=true +LimitNOFILE=65536 [Install] WantedBy=multi-user.target diff --git a/configs/os/sysctl.conf b/configs/os/sysctl.conf index 71db0efc..7cfe43b0 100644 --- a/configs/os/sysctl.conf +++ b/configs/os/sysctl.conf @@ -1,3 +1,9 @@ # https://github.com/raspberrypi/linux/issues/1753 vm.dirty_background_bytes = 5 vm.dirty_writeback_centisecs = 25 + +# https://groups.google.com/g/meetecho-janus/c/xoWIQfaoJm8 +net.core.rmem_default = 500000 +net.core.wmem_default = 500000 +net.core.rmem_max = 1000000 +net.core.wmem_max = 1000000