Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dennisotugo/556ad41cde44fc18959ad7bcb1b4adbd to your computer and use it in GitHub Desktop.
Save dennisotugo/556ad41cde44fc18959ad7bcb1b4adbd to your computer and use it in GitHub Desktop.
NVME SSD Freezing on Linux

https://esc.sh/blog/nvme-ssd-and-linux-freezing/

nvme_core.default_ps_max_latency_us=5500

How to update the Kernel parameter

First of all, figure out if you are using Grub or systemd boot. If you are using Pop OS!, you are most probably using systemd-boot. I believe Ubuntu is still using Grub2, please do your research.

For Grub

Edit /etc/default/grub as root (You can use your favourite text editor). If you don’t have one, do sudo gedit /etc/default/grub

Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT and add the parameter there. Your line should look like this now (Make sure it is a single line with no line break)

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme_core.default_ps_max_latency_us=5500"

And update grub using

sudo update-grub

For Systemd boot

Find your loader configuration. For example, Pop OS! conf path is

/boot/efi/loader/entries/Pop_OS-current.conf

Edit the file and find the line that starts with options and add the parameter to the end of the line. It should look like this after adding the entry

options root=UUID=350fc3dc-9ed1-440d-9a8f-922ee8c6511f ro quiet loglevel=0 systemd.show_status=false splash nvme_core.default_ps_max_latency_us=5500

And reboot. That’s pretty much it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment