first of all this is my config : - Intel i5-2520M - 8GB of RAM - SEAGATE st1000lm014 - 1TB SSHD - 64MB cache + 8GB flash - Ubuntu 17.10
The problem is that when I get close to the RAM being full computer freezes and in some cases it unfreezes after several minutes or I need to reboot it. I do have 16GB of swap enabled, I've tested swapiness in a range of 10 - 100, together with min_free_kbytes. Without the swap it was the same story. Same thing happened while watching any longer videos in Chrome ( I was not looking at top or monitor at this point, but the system froze and the HDD led is blinking like crazy)
To recreate I use :
stress --cpu 8 --io 8 --vm 8 --vm-bytes 900M --hdd 8 --timeout 100s
But sometimes it's not coming back from the dead.
I think it's connected with the sceond problem that I have which is the system becoming ustable/sluggish at some points, as seen on the screenshot. In this situation I'm syncing Ethereum node, the HDD usage is moderate, same as CPU and RAM, but cpufreq shows that system is overloaded and I can barely move the mouse pointer. When trying to open app drawer it starts lagging even more.
The HDD itself seems to be healthy: