Skip to content
  • Joe Thornber's avatar
    dm thin: throttle incoming IO · 7d327fe0
    Joe Thornber authored
    
    
    Throttle IO based on the time it's taking the worker to do one loop.
    There were reports of hung task timeouts occuring and it was observed
    that the excessively long avgqu-sz (as reported by iostat) was
    contributing to these hung tasks.
    
    Throttling definitely helps dm-thinp perform better under heavy IO load
    (without being detremental by being overzealous).  It reduces avgqu-sz
    drastically, e.g.: from 60K to ~6K, and even as low as 150 once metadata
    is cached by bufio, when dirty_ratio=5, dirty_background_ratio=2.  And
    avgqu-sz stays at or below 30K even with dirty_ratio=20,
    dirty_background_ratio=10.
    
    Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    7d327fe0