From bd05177ce872902d19b14e67ab11244c9da92530 Mon Sep 17 00:00:00 2001 From: milan Date: Mon, 12 Nov 2018 18:32:08 +0100 Subject: [PATCH] zfs_cache_edit --- README.md | 2 +- setup-usl-mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea11340..6b5d97a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ delete netplan, install ifupdown, configure bridged networking (you can put LXD container to your network simple by add br0 to container), create zpool with ashift=12, set compression=on on crypted zpool, -configure zfs cache min 256MB max 1024MB, +configure zfs cache min 256MB max 1536MB, do dist-upgrade, create /root/onstart script to decrypt crypted parition with password and start lxd (you need start this script on every reboot), reboot diff --git a/setup-usl-mm b/setup-usl-mm index 22fc2bb..b35b49c 100755 --- a/setup-usl-mm +++ b/setup-usl-mm @@ -52,9 +52,9 @@ pre_reboot_script () { echo "vm.min_free_kbytes = 131072" >> /etc/sysctl.d/50-usl-mm.conf echo "vm.dirty_background_ratio = 5" >> /etc/sysctl.d/50-usl-mm.conf - echo "Configuring arc cache for zfs to min 256MB and max 1024MB" + echo "Configuring arc cache for zfs to min 256MB and max 1536MB" echo "options zfs zfs_arc_min=268435456" > /etc/modprobe.d/zfs.conf - echo "options zfs zfs_arc_max=1073741824" >> /etc/modprobe.d/zfs.conf + echo "options zfs zfs_arc_max=1610612736" >> /etc/modprobe.d/zfs.conf echo "Configuring network to use bridge" echo "Exec ifconfig"