Skip to content

Commit

Permalink
CI: increase AMD snap resume latency limit
Browse files Browse the repository at this point in the history
We are currently experiencing a degradation in AMD
latency which is causing our CI to stay blocked.
In order to unblock it, we are relaxing the value
temporarily.

Signed-off-by: Diana Popa <[email protected]>
  • Loading branch information
dianpopa committed Nov 4, 2022
1 parent 60bb22a commit 3a26879
Showing 1 changed file with 71 additions and 28 deletions.
99 changes: 71 additions & 28 deletions tests/integration_tests/performance/test_snapshot_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
get_kernel_version,
is_io_uring_supported,
)
from framework.utils_cpuid import get_instance_type
from framework.stats import core, consumer, producer, types, criteria, function
from integration_tests.performance.utils import handle_failure

Expand Down Expand Up @@ -64,42 +65,84 @@
# this is tracked here:
# https://github.com/firecracker-microvm/firecracker/issues/2027
# TODO: Update the table after fix. Target is < 5ms.
# TODO: we need to actually measure the numbers for m6i
# since they might be lower.
LOAD_LATENCY_BASELINES = {
"x86_64": {
"4.14": {
"sync": {
"2vcpu_256mb.json": {"target": 9},
"2vcpu_512mb.json": {"target": 9},
}
"m5d.metal": {
"4.14": {
"sync": {
"2vcpu_256mb.json": {"target": 9},
"2vcpu_512mb.json": {"target": 9},
}
},
"5.10": {
"sync": {
"2vcpu_256mb.json": {"target": 60},
"2vcpu_512mb.json": {"target": 60},
},
"async": {
"2vcpu_256mb.json": {"target": 190},
"2vcpu_512mb.json": {"target": 190},
},
},
},
"5.10": {
"sync": {
"2vcpu_256mb.json": {"target": 60},
"2vcpu_512mb.json": {"target": 60},
"m6a.metal": {
"4.14": {
"sync": {
"2vcpu_256mb.json": {"target": 15},
"2vcpu_512mb.json": {"target": 15},
}
},
"async": {
"2vcpu_256mb.json": {"target": 190},
"2vcpu_512mb.json": {"target": 190},
"5.10": {
"sync": {
"2vcpu_256mb.json": {"target": 60},
"2vcpu_512mb.json": {"target": 60},
},
"async": {
"2vcpu_256mb.json": {"target": 190},
"2vcpu_512mb.json": {"target": 190},
},
},
},
"m6i.metal": {
"4.14": {
"sync": {
"2vcpu_256mb.json": {"target": 9},
"2vcpu_512mb.json": {"target": 9},
}
},
"5.10": {
"sync": {
"2vcpu_256mb.json": {"target": 60},
"2vcpu_512mb.json": {"target": 60},
},
"async": {
"2vcpu_256mb.json": {"target": 190},
"2vcpu_512mb.json": {"target": 190},
},
},
},
},
"aarch64": {
"4.14": {
"sync": {
"2vcpu_256mb.json": {"target": 2},
"2vcpu_512mb.json": {"target": 2},
}
},
"5.10": {
"sync": {
"2vcpu_256mb.json": {"target": 2},
"2vcpu_512mb.json": {"target": 2},
"m6g.metal": {
"4.14": {
"sync": {
"2vcpu_256mb.json": {"target": 2},
"2vcpu_512mb.json": {"target": 2},
}
},
"async": {
"2vcpu_256mb.json": {"target": 125},
"2vcpu_512mb.json": {"target": 130},
"5.10": {
"sync": {
"2vcpu_256mb.json": {"target": 2},
"2vcpu_512mb.json": {"target": 2},
},
"async": {
"2vcpu_256mb.json": {"target": 125},
"2vcpu_512mb.json": {"target": 130},
},
},
},
}
},
}

Expand All @@ -124,7 +167,7 @@ def snapshot_create_measurements(vm_type, snapshot_type):

def snapshot_resume_measurements(vm_type, io_engine):
"""Define measurements for snapshot resume tests."""
load_latency = LOAD_LATENCY_BASELINES[platform.machine()][
load_latency = LOAD_LATENCY_BASELINES[platform.machine()][get_instance_type()][
get_kernel_version(level=1)
][io_engine][vm_type]

Expand Down Expand Up @@ -331,7 +374,7 @@ def _test_snapshot_resume_latency(context):
rw_disk = context.disk.copy()
# Get ssh key from read-only artifact.
ssh_key = context.disk.ssh_key()
# Create a fresh microvm from aftifacts.
# Create a fresh microvm from artifacts.
vm_instance = vm_builder.build(
kernel=context.kernel,
disks=[rw_disk],
Expand Down

0 comments on commit 3a26879

Please sign in to comment.