Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2018 21:45:06 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338416 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201808312145.w7VLj6pp059159@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Aug 31 21:45:05 2018
New Revision: 338416
URL: https://svnweb.freebsd.org/changeset/base/338416

Log:
  Re-compute the ARC size before computing the MFU target.
  
  This fixes an upstream regression introduced in r331404, causing overly
  aggressive reclamation of the ARC when under pressure.
  
  Diagnosed by:	Paul <devgs@ukr.net>
  Approved by:	re (gjb)
  MFC after:	3 days

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Fri Aug 31 18:26:37 2018	(r338415)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c	Fri Aug 31 21:45:05 2018	(r338416)
@@ -4447,6 +4447,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808312145.w7VLj6pp059159>