ram.c (24155bd0520035d5148c0af5b925932c4d8064a8) | ram.c (2a8ec38082f8098f2693bb3632175453c0c84a51) |
---|---|
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> --- 698 unchanged lines hidden (view full) --- 707 * which we can transfer pages to the destination then we should be 708 * able to complete migration. Some workloads dirty memory way too 709 * fast and will not effectively converge, even with auto-converge. 710 */ 711static void mig_throttle_guest_down(uint64_t bytes_dirty_period, 712 uint64_t bytes_dirty_threshold) 713{ 714 MigrationState *s = migrate_get_current(); | 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> --- 698 unchanged lines hidden (view full) --- 707 * which we can transfer pages to the destination then we should be 708 * able to complete migration. Some workloads dirty memory way too 709 * fast and will not effectively converge, even with auto-converge. 710 */ 711static void mig_throttle_guest_down(uint64_t bytes_dirty_period, 712 uint64_t bytes_dirty_threshold) 713{ 714 MigrationState *s = migrate_get_current(); |
715 uint64_t pct_initial = s->parameters.cpu_throttle_initial; | 715 uint64_t pct_initial = migrate_cpu_throttle_initial(); |
716 uint64_t pct_increment = s->parameters.cpu_throttle_increment; 717 bool pct_tailslow = s->parameters.cpu_throttle_tailslow; 718 int pct_max = migrate_max_cpu_throttle(); 719 720 uint64_t throttle_now = cpu_throttle_get_percentage(); 721 uint64_t cpu_now, cpu_ideal, throttle_inc; 722 723 /* We have not started throttling yet. Let's start it. */ --- 4004 unchanged lines hidden --- | 716 uint64_t pct_increment = s->parameters.cpu_throttle_increment; 717 bool pct_tailslow = s->parameters.cpu_throttle_tailslow; 718 int pct_max = migrate_max_cpu_throttle(); 719 720 uint64_t throttle_now = cpu_throttle_get_percentage(); 721 uint64_t cpu_now, cpu_ideal, throttle_inc; 722 723 /* We have not started throttling yet. Let's start it. */ --- 4004 unchanged lines hidden --- |