Bug 1296800
Summary: | -mem-prealloc option does not take effect when no huge page is allocated | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Dan Zheng <dzheng> | |
Component: | qemu-kvm-rhev | Assignee: | Luiz Capitulino <lcapitulino> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.3 | CC: | chayang, dyuan, hhuang, huding, jherrman, jsuchane, juzhang, knoel, lcapitulino, lhuang, lmiksik, mkolaja, mrezanin, mzhan, sgordon, sherold, snagar, tlavigne, virt-maint, xfu, yafu, yuhuang, zpeng | |
Target Milestone: | rc | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-rhev-2.6.0-1.el7 | Doc Type: | Bug Fix | |
Doc Text: |
Prior to this update, when the qemu-kvm service was used with the -mem-prealloc option to allocate huge pages but the operation failed, qemu-kvm incorrectly reverted to regular RAM usage. Now, qemu-kvm exits in the described situation as expected.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1324523 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-07 20:53:27 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1324523 |
Description
Dan Zheng
2016-01-08 06:45:21 UTC
Posted fix upstream. will backport it soon. This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Reproduce: qemu-kvm-rhev-2.3.0-31.el7_2.4 kernel-3.10.0-366.el7.x86_64 Steps: 1. # echo 0 > /proc/sys/vm/nr_hugepages # cat /proc/meminfo | grep -i huge AnonHugePages: 6144 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB # mount -t hugetlbfs hugetlbfs /mnt/kvm_hugepage 2. boot guest with -mem-prealloc # /usr/libexec/qemu-kvm -m 1G,slots=8,maxmem=32G -smp 4 \ -mem-prealloc -mem-path /mnt/kvm_hugepage \ -drive file=/home/guest/RHEL-Server-7.3-64-virtio.qcow2,id=drive-virtio-disk1,media=disk,cache=none,snapshot=off,format=qcow2,aio=native,if=none -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,bootindex=0 -netdev tap,id=idw97X5F -device virtio-net-pci,netdev=idw97X5F,mac='9a:37:37:37:37:8e',bus=pci.0,addr=0x5,id='idMqFTXq' -vga cirrus -monitor stdio -vnc :0 results: (qemu) qemu-kvm: unable to map backing store for hugepages: Cannot allocate memory Guest starts up and works well. So the bug is reproduced. Verify: qemu-kvm-rhev-2.6.0-1.el7 kernel-3.10.0-366.el7.x86_64 With same steps as above, after step 2, (qemu) qemu-kvm: unable to map backing store for guest RAM: Cannot allocate memory and qemu process quits directly. So the bug is fixed. 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. https://rhn.redhat.com/errata/RHBA-2016-2673.html |