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
This commit is contained in:
Mark Johnston 2018-08-31 21:45:05 +00:00
parent cdb6aa7e47
commit d7965243c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338416

View file

@ -4446,6 +4446,12 @@ arc_adjust(void)
arc_adjust_impl(arc_mru, 0, target, ARC_BUFC_METADATA);
}
/*
* Re-sum ARC stats after the first round of evictions.
*/
asize = aggsum_value(&arc_size);
ameta = aggsum_value(&arc_meta_used);
/*
* Adjust MFU size
*