Troubleshooting NVME SSD Issues in Linux

We recently bought ourselves a good 500GB PCI-e NVME SSD, for those who don’t know what it is, basically a very fast SSD. The model that we bought in the online store shop.kz– Kingston A2000 and we have to say that it is a very good drive for the price. This was fine, but we ran into OS freezes where randomly, without any warning, the main drive behaved as if someone had disabled it. Once we couldn’t even install Fedora, it couldn’t format the drive! Of course, this is unacceptable, and something had to be done … Let’s start with the background.

Install Windows … why?

Yes, we tested it on Windows 10 and I had no problems with the OS freezing. Of course, we could just use Windows and be done with it, but since we are not doing this here, I had to find a solution to this problem and so research began.

Bug report, hurray!

We found this bug report and read some of what people wrote, it looks like it will not be fixed due to mixed reactions from people. Fortunately, after testing some of the GRUB options, I found one that worked perfectly. All I had to do was add the GRUB_CMDLINE_LINUX line and reload the GRUB configuration. All!

Decision

Open a terminal and find your GRUB file, usually / etc / default / grub, but check your distribution’s documentation. Open it in a text editor with superuser rights. We will use vim for this …

sudo vim /etc/default/grub

Then in this part, just add the below code to GRUB_CMDLINE_LINUX = “” at the end of it.

nvme_core.default_ps_max_latency_us=0

After you do that, it should look something like this, do not copy what we have as your system will be different.

Save and exit your text editor, then run the following command

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Then reboot!

If you want to check if the command worked, you can run the following command and the expected output should be similar to this:

cat /sys/module/nvme_core/parameters/default_ps_max_latency_us

Hope this solves your NVME problems.

Sidebar