How to increase the size of your swapfile

Always think out of the box. Do not restrict yourself to just Arch Linux articles or ArcoLinux articles.

We use an article for Ubuntu to increase the swap file.

Turn off all swap processes

sudo swapoff -a

Resize the swap (from 512 MB to 8GB)

sudo dd if=/dev/zero of=/swapfile bs=1G count=8

if = input file
of = output file
bs = block size
count = multiplier of blocks

Make the file usable as swap

sudo mkswap /swapfile

Activate the swap file

sudo swapon /swapfile

Check the amount of swap available

grep SwapTotal /proc/meminfo

Or use applications such as htop, gtop, glances and others.

Here is an older video that might interest you as well.