Categories

Debian – Raspberry -PI – Ajout swap

Vérifier la zone de swap

root@srv-khanh:~# /sbin/dphys-swapfile setup
wanted –> /var/swap=100MByte, checking existing: keeping it


Modifier le fichier /etc/dphys-swapfile pour changer la valeur du SWAP

CONF_SWAPSIZE=2048

Arrêt et redémarrer pour la prise en compte de la nouvelle valeur du SWAP

root@srv-khanh:~# /etc/init.d/dphys-swapfile stop
[ ok ] Stopping dphys-swapfile (via systemctl): dphys-swapfile.service.

root@srv-khanh:~# /etc/init.d/dphys-swapfile start
[ ok ] Starting dphys-swapfile (via systemctl): dphys-swapfile.service.

root@srv-khanh:~# /sbin/dphys-swapfile setup
want /var/swap=2048MByte, checking existing: keeping it

root@srv-khanh:~# /sbin/dphys-swapfile swapon

 

 

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

This site uses Akismet to reduce spam. Learn how your comment data is processed.