File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
integration_tests/performance Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1206,13 +1206,20 @@ def build_n_from_snapshot(
12061206 uffd_handler_name = None ,
12071207 incremental = False ,
12081208 use_snapshot_editor = True ,
1209+ no_netns_reuse = False ,
12091210 ):
12101211 """A generator of `n` microvms restored, either all restored from the same given snapshot
12111212 (incremental=False), or created by taking successive snapshots of restored VMs
12121213 """
12131214 last_snapshot = None
12141215 for _ in range (nr_vms ):
1215- microvm = self .build ()
1216+ microvm = self .build (
1217+ ** (
1218+ {"netns" : net_tools .NetNs (str (uuid .uuid4 ()))}
1219+ if no_netns_reuse
1220+ else {}
1221+ )
1222+ )
12161223 microvm .spawn ()
12171224
12181225 snapshot_copy = microvm .restore_from_snapshot (
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def test_jailer_startup(
5252 {
5353 "instance" : global_props .instance ,
5454 "cpu_model" : global_props .cpu_model ,
55+ "host_kernel" : f"linux-{ global_props .host_linux_version } " ,
5556 "performance_test" : "test_jailer_startup" ,
5657 "parallel" : str (parallel ),
5758 "mounts" : str (mounts ),
Original file line number Diff line number Diff line change @@ -122,7 +122,9 @@ def test_restore_latency(
122122
123123 snapshot = vm .snapshot_full ()
124124 vm .kill ()
125- for microvm in microvm_factory .build_n_from_snapshot (snapshot , ITERATIONS ):
125+ for microvm in microvm_factory .build_n_from_snapshot (
126+ snapshot , ITERATIONS , no_netns_reuse = True
127+ ):
126128 value = 0
127129 # Parse all metric data points in search of load_snapshot time.
128130 microvm .flush_metrics ()
You can’t perform that action at this time.
0 commit comments