]> granicus.if.org Git - zfs/commit
arc_meta_limit should be updated when arc_max is changed.
authorGaurav Kumar <gaurav.kumar@nutanix.com>
Wed, 27 Jul 2016 21:27:31 +0000 (14:27 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 2 Aug 2016 20:43:36 +0000 (13:43 -0700)
commitcf2731e65b2015988b2cae7970886279e11b013f
treea2d2b535b1a115f0301072b623fdd02217e50515
parentf3c9cac14355ba45b4ceced4df32c18bfc2518ed
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 <gaurav.kumar@nutanix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4893
module/zfs/arc.c