This is a service that creates dynamic swap space over time. It starts out at just 512MiB, but grows automatically as you use your system. Install it as follows:

1
yay -S systemd-swap

In /etc/systemd/swap.conf, configure it as follows:

1
swapfc_enabled=1

Then enable the systemd-swap service:

1
sudo systemctl enable systemd-swap

And that’s it!!!