From 850f093c9f7e69d935d3bb53f9e91fdc8da8536d Mon Sep 17 00:00:00 2001 From: AndCycle Date: Tue, 10 Nov 2015 22:01:26 +0800 Subject: [PATCH] obey arc_meta_limit default size when change arc_max --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index fa1434e16863..06fb72b602c2 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 - */