From e6606b9bb70a7124bf9414351b5b8610a25a8bbf Mon Sep 17 00:00:00 2001 From: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> Date: Sun, 5 Jan 2025 08:37:24 -0700 Subject: [PATCH] Tighten memory limits --- etc/modprobe.d/zfs.conf | 1 + etc/systemd/system/matrix-synapse.service.d/override.conf | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 etc/modprobe.d/zfs.conf diff --git a/etc/modprobe.d/zfs.conf b/etc/modprobe.d/zfs.conf new file mode 100644 index 0000000..1268449 --- /dev/null +++ b/etc/modprobe.d/zfs.conf @@ -0,0 +1 @@ +options zfs zfs_arc_max=8589934592 \ No newline at end of file diff --git a/etc/systemd/system/matrix-synapse.service.d/override.conf b/etc/systemd/system/matrix-synapse.service.d/override.conf index 7eeaf0e..6c3edf7 100644 --- a/etc/systemd/system/matrix-synapse.service.d/override.conf +++ b/etc/systemd/system/matrix-synapse.service.d/override.conf @@ -30,4 +30,7 @@ PrivateDevices=true # - Hostname # - System Clock ProtectSystem=strict -ProtectKernelTunables=true \ No newline at end of file +ProtectKernelTunables=true + +MemoryHigh=32G +MemoryMax=40G