Skip to content
Snippets Groups Projects
  • Hyman Huang's avatar
    63b41db4
    memory: make global_dirty_tracking a bitmask · 63b41db4
    Hyman Huang authored
    
    since dirty ring has been introduced, there are two methods
    to track dirty pages of vm. it seems that "logging" has
    a hint on the method, so rename the global_dirty_log to
    global_dirty_tracking would make description more accurate.
    
    dirty rate measurement may start or stop dirty tracking during
    calculation. this conflict with migration because stop dirty
    tracking make migration leave dirty pages out then that'll be
    a problem.
    
    make global_dirty_tracking a bitmask can let both migration and
    dirty rate measurement work fine. introduce GLOBAL_DIRTY_MIGRATION
    and GLOBAL_DIRTY_DIRTY_RATE to distinguish what current dirty
    tracking aims for, migration or dirty rate.
    
    Signed-off-by: default avatarHyman Huang(黄勇) <huangy81@chinatelecom.cn>
    Message-Id: <9c9388657cfa0301bd2c1cfa36e7cf6da4aeca19.1624040308.git.huangy81@chinatelecom.cn>
    Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
    Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
    Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
    63b41db4
    History
    memory: make global_dirty_tracking a bitmask
    Hyman Huang authored
    
    since dirty ring has been introduced, there are two methods
    to track dirty pages of vm. it seems that "logging" has
    a hint on the method, so rename the global_dirty_log to
    global_dirty_tracking would make description more accurate.
    
    dirty rate measurement may start or stop dirty tracking during
    calculation. this conflict with migration because stop dirty
    tracking make migration leave dirty pages out then that'll be
    a problem.
    
    make global_dirty_tracking a bitmask can let both migration and
    dirty rate measurement work fine. introduce GLOBAL_DIRTY_MIGRATION
    and GLOBAL_DIRTY_DIRTY_RATE to distinguish what current dirty
    tracking aims for, migration or dirty rate.
    
    Signed-off-by: default avatarHyman Huang(黄勇) <huangy81@chinatelecom.cn>
    Message-Id: <9c9388657cfa0301bd2c1cfa36e7cf6da4aeca19.1624040308.git.huangy81@chinatelecom.cn>
    Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
    Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
    Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>