Skip to content

memory.cfg: add static_hugepage_num for guest_hugepage - #434

Open
TasmiyaNalatwad wants to merge 1 commit into
lop-devops:masterfrom
TasmiyaNalatwad:guest_static_hugepage_num
Open

TasmiyaNalatwad wants to merge 1 commit into
lop-devops:masterfrom
TasmiyaNalatwad:guest_static_hugepage_num

Conversation

@TasmiyaNalatwad

Copy link
Copy Markdown
Contributor

The guest_hugepage variants run a 4G guest with the hugepages memoryBacking enabled, so the whole guest RAM must come from the hugepage pool. The provider default of 1024 2M pages (2G) is too small, and QEMU fails to start the guest with:

unable to map backing store for guest RAM: Cannot allocate memory

Set static_hugepage_num = 2560 (5G) for this block, which covers the 4G guest plus headroom.

The guest_hugepage variants run a 4G guest with the hugepages
memoryBacking enabled, so the whole guest RAM must come from the
hugepage pool. The provider default of 1024 2M pages (2G) is too
small, and QEMU fails to start the guest with:

  unable to map backing store for guest RAM: Cannot allocate memory

Set static_hugepage_num = 2560 (5G) for this block, which covers the
4G guest plus headroom.

Signed-off-by: Tasmiya Nalatwad <Tasmiya.Nalatwad@ibm.com>
@TasmiyaNalatwad

TasmiyaNalatwad commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @harihare , Requesting you to review this PR

Before patch

1/8) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: STARTED
 (1/8) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: PASS (45.34 s)
 (2/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: STARTED
 (2/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: FAIL: Test failed in positive case. error: VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1'\nerror: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2026-11-26T08:26:09.438661Z qemu-kvm: -accel kvm: w... (5.62 s)
 (3/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: STARTED
 (3/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: FAIL: Test failed in positive case. error: VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1'\nerror: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2026-11-26T08:26:19.383092Z qemu-kvm: -accel kvm: w... (5.40 s)
 (4/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: STARTED
 (4/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: FAIL: Test failed in positive case. error: VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1'\nerror: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2026-11-26T08:26:29.599706Z qemu-kvm: -accel kvm: w... (5.65 s)
 (5/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: STARTED
 (5/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: FAIL: Test failed in positive case. error: VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1'\nerror: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2026-11-26T08:26:39.592658Z qemu-kvm: -accel kvm: w... (5.55 s)
 (6/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: STARTED
 (6/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: FAIL: Test failed in positive case. error: VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1'\nerror: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2026-11-26T08:26:49.799288Z qemu-kvm: -accel kvm: w... (5.44 s)
 (7/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: STARTED
 (7/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: FAIL: Test failed in positive case. error: VM 'avocado-vt-vm1' failed to start: error: Failed to start domain 'avocado-vt-vm1'\nerror: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2026-11-26T08:26:59.886595Z qemu-kvm: -accel kvm: w... (5.27 s)
 (8/8) io-github-autotest-libvirt.remove_guest.without_disk: STARTED
 (8/8) io-github-autotest-libvirt.remove_guest.without_disk: PASS (33.64 s)

After Patch

(1/8) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: STARTED
(1/8) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: PASS (44.78 s)
(2/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: STARTED
(2/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: PASS (31.99 s)
(3/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: STARTED
(3/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.normal.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: PASS (30.37 s)
(4/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: STARTED
(4/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: PASS (33.60 s)
(5/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: STARTED
(5/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.stress.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: PASS (33.53 s)
(6/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: STARTED
(6/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_enable.static_nonzero.mount_hugetlbfs: PASS (45.67 s)
(7/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: STARTED
(7/8) type_specific.io-github-autotest-libvirt.libvirt_hugepage.unixbench.with_mb.trans_disable.static_nonzero.mount_hugetlbfs: PASS (45.59 s)
(8/8) io-github-autotest-libvirt.remove_guest.without_disk: STARTED
(8/8) io-github-autotest-libvirt.remove_guest.without_disk: PASS (3.65 s)

Thank you,
Tasmiya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant