From c52fca13a08f6a5c1f14a44d6f3707a48a27a1d0 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Wed, 24 Jun 2015 15:49:08 -0700 Subject: [PATCH] Illumos 5368 - ARC should cache more metadata 5368 ARC should cache more metadata Reviewed by: Alex Reece Reviewed by: Christopher Siden Reviewed by: George Wilson Reviewed by: Richard Elling Approved by: Dan McDonald References: https://www.illumos.org/issues/5368 https://github.com/illumos/illumos-gate/commit/3a5286a Porting Notes: The vast majority of this patch was already merged in the context of the 06358ea changes. This is just a small hunk which was missed. Ported-by: Brian Behlendorf --- module/zfs/arc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 9bf5272037..1a4cdb4413 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -4928,6 +4928,12 @@ arc_init(void) if (zfs_arc_meta_limit > 0 && zfs_arc_meta_limit <= arc_c_max) arc_meta_limit = zfs_arc_meta_limit; + if (zfs_arc_meta_min > 0) { + arc_meta_min = zfs_arc_meta_min; + } else { + arc_meta_min = arc_c_min / 2; + } + if (zfs_arc_num_sublists_per_state < 1) zfs_arc_num_sublists_per_state = num_online_cpus();