ram.c (87dca0c9bb63014ef73ad82f7aedea1cb5a822e7) | ram.c (6499efdb16e5c1288b4c8390d3bf68b313329b8b) |
---|---|
1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2011-2015 Red Hat Inc 6 * 7 * Authors: 8 * Juan Quintela <quintela@redhat.com> --- 1164 unchanged lines hidden (view full) --- 1173 rs->compress_pages_prev = compression_counters.pages; 1174 rs->compressed_size_prev = compression_counters.compressed_size; 1175 } 1176 } 1177} 1178 1179static void migration_trigger_throttle(RAMState *rs) 1180{ | 1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2011-2015 Red Hat Inc 6 * 7 * Authors: 8 * Juan Quintela <quintela@redhat.com> --- 1164 unchanged lines hidden (view full) --- 1173 rs->compress_pages_prev = compression_counters.pages; 1174 rs->compressed_size_prev = compression_counters.compressed_size; 1175 } 1176 } 1177} 1178 1179static void migration_trigger_throttle(RAMState *rs) 1180{ |
1181 MigrationState *s = migrate_get_current(); 1182 uint64_t threshold = s->parameters.throttle_trigger_threshold; | 1181 uint64_t threshold = migrate_throttle_trigger_threshold(); |
1183 uint64_t bytes_xfer_period = 1184 stat64_get(&ram_counters.transferred) - rs->bytes_xfer_prev; 1185 uint64_t bytes_dirty_period = rs->num_dirty_pages_period * TARGET_PAGE_SIZE; 1186 uint64_t bytes_dirty_threshold = bytes_xfer_period * threshold / 100; 1187 1188 /* During block migration the auto-converge logic incorrectly detects 1189 * that ram migration makes no progress. Avoid this by disabling the 1190 * throttling logic during the bulk phase of block migration. */ --- 3538 unchanged lines hidden --- | 1182 uint64_t bytes_xfer_period = 1183 stat64_get(&ram_counters.transferred) - rs->bytes_xfer_prev; 1184 uint64_t bytes_dirty_period = rs->num_dirty_pages_period * TARGET_PAGE_SIZE; 1185 uint64_t bytes_dirty_threshold = bytes_xfer_period * threshold / 100; 1186 1187 /* During block migration the auto-converge logic incorrectly detects 1188 * that ram migration makes no progress. Avoid this by disabling the 1189 * throttling logic during the bulk phase of block migration. */ --- 3538 unchanged lines hidden --- |