From d9bbf217b11e8326048b2ddf43a3de8258b26348 Mon Sep 17 00:00:00 2001 From: Jan Tomko Date: Tue, 24 Jul 2012 10:50:29 +0200 Subject: [PATCH] virsh: Clarify that memtune parameters may be rounded in the man page --- AUTHORS | 2 ++ tools/virsh.pod | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index ca823895ad..aa018d48c8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -251,6 +251,8 @@ Patches have also been contributed by: Chuck Short Sebastian Wiedenroth Ata E Husain Bohra + Jan Tomko + [....send patches to get your name here....] The libvirt Logo was designed by Diana Fong diff --git a/tools/virsh.pod b/tools/virsh.pod index b4a3d5c895..6ecf6ce112 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1366,7 +1366,10 @@ appropriate limit is adjusted if supported by the hypervisor. LXC and QEMU/KVM support I<--hard-limit>, I<--soft-limit>, and I<--swap-hard-limit>. I<--min-guarantee> is supported only by ESX hypervisor. Each of these limits are scaled integers (see B above), with a default of -kibibytes (blocks of 1024 bytes) if no suffix is present. +kibibytes (blocks of 1024 bytes) if no suffix is present. Libvirt rounds +up to the nearest kibibyte. Some hypervisors require a larger granularity +than KiB, and requests that are not an even multiple will be rounded up. +For example, vSphere/ESX rounds the parameter up to mebibytes (1024 kibibytes). If I<--live> is specified, affect a running guest. If I<--config> is specified, affect the next boot of a persistent guest. -- GitLab