summaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorAndCycle <[email protected]>2015-11-10 22:01:26 +0800
committerBrian Behlendorf <[email protected]>2015-11-13 15:45:22 -0800
commit256fa983f46603df3f26c1508ca3a09f6316f36d (patch)
treeb06a54ff2f144f4ac669382911512b600d6722ef /module/zfs
parentf3e2a7accdd33b5e1f9367d97f4f2177962c5567 (diff)
Obey arc_meta_limit default size when changing arc_max
When decreasing the maximum ARC size preserve the 3/4 default ratio for the arc_meta_limit. Otherwise, the arc_meta_limit may be set the same as arc_max. Signed-off-by: AndCycle <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4001
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/arc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index fa1434e16..06fb72b60 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -5245,7 +5245,7 @@ arc_tuning_update(void)
arc_c_max = zfs_arc_max;
arc_c = arc_c_max;
arc_p = (arc_c >> 1);
- arc_meta_limit = MIN(arc_meta_limit, arc_c_max);
+ arc_meta_limit = MIN(arc_meta_limit, (3 * arc_c_max) / 4);
}
/* Valid range: 32M - <arc_c_max> */