Author: markj
Date: Tue Sep  4 16:47:08 2018
New Revision: 338456
URL: https://svnweb.freebsd.org/changeset/base/338456

Log:
  MFC r338416:
  Re-compute the ARC size before computing the MFU target.

Modified:
  stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c      Tue Sep 
 4 16:45:08 2018        (r338455)
+++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c      Tue Sep 
 4 16:47:08 2018        (r338456)
@@ -4119,6 +4119,12 @@ arc_adjust(void)
        }
 
        /*
+        * Re-sum ARC stats after the first round of evictions.
+        */
+       asize = aggsum_value(&arc_size);
+       ameta = aggsum_value(&arc_meta_used);
+
+       /*
         * Adjust MFU size
         *
         * Now that we've tried to evict enough from the MRU to get its
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to