Comment 2 for bug 1978438

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is because this a1.medium instance is too small, because of this, the test won't even try to use swapon to workaround this issue.

$ free -m
               total used free shared buff/cache available
Mem: 1838 441 792 15 605 1115
Swap: 0 0 0

$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 184M 16M 169M 9% /run
/dev/nvme0n1p1 7.6G 4.0G 3.6G 53% /
tmpfs 920M 64K 920M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p15 98M 5.1M 93M 6% /boot/efi
tmpfs 184M 64K 184M 1% /run/user/1000

The criteria to create a swap is:
  if mem_gb < 3.0 and df_gb > 4.0 and swapon == '':