Files
mirror_zfs/module/zfs
shodanshok b445b25b27 Fix arc_p aggressive increase
The original ARC paper called for an initial 50/50 MRU/MFU split
and this is accounted in various places where arc_p = arc_c >> 1,
with further adjustment based on ghost lists size/hit. However, in
current code both arc_adapt() and arc_get_data_impl() aggressively
grow arc_p until arc_c is reached, causing unneeded pressure on
MFU and greatly reducing its scan-resistance until ghost list
adjustments kick in.

This patch restores the original behavior of initially having arc_p
as 1/2 of total ARC, without preventing MRU to use up to 100% total
ARC when MFU is empty.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gionatan Danti <g.danti@assyoma.it>
Closes #14137 
Closes #14120
2022-11-11 10:41:36 -08:00
..
2022-03-15 15:13:42 -07:00
2022-11-11 10:41:36 -08:00
2022-03-15 15:13:42 -07:00
2022-10-20 11:57:15 -07:00
2022-10-29 13:05:11 -07:00
2022-10-27 09:54:54 -07:00
2022-10-27 09:54:54 -07:00
2022-03-15 15:13:42 -07:00
2022-03-15 15:13:42 -07:00
2022-01-07 10:36:49 -08:00
2022-01-12 16:14:36 -08:00
2019-06-19 09:48:12 -07:00
2022-10-12 11:25:18 -07:00
2022-09-30 15:34:39 -07:00
2022-03-15 15:13:42 -07:00
2022-10-29 13:05:11 -07:00
2022-10-27 09:54:54 -07:00
2022-10-29 13:05:11 -07:00
2022-11-10 13:37:12 -08:00
2022-10-20 11:57:15 -07:00
2022-10-20 11:57:15 -07:00
2022-09-02 13:31:19 -07:00
2022-10-29 13:05:11 -07:00
2022-11-03 10:17:17 -07:00
2022-10-28 09:49:20 -07:00
2022-10-27 09:54:54 -07:00
2022-10-28 09:49:20 -07:00