Comment 72 for bug 1690085

Revision history for this message
Kevin Wong (stonecracker) wrote :

CPU: Ryzen Threadripper 1920X
Ubuntu 16.04 LTS

Identical problems to the above. Agonizing, irritating, random, low-load idle-state freezes. No issues while under heavy load.

My fixes:

Disabled c-states in the BIOS
Disabled ASLR in the BIOS
Disabled AMD Cool 'n Quiet in the BIOS.

Compiled a new kernel from source, (4.13.16) but with "Offload RCU_callback processing" aka CONFIG_RCU_NOCB_CPU, chosen in the kernel config.

I added "rcu_nocbs=0-23" to the "GRUB_CMDLINE_LINUX" parameter in /etc/default/grub (and then ran "sudo update-grub"). "0-23", to cover all 24 threads on the 12 core Ryzen,

Rebooted.

Only with all of those fixes (yep, all of them, tested every one of them separately -- that took an eon -- have I finally gotten a stable system.

Zero issues now after 8 weeks. Let's hope that holds.

Haven't tried any kernel updates, though.

In addition to the above, I also consulted these references:

http://blog.programster.org/stabilizing-ubuntu-16-04-on-ryzen

http://blog.programster.org/ubuntu-16-04-compile-custom-kernel-for-ryzen

http://blog.programster.org/how-to-disable-aslr