Page MenuHomePhabricator

Add swapfile to delta
Closed, ResolvedPublic

Description

Add a 1G swapfile to delta to help prevent "out of memory" errors, pending the completion of T321765: Crear juno y desmontar delta en wikisp-do

Event Timeline

TheresNoTime claimed this task.
theresnotime@delta:~$ sudo fallocate -l 1G /swapfile
theresnotime@delta:~$ sudo chmod 600 /swapfile
theresnotime@delta:~$ sudo mkswap /swapfile
theresnotime@delta:~$ sudo swapon /swapfile

theresnotime@delta:~$ sudo swapon --show 
NAME      TYPE  SIZE USED PRIO
/swapfile file 1024M 1.8M   -2

Debido al último reinicio se tuvo que colocar nuevamente el swapfile.

Ahora está permanente (hasta que se haga la migración):

galahad@delta:~$ sudo cp /etc/fstab /etc/fstab.bak
galahad@delta:~$ echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab