diff options
author | Matthew Ahrens <[email protected]> | 2015-06-24 15:49:08 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-06-25 08:58:17 -0700 |
commit | c52fca13a08f6a5c1f14a44d6f3707a48a27a1d0 (patch) | |
tree | ea15ae7760b73bccb6c32632a4c96da15689ebcb /module/zfs/arc.c | |
parent | 669dedb33f4bf68ba75089f1e7b279932c9580a7 (diff) |
Illumos 5368 - ARC should cache more metadata
5368 ARC should cache more metadata
Reviewed by: Alex Reece <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Richard Elling <[email protected]>
Approved by: Dan McDonald <[email protected]>
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 <[email protected]>
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 9bf527203..1a4cdb441 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(); |