From 6f474c261101d779263dedb2462a832228c054a1 Mon Sep 17 00:00:00 2001
From: Greg Mason <gmason@msu.edu>
Date: Wed, 19 Nov 2014 16:54:25 -0500
Subject: [PATCH] manage both min and max ARC size

---
 manifests/arclimit.pp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/manifests/arclimit.pp b/manifests/arclimit.pp
index 7032034..7c3d3e6 100644
--- a/manifests/arclimit.pp
+++ b/manifests/arclimit.pp
@@ -22,7 +22,9 @@ class zfs::arclimit {
 
 
   file { '/etc/modprobe.d/zfs.conf':
-    content => "options zfs zfs_arc_max=$arcsize",
+    # On large systems, min can default to quite large, overriding max.
+    content => "options zfs zfs_arc_max=$arcsize
+options zfs zfs_arc_min=$arcsize",
     mode    => 644,
     owner   => 'root',
     group   => 'root',
-- 
GitLab