SWAP sur Raspbian

Lire le lien : https://raspberrypi.stackexchange.com/questions/84390/how-to-permanently-disable-swap-on-raspbian-stretch-lite (Merci Michel)

J’ai fait un petit script pour faire un free -h et un uname -r sur tous les serveurs :

$ ./ssh-distant-2.sh 
Cnx sur 127.0.0.1 
4.14.34-6-osmc total used free shared buff/cache available Mem: 746M 138M 231M 20M 376M 539M Swap: 0B 0B 0B
Cnx sur 192.168.0.70 
4.14.50+ total used free shared buff/cache available Mem: 433M 28M 51M 5,7M 353M 351M Swap: 99M 0B 99M
Cnx sur 192.168.0.71 
4.14.71-v7+ total used free shared buff/cache available Mem: 927M 183M 138M 46M 604M 633M Swap: 99M 768K 99M
Cnx sur 192.168.0.72 
4.14.50-v7+ total used free shared buff/cache available Mem: 927M 415M 157M 17M 353M 429M Swap: 99M 0B 99M
Cnx sur 192.168.0.73 
4.14.50-v7+ total used free shared buff/cache available Mem: 927M 153M 337M 17M 435M 691M Swap: 99M 0B 99M
Cnx sur 192.168.0.74 
4.14.70-v7+ total used free shared buff/cache available Mem: 927M 158M 127M 57M 641M 647M Swap: 99M 768K 99M

Si je regarde la valuer dans le fichier /etc/dphys-swapfile, via un script : cat /etc/dphys-swapfile | grep CONF_SWAPSIZE

$ ./ssh-distant-3.sh 
Cnx sur 127.0.0.1 
cat: /etc/dphys-swapfile: Aucun fichier ou dossier de ce type
Cnx sur 192.168.0.70 
CONF_SWAPSIZE=100
Cnx sur 192.168.0.71 
CONF_SWAPSIZE=100
Cnx sur 192.168.0.72 
CONF_SWAPSIZE=100
Cnx sur 192.168.0.73 
CONF_SWAPSIZE=100
Cnx sur 192.168.0.74 
CONF_SWAPSIZE=100

Le problème c’est l’écriture sur la carte microSD, je veux être sûr de ne pas user rapidement la carte.

A suivre.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.