Skip to content

Commit e380d81

Browse files
Manciukicbchalios
authored andcommitted
test(memory-overhead): run also with PCI enabled
Run test_memory_overhead performance test also with PCI enabled. Signed-off-by: Riccardo Mancini <[email protected]> Signed-off-by: Babis Chalios <[email protected]>
1 parent 2736919 commit e380d81

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/integration_tests/performance/test_memory_overhead.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,23 @@
3030
)
3131
@pytest.mark.nonci
3232
def test_memory_overhead(
33-
microvm_factory, guest_kernel_acpi, rootfs, vcpu_count, mem_size_mib, metrics
33+
microvm_factory,
34+
guest_kernel_acpi,
35+
rootfs,
36+
vcpu_count,
37+
mem_size_mib,
38+
pci_enabled,
39+
metrics,
3440
):
3541
"""Track Firecracker memory overhead.
3642
3743
We take a single measurement as it only varies by a few KiB each run.
3844
"""
3945

4046
for _ in range(5):
41-
microvm = microvm_factory.build(guest_kernel_acpi, rootfs, monitor_memory=False)
47+
microvm = microvm_factory.build(
48+
guest_kernel_acpi, rootfs, pci=pci_enabled, monitor_memory=False
49+
)
4250
microvm.spawn(emit_metrics=True)
4351
microvm.basic_config(vcpu_count=vcpu_count, mem_size_mib=mem_size_mib)
4452
microvm.add_net_iface()

0 commit comments

Comments
 (0)