diff options
author | Matthew Macy <[email protected]> | 2020-08-12 10:03:24 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-12 10:03:24 -0700 |
commit | e111c8024796e9bdd2cb883b5c10c8abc13c3a5b (patch) | |
tree | cf274352b69d7ce422aca90758277ce3dac1a938 /rpm/Makefile.am | |
parent | 53c9d1d9b5ff19d3095f9dcbb806582d9c0b977f (diff) |
Restore ARC MFU/MRU pressure
The arc_adapt() function tunes LRU/MLU balance according to 4 types of
cache hits (which is passed as state agrument): ghost LRU, LRU, MRU,
ghost MRU. If this function is called with wrong cache hit (state),
adaptation will be sub-optimal and performance will suffer.
Some time ago upstream received this commit:
6950 ARC should cache compressed data) in arc_read() do next
sequence (access to ghost buffer)
Before this commit, hit to any ghost list was passed arc_adapt() before
call to arc_access() which revive element in cache and change state from
ghost to real hit.
After this commit, the order of calls was reverted and arc_adapt() is
now called only with «real» hits even if hit was in one of two ghost
lists, which renders ghost lists useless and breaks the ARC algorithm.
FreeBSD fixed this problem locally in Change D19094 / Commit r348772.
This change is an adaptation of the above commit to the current arc
code.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #10548
Closes #10618
Diffstat (limited to 'rpm/Makefile.am')
0 files changed, 0 insertions, 0 deletions