From: Lucian Petrut Date: Sun, 21 Apr 2024 19:43:39 +0000 (+0300) Subject: windows: reduce Linux VM memory X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80c4315116ef98d382145d85e923fe704fab178a;p=ceph-build.git 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 --- 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" #