| Summary: | Qemu should prevent guest booting when no enough hugepage in binded node | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Yumei Huang <yuhuang> |
| Component: | qemu-kvm-rhev | Assignee: | Luiz Capitulino <lcapitulino> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | chayang, hhuang, imammedo, juzhang, mdeng, michen, qzhang, virt-maint, xfu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-21 12:51:23 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: | |
|
Description
Yumei Huang
2016-04-21 07:27:45 UTC
Correct comment0 step1, add mount step: # mount -t hugetlbfs none /mnt/kvm_hugepage Please, use the -mem-prealloc option. QEMU's default behavior by design is to continue when hugepage allocation fails. (In reply to Luiz Capitulino from comment #3) > Please, use the -mem-prealloc option. QEMU's default behavior by design is > to continue when hugepage allocation fails. Actually, when memory-backend-file(mem-mem1)'s size is 2G and without -mem-prealloc option, qemu quits directly and prints "unable to map backing store for hugepages: Cannot allocate memory". Should I file a new bug for this ? I guess this may have something to do with the numa memory policy you're using, but it's better to check with the memory backend device maintainer. Igor? (In reply to Yumei Huang from comment #4) > (In reply to Luiz Capitulino from comment #3) > > Please, use the -mem-prealloc option. QEMU's default behavior by design is > > to continue when hugepage allocation fails. > > Actually, when memory-backend-file(mem-mem1)'s size is 2G and without > -mem-prealloc option, qemu quits directly and prints "unable to map backing > store for hugepages: Cannot allocate memory". > > Should I file a new bug for this ? memory is allocated before 'bind' policy comes in to effect, so it's the same for 1Gb or 2Gb case. Allocation may fail at early depending on available resources or may fail later at runtime when accessing not yet allocated page. I'd say what you see here is normal. To ensure that guest won't hang/crash for not enough memory reason, one needs to use mem-prealloc option. *** Bug 1455450 has been marked as a duplicate of this bug. *** |