Added recalculation of ARC stats mid-eviction
Re-adds a recalculation step for the ARC stats after the MRU eviction so that we don't pathologically attempt to evict the MFU. Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Authored-by: Mark Johnston <markj@freebsd.org> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #7855
This commit is contained in:
parent
27ca030fa6
commit
0405eeea6a
|
@ -4638,6 +4638,13 @@ arc_adjust(void)
|
||||||
arc_adjust_impl(arc_mru, 0, target, ARC_BUFC_METADATA);
|
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
|
* Adjust MFU size
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue