aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl
diff options
context:
space:
mode:
authorAdam D. Moss <[email protected]>2020-10-20 11:39:52 -0700
committerGitHub <[email protected]>2020-10-20 11:39:52 -0700
commit666aa69f32ff2558ef9e9a27bc4cb5559e21d795 (patch)
tree8a4b4647c3a84ef1aae50a0e4d0aacc5d77d3432 /lib/libspl
parent241c62bdd7fbc0683d54c40b4a184cf889ebd774 (diff)
Non-l2arc pool reads shouldn't be l2arc misses
The current l2_misses accounting behavior treats all reads to pools without a configured l2arc as an l2arc miss, IFF there is at least one other pool on the system which does have an l2arc configured. This makes it extremely hard to tune for an improved l2arc hit/miss ratio because this ratio will be modulated by reads from pools which do not (and should not) have l2arc devices; its upper limit will depend on the ratio of reads from l2arc'd pools and non-l2arc'd pools. This PR prevents ARC reads affecting l2arc stats (n.b. l2_misses is the only relevant one) where the target spa doesn't have an l2arc. Includes new test - l2arc_l2miss_pos.ksh Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Amanakis <[email protected]> Signed-off-by: Adam Moss <[email protected]> Closes #10921
Diffstat (limited to 'lib/libspl')
0 files changed, 0 insertions, 0 deletions