vast-ai / vast-python

Vast.ai python and cli api client
MIT License
122 stars 48 forks source link

Memory error (killed) due to insufficient swap space #96

Open gogo9th opened 8 months ago

gogo9th commented 8 months ago

Hi,

My VastAI instance (using Ubuntu 22.04) gets killed when a process's swap usage exceeds the available limit. However,I cannot increase the swap space (maybe because I am running the instance within a docker?). Even if I have enough RAM, the instance gets killed because the swap space is insufficient. I cannot turn off the swapping:

:root/CryptoGCN$ swapoff -a swapoff: Not superuser.

Modifying the swap space by editing /etc/fstab doesn't work, either.

How can either turn off or increase the swap space?