One of the reasons is that the computer in question has a problem where suddenly everything completely freezes, and I have to forcibly reboot the computer with the hardware reset button. And sometimes after rebooting I find that files on the file system have become corrupted.
Sometimes the machine will run for days without freezing up. Sometimes it can freeze up after just a couple of hours.
Sometimes I am browsing the web when it happens. Sometimes I am writing code and compiling stuff when it happens.
I think the longest uptime I have had on it after the problem started without it freezing has been maybe 8 days. It’s been like this for a long while. A couple of years at least.
And when it freezes it’s not just the UI. It even stops responding to ping.
A few months back someone suggested that it may be due to a faulty PSU. But even after changing the PSU to a new one, it still happens.
And it’s been happening both with different Linux distros and with FreeBSD.
My hardware is:
- MSI B350 Tomahawk motherboard
- AMD Ryzen 7 1700 CPU
- MSI GeForce GTX 1060 6GB graphics card
- Crucial DDR4 2133Mhz 32GB ECC (2x16GB) CT2K16G4WFD8213 RAM
I bought those components in March of 2018, according to the order history in my account on the store where I bought it.
I don’t remember if I ever did run a memory test, but I will do so again anyways soon because I am suspecting that faulty RAM may be the reason. It just takes a long time to run a memory test on 32 GB of RAM and so whenever I think about needing to run it I don’t have time to do so at that moment. But as I am typing this I realize that I’ve got to go ahead and actually find time for running it soon.
Another couple of ideas I’ve had is that maybe the graphics card or the nvidia drivers are to blame. Or that I may have damaged some component with static electricity at some point. Or maybe it’s a thermal issue.
I most recently did a fresh install earlier today, and at the same time I switched out the SSD that was in it for another one. As far as I can remember though, I think I was having this kind of problem even before I was using the SSD that I switched out today. But I am not sure about that. So it could be that the SSD was the problem. But it may be a few days until it freezes again if it’s not the reason. Or it could happen in some hours.
I’ve also tried to look for clues in /var/log/syslog but haven’t really known what to look for specifically. And since even pinging the machine stops working when it freezes I am not sure the system would even be able to write to any logs at the moment that it freezes, since it seems that at that point pretty much everything has stopped working.
Currently I am running tail -F /var/log/syslog in a terminal in the hopes of either seeing something relevant frozen on screen, or in the surrounding output when I reboot the machine since I will then know which line of output I should begin looking in the vicinity of.
But yeah, a memory test is the next thing I plan to do after that.