====== Crash sur Ubuntu/Debian ====== ===== Situation initiale ===== Il arrive plus ou moins régulièrement que mon ordinateur freeze complètement. Souvent après une période sans l'utiliser, en veille, mais pas toujours. Je soupçonne un problème avec [[thunderbird]] mais je n'ai pas réussis à identifier le soucis. On m'a conseillé de faire plusieurs tests : * [[memtest]] : tout semble OK * [[https://fr.m.wikipedia.org/wiki/Magic_SysRq_key|Magis_SysRq key]] : Ça marche (donc le CPU n'est pas bloqué!) * [[https://guide.ubuntu-fr.org/desktop/disk-check.html|Vérifier le disque dur]] : OK * Suivre les conseils d'[[https://eldritch.cafe/@agate/105820483414357889|Agate]], qui conseille d'installer [[zram-config]] : Fait, on va voir si ça aide. J'ai aussi fait un script pour surveiller l'utilisation de la RAM et du CPU : $ cat ~/tmp/script-check-ram.sh #!/bin/bash echo -e "---------------------------------------------------------------------------------\n" echo -e "\$ date" date echo -e "\n\$ ps -aux --sort=%mem,%cpu | tail -n 5 | cut -c 1-100" ps -aux --sort=%mem,%cpu | tail -n 5 | cut -c 1-100 echo -e "\n\$ free -h" free -h echo -e "" Je l'ai ajouté à [[crontab]] pour qu'il se lance toutes les 5 minutes : $ crontab -l */5 * * * * /bin/bash /home/simon/tmp/script-check-ram.sh >> /home/simon/tmp/script-check-ram.txt On peut vérifier : $ cat ~/tmp/script-check-ram.txt --------------------------------------------------------------------------------- $ date mar 16 mar 2021 10:10:01 CET $ ps -aux --sort=%mem,%cpu | tail -n 5 | cut -c 1-100 simon 4756 0.5 1.4 3949316 242484 ? SLl 09:17 0:18 /usr/bin/nextcloud --background simon 6101 0.1 1.9 1366796 324180 ? Sl 09:18 0:05 /usr/bin/gnome-software --gapplic simon 16429 2.8 2.1 830736 346156 ? Sl 09:27 1:12 /tmp/.mount_ramboxGg8O6z/rambox - simon 15580 4.0 2.2 34251024 359576 ? Sl 09:26 1:45 /usr/lib/firefox/firefox -content simon 15368 18.5 3.9 4803752 646708 ? Sl 09:26 8:01 /usr/lib/firefox/firefox $ free -h total utilisé libre partagé tamp/cache disponible Mem: 15Gi 3,5Gi 8,4Gi 897Mi 3,6Gi 10Gi Partition d'échange: 8,7Gi 0B 8,7Gi ===== Update le 18/03 ===== J'ai encore eu l'ordinateur compplètement bloqué en me levant ce matin. Heureusement, cette fois, j'ai un log perso ! On regarde ce qu'il y a à la fin de celui-ci : $ cat script-check-ram.txt | tail -n 100 $ date jeu 18 mar 2021 08:50:01 CET $ ps -aux --sort=%mem,%cpu | tail -n 5 | cut -c 1-100 annyvon+ 931304 0.1 1.6 3434356 264952 ? Sl mar17 2:18 /usr/lib/thunderbird/thunderbird annyvon+ 927680 1.1 1.8 4341236 303136 ? Sl mar17 14:53 /usr/lib/firefox/firefox annyvon+ 928863 0.0 2.3 1433876 384756 ? Sl mar17 0:11 /usr/bin/gnome-software --gapplic simon 15611 3.2 16.4 6476732 2679488 ? Sl mar16 93:24 /usr/lib/firefox/firefox -content simon 15368 6.3 39.1 16169188 6382556 ? Sl mar16 180:27 /usr/lib/firefox/firefox $ free -h total utilisé libre partagé tamp/cache disponible Mem: 15Gi 14Gi 150Mi 580Mi 805Mi 97Mi Partition d'échange: 8,7Gi 8,7Gi 0,0Ki Le problème, c'est bien la **RAM qui se remplit**, malgré [[zram]]. Et le coupable, ce n'est pas comme je le soupçonnais [[thunderbird]] mais [[firefox]] !!!