From 80c4315116ef98d382145d85e923fe704fab178a Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Sun, 21 Apr 2024 22:43:39 +0300 Subject: [PATCH] windows: reduce Linux VM memory There have been a lot of Windows job failures lately due to qemu errors caused by insufficient Jenkins slave memory: ERROR internal error: process exited while connecting to monitor: 2024-04-21T11:37:28.922183Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory Each Windows job spins up two virtual machines: a Linux one with 64GB of ram and a Windows VM with 8GB of ram. Since the Windows job no longer uses memstore, we can probably reduce the Linux vm memory to 16GB. Signed-off-by: Lucian Petrut --- scripts/ceph-windows/setup_libvirt_ubuntu_vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ceph-windows/setup_libvirt_ubuntu_vm b/scripts/ceph-windows/setup_libvirt_ubuntu_vm index 372c6f29..6de1d76d 100644 --- a/scripts/ceph-windows/setup_libvirt_ubuntu_vm +++ b/scripts/ceph-windows/setup_libvirt_ubuntu_vm @@ -7,7 +7,7 @@ if [[ -z $LIBVIRT_DIR ]]; then echo "ERROR: The env variable LIBVIRT_DIR is not export UBUNTU_VM_IMAGE_URL=${UBUNTU_VM_IMAGE_URL:-"https://cloud-images.ubuntu.com/minimal/releases/jammy/release/ubuntu-22.04-minimal-cloudimg-amd64.img"} export UBUNTU_VM_NAME=${UBUNTU_VM_NAME:-"ceph-ubuntu-vstart-${JOB_NAME}-${BUILD_ID}"} export UBUNTU_VM_VCPUS="$(nproc)" # use all the CPU cores avaiable on the host -export UBUNTU_VM_MEMORY="65536" # 64 GB +export UBUNTU_VM_MEMORY=${UBUNTU_VM_MEMORY:-"16384"} # 16 GB export UBUNTU_SSH_USER="ubuntu" # -- 2.39.5