Hello to all.
I use manjaro gnome in a laptop with SSD 250 GB dual boot with Windows. Sometimes, especially if I have too many tabs open in Firefox, the system freezes and I can do nothing but force shutdown button. The screen freezes (doesn’t get black), mouse and keyboard doesn’t work (can’t switch to tty). I think this is related to RAM usage, because it’s more frequent when I have many tabs open in Firefox, but it shouldn’t be happening anyway, since I have 8 GB RAM and SSD, and I use the computer only for web, I don’t play games nor use heavy applications. The system usually works pretty smooth, everything is fast and it doesn’t lag at all. Also when the bug happens, many times I have nothing but Firefox running.
I will paste some system info, please tell me if you need more info ou logs and I will provide.
sudo fdisk -l ✔
[sudo] senha para lucasgossen:
Disco /dev/nvme0n1: 238,47 GiB, 256060514304 bytes, 500118192 setores
Modelo de disco: IM2P33F3A NVMe ADATA 256GB
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
Tipo de rótulo do disco: gpt
Identificador do disco: E17AAE3F-63DD-4693-91FB-24321B87F098
Dispositivo Início Fim Setores Tamanho Tipo
/dev/nvme0n1p1 2048 309247 307200 150M Sistema EFI
/dev/nvme0n1p2 309248 571391 262144 128M Microsoft reservado
/dev/nvme0n1p3 571392 210751109 210179718 100,2G Microsoft dados bás
/dev/nvme0n1p4 210751111 500115455 289364345 138G Linux sistema de arquivos
uname -r ✔
6.1.126-1-MANJARO
mhwd -li ✔
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime 2023.03.23 false PCI
video-modesetting 2020.01.13 true PCI
Warning: No installed USB configs!
Thanks for the information provided.
But a more comprehensive report of system information would be
inxi -Farz
Thats not really very much RAM.
And if you dont have any SWAP space … when that 8gb runs out we can expect lockups (freezes).
The fstab does not indicate any SWAP partition. But the inxi will tell us for for sure whether a swapfile or alternative is in use, among other things.
Firefox is a memory hog, or maybe it just leaks like a sieve.
You’ll find you will be starting to go into swap after watching YouTube videos for more than a few days in some cases, maybe less; depends on usage.
Restarting the browser periodically does buy time between reboots, but not all the cruft is cleared out by doing so and therefore it still builds up.
A handy command to use to keep an eye of memory usage:
watch -n30 free -h
…. change the time (in seconds) as desired.
We’ll await the inxi report.
Trust me, with firefox and the way modern websites are designed, you will easily run out of RAM if you only have 8 GiB, and without swap, that’s going to cause you problems.
It is always recommended to have at least some swap; this should help to avoid the freezes you describe. I’d go for at least half your RAM size (preferably a bit more than the total, though; in this case I’d suggest ~9G).
Note: swap can either be a partition, or a file (or maybe a combination of both). I prefer a partition but it’s up to you to decide.