Bug 738933
Summary: | Improving virsh manual for virsh memtune command | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | yuping zhang <yupzhang> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | acathrow, ajia, dallan, dyuan, jyang, mzhan, rwu, tzheng, yupzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.9-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
No Documentation needed
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 06:31:23 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
yuping zhang
2011-09-16 03:23:54 UTC
the min-guarantee is introduced for ESX driver, please see: https://www.redhat.com/archives/libvir-list/2010-August/msg00613.html Perhaps it will be a general tuning option for other drivers in future, but currently it's only used by ESX. And all the memory tunable for QEMU drivers are based on cgroup memory controller, which doesn't support thing like "min-guatentee" yet, so you can't file a bug saying it's a PFE, as there is even no underlying support yet. IMHO this should just be closed as NOTABUG. As ajia discussed with Osier in email,it's better to document in virsh manual to outline "--min-guarantee" is only used by ESX driver. And also,for -1 value,it's better to document it, because users can't see any output when option --hard-limit, --soft-limit and --swap-hard-limit is -1. So I updated the bug summary.Thanks, Osier and ajia. Fixed with upstream commit: commit c4111bd0d9397446128aa939f3519518ce9cc519 Author: Peter Krempa <pkrempa> Date: Thu Sep 22 12:14:18 2011 +0200 virsh: Improve virsh manual for virsh memtune command Commit 0a22f54 added --min-guarantee option for the memtune command. This option is supported only by the ESX hypervisor. This patch adds a statement about this fact, to prevent user confusion. This patch also adds explanation how to clear/set to unlimited the memory tunables. (documments the -1 value). Verified the bug with libvirt-0.9.9-1.el6.x86_64 # man virsh memtune domain-id [--hard-limit kilobytes] [--soft-limit kilobytes] [--swap-hard-limit kilobytes] [--min-guarantee kilobytes] [[--config] [--live] | [--current]] Allows you to display or set the domain memory parameters. Without flags, the current settings are displayed; with a flag, the appropriate limit is adjusted if supported by the hypervisor. LXC and QEMU/KVM support --hard-limit, --soft-limit, and --swap-hard-limit. --min-guarantee is supported only by ESX hypervisor. …… --hard-limit The maximum memory the guest can use. The units for this value are kilobytes (i.e. blocks of 1024 bytes). --soft-limit The memory limit to enforce during memory contention. The units for this value are kilobytes (i.e. blocks of 1024 bytes). --swap-hard-limit The maximum memory plus swap the guest can use. The units for this value are kilobytes (i.e. blocks of 1024 bytes). This has to be more than hard-limit value provided. --min-guarantee The guaranteed minimum memory allocation for the guest. The units for this value are kilobytes (i.e. blocks of 1024 bytes). Specifying -1 as a value for these limits is interpreted as unlimited. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No Documentation needed Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0748.html |