Skip to content

Commit 9dba88b

Browse files
committed
fix(tests/virtio-mem): poll every 5ms in performance tests
Increase granularity of total time measurement from 100ms to 5ms as the fastest hotplug is around 30ms. We need to poll the GET API to monitor when plugged_memory_mib is equal to requested_memory_mib. Signed-off-by: Riccardo Mancini <mancio@amazon.com>
1 parent ea6cd7d commit 9dba88b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration_tests/performance/test_hotplug_memory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ def timed_memory_hotplug(uvm, size, metrics, metric_prefix, fc_metric_name):
410410

411411
uvm.flush_metrics()
412412

413-
api_time, total_time = uvm.hotplug_memory(size)
413+
# poll every 5ms to check completion as the fastest hotplug is around 30ms
414+
api_time, total_time = uvm.hotplug_memory(size, poll=0.005)
414415

415416
fc_metrics = uvm.flush_metrics()
416417

0 commit comments

Comments
 (0)