diff options
author | Gaurav Kumar <[email protected]> | 2016-07-27 14:27:31 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-02 13:43:36 -0700 |
commit | cf2731e65b2015988b2cae7970886279e11b013f (patch) | |
tree | a2d2b535b1a115f0301072b623fdd02217e50515 /module/zfs/arc.c | |
parent | f3c9cac14355ba45b4ceced4df32c18bfc2518ed (diff) |
arc_meta_limit should be updated when arc_max is changed.
When arc_max is increased, arc_meta_limit will not be updated to 3/4
of the new arc_c_max value. This was done originally to preserve any
existing maximum value. This turned out to be counter intuitive to
users and this fix changes that behavior. If zfs_arc_meta_limit is
non-default, it will be picked up later in the ARC tuning function.
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4893
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 6d8bd48a3..cc26b2e48 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -5364,7 +5364,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, (3 * arc_c_max) / 4); + arc_meta_limit = (3 * arc_c_max) / 4; arc_dnode_limit = arc_meta_limit / 10; } |