]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
windows: reduce Linux VM memory 2227/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Sun, 21 Apr 2024 19:43:39 +0000 (22:43 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sun, 21 Apr 2024 19:50:59 +0000 (22:50 +0300)
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 <lpetrut@cloudbasesolutions.com>
scripts/ceph-windows/setup_libvirt_ubuntu_vm

index 372c6f29a86f4f868c1d91887a12acb5d9f469fe..6de1d76d09653f44d2eff18c8ef0d06c9243d455 100644 (file)
@@ -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"
 
 #