dirtylimit.c (f3bff6c44304a21ea99eeed336672bd46ca102d5) | dirtylimit.c (3a6813b68cf21a366522564f83f885bf2657dcc8) |
---|---|
1/* 2 * Dirty page rate limit implementation code 3 * 4 * Copyright (c) 2022 CHINA TELECOM CO.,LTD. 5 * 6 * Authors: 7 * Hyman Huang(黄勇) <huangy81@chinatelecom.cn> 8 * --- 69 unchanged lines hidden (view full) --- 78static void vcpu_dirty_rate_stat_collect(void) 79{ 80 MigrationState *s = migrate_get_current(); 81 VcpuStat stat; 82 int i = 0; 83 int64_t period = DIRTYLIMIT_CALC_TIME_MS; 84 85 if (migrate_dirty_limit() && | 1/* 2 * Dirty page rate limit implementation code 3 * 4 * Copyright (c) 2022 CHINA TELECOM CO.,LTD. 5 * 6 * Authors: 7 * Hyman Huang(黄勇) <huangy81@chinatelecom.cn> 8 * --- 69 unchanged lines hidden (view full) --- 78static void vcpu_dirty_rate_stat_collect(void) 79{ 80 MigrationState *s = migrate_get_current(); 81 VcpuStat stat; 82 int i = 0; 83 int64_t period = DIRTYLIMIT_CALC_TIME_MS; 84 85 if (migrate_dirty_limit() && |
86 migration_is_active(s)) { | 86 migration_is_active()) { |
87 period = s->parameters.x_vcpu_dirty_limit_period; 88 } 89 90 /* calculate vcpu dirtyrate */ 91 vcpu_calculate_dirtyrate(period, 92 &stat, 93 GLOBAL_DIRTY_LIMIT, 94 false); --- 587 unchanged lines hidden --- | 87 period = s->parameters.x_vcpu_dirty_limit_period; 88 } 89 90 /* calculate vcpu dirtyrate */ 91 vcpu_calculate_dirtyrate(period, 92 &stat, 93 GLOBAL_DIRTY_LIMIT, 94 false); --- 587 unchanged lines hidden --- |