• Adam D. Moss's avatar
    Non-l2arc pool reads shouldn't be l2arc misses · 666aa69f
    Adam D. Moss authored
    
    
    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: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
    Reviewed-by: default avatarGeorge Amanakis <gamanakis@gmail.com>
    Signed-off-by: default avatarAdam Moss <c@yotes.com>
    Closes #10921
    666aa69f
common.run 37.2 KB