1. Creare file
fallocate -l 2G /swapfile
chmod 600 /swapfile
2. Attivare
mkswap /swapfile
swapon /swapfile
3. Persistenza
Aggiungi in /etc/fstab:
/swapfile none swap sw 0 0
4. Verifica
swapon -s
Checklist rapida
[ ] Passi completati
[ ] Config aggiornata
[ ] Servizio testato
[ ] Riavvio/rollback pronto
[ ] Log verificati