Из Практический пример :Swapoff не может выделить память .
If processes reserve more memory than the sum of the swap area and (part of the) RAM, and your system is configured not to over-commit memory, the allocation fails. This can happen even while you have plenty of RAM free and are not using any pages on the swap area.
Если ваш файл подкачки определен в /etc/fstab
(, а не в systemd -swap ), то просто удалите или закомментируйте строку в /etc/fstab
и перезагрузитесь.
Если для настройки подкачки используется systemd -swap, установите swapfc_enabled=0
в секции Swap File Chunked
в /etc/systemd/swap.conf
и перезагрузитесь.