Skip to content

Commit e983061

Browse files
committed
test(hotplug_memory): disable memory montior for resumed vms
This is a performance test. Signed-off-by: Nikita Kalyazin <kalyazin@amazon.com>
1 parent ef69706 commit e983061

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration_tests/performance/test_hotplug_memory.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def uvm_resumed_memhp(
9090
snapshot_type,
9191
)
9292
snapshot = uvm.make_snapshot(snapshot_type)
93-
return microvm_factory.build_from_snapshot(snapshot, uffd_handler_name=uffd_handler)
93+
uvm2 = microvm_factory.build_from_snapshot(snapshot, uffd_handler_name=uffd_handler)
94+
uvm2.memory_monitor = None
95+
96+
return uvm2
9497

9598

9699
@pytest.fixture(
@@ -372,6 +375,8 @@ def test_snapshot_restore_incremental(uvm_plain_6_1, microvm_factory):
372375
use_snapshot_editor=True,
373376
)
374377
):
378+
uvm.memory_monitor = None
379+
375380
# check checksums of previous cycles
376381
for j in range(i):
377382
_, checksum, _ = uvm.ssh.check_output(f"sha256sum /dev/shm/mem_hp_test_{j}")

0 commit comments

Comments
 (0)