mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Reduce memory usage in integration tests
This reduces pressure on CI and enables to run more tests locally on developer machines (with 16GB of RAM or less). No functional changes. On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
cd92f65f7b
commit
d54a7d27a1
@@ -5069,7 +5069,7 @@ mod common_parallel {
|
||||
|
||||
let mut cmd = GuestCommand::new(&guest);
|
||||
cmd.args(["--cpus", "boot=4"])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", fw_path(FwType::RustHypervisorFirmware).as_str()])
|
||||
.default_disks()
|
||||
.args(["--net", guest.default_net_string().as_str()])
|
||||
@@ -5117,7 +5117,7 @@ mod common_parallel {
|
||||
|
||||
let mut cmd = GuestCommand::new(&guest);
|
||||
cmd.args(["--cpus", "boot=4"])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", fw_path(FwType::RustHypervisorFirmware).as_str()])
|
||||
.default_disks()
|
||||
.args(["--net", guest.default_net_string().as_str()])
|
||||
@@ -8422,7 +8422,7 @@ mod vfio {
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", "boot=4"])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", fw_path(FwType::RustHypervisorFirmware).as_str()])
|
||||
.args(["--platform", &platform_cfg(iommufd)])
|
||||
.args(["--api-socket", &api_socket])
|
||||
@@ -8474,7 +8474,7 @@ mod vfio {
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", "boot=4"])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--platform", &platform_cfg(iommufd)])
|
||||
.args(["--kernel", fw_path(FwType::RustHypervisorFirmware).as_str()])
|
||||
.args([
|
||||
@@ -8528,7 +8528,7 @@ mod vfio {
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", "boot=4"])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", fw_path(FwType::RustHypervisorFirmware).as_str()])
|
||||
.args(["--device", format!("path={NVIDIA_VFIO_DEVICE}").as_str()])
|
||||
.args(["--platform", &platform])
|
||||
@@ -10713,7 +10713,7 @@ mod rate_limiter {
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", &format!("boot={}", num_queues / 2)])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", direct_kernel_boot_path().to_str().unwrap()])
|
||||
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
||||
.default_disks()
|
||||
@@ -10789,7 +10789,7 @@ mod rate_limiter {
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", &format!("boot={num_queues}")])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", direct_kernel_boot_path().to_str().unwrap()])
|
||||
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
||||
.args([
|
||||
@@ -10899,7 +10899,7 @@ mod rate_limiter {
|
||||
|
||||
let mut child = GuestCommand::new(&guest)
|
||||
.args(["--cpus", &format!("boot={}", num_queues * num_disks)])
|
||||
.args(["--memory", "size=4G"])
|
||||
.args(["--memory", "size=1G"])
|
||||
.args(["--kernel", direct_kernel_boot_path().to_str().unwrap()])
|
||||
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
||||
.args(["--rate-limit-group", &rate_limit_group_arg])
|
||||
|
||||
Reference in New Issue
Block a user