KVM: Migration bandwidth and downtime control
authorApollon Oikonomopoulos <apollon@noc.grnet.gr>
Mon, 31 May 2010 11:28:47 +0000 (14:28 +0300)
committerBalazs Lecz <leczb@google.com>
Mon, 31 May 2010 12:16:53 +0000 (13:16 +0100)
commite43d4f9f0207b8eb420b14b6c423ce2b0ee70517
treeb72a96f9f39a9b5dcf50e68ba6fd8acc0761c1dc
parentb73360e3cf7aa7c976ab9167799ca76caac438b4
KVM: Migration bandwidth and downtime control

Introduce 2 new hypervisor options, migration_bandwidth and migration_downtime
and implement KVM migration bandwidth and downtime control.

migration_bandwidth controls KVM's maximal bandwidth during migration, in
MiB/s. Default value is 32 MiB/s, same as KVM's internal default. This option
is a global hypervisor option.

migration_downtime sets the amount of time (in ms) a KVM instance is allowed to
freeze while copying memory pages. This is useful when migrating busy guests,
as KVM's internal default of 30ms is too low for the page-copying algorithm to
converge. This is a per-instance option, with a default of 30ms, same as KVM's
internal default.

Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
lib/constants.py
lib/hypervisor/hv_kvm.py
man/gnt-cluster.sgml
man/gnt-instance.sgml