Skip to content

autopkgtest-virt-qemu+rocm: Improve default RAM and CPU assignment

By default, autopkgtest-virt-qemu+rocm currently assigns 75% of host RAM and CPU to a guest. This is unreasonable on more powerful hosts which are expected to host more than one VM.

This default should be capped

  • By some absolute maximum, eg: 64GB RAM and n CPUs (what n)?
  • By some relative maximum, eg: ((host RAM - 4G) / number of installed GPUs).

This is just about the defaults. In practice, an administrator will override these anyway. But the current default is not safe, as starting a second worker will already trigger the OOM Killer.