mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 17:10:36 +00:00
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:
parent
cdb6aa7e47
commit
d7965243c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338416
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue