Simple Go program to enable/disable C6 C-state, processor boosting, address space layout randomization (ASLR) and the Power Supply Idle Control workaround on an AMD Ryzen processor, in order to help with the infamous "MCE-random-reboots-while-idle" issue.
Code licensed under Apache License 2.0.
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Power Supply Idle Control workaround is ENABLED.
C6 C-state is ENABLED.
ASLR is ENABLED.
Processor boosting is ENABLED.
sudo ./ryzen-stabilizator --enable-c6
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Enabling C6 C-state: SUCCESS
Power Supply Idle Control workaround is DISABLED.
C6 C-state is ENABLED.
ASLR is ENABLED.
Processor boosting is ENABLED.
sudo ./ryzen-stabilizator --disable-c6
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Disabling C6 C-state: SUCCESS
Power Supply Idle Control workaround is ENABLED.
C6 C-state is DISABLED.
ASLR is ENABLED.
Processor boosting is ENABLED.
sudo ./ryzen-stabilizator --enable-boosting
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Enabling processor boosting: SUCCESS
Power Supply Idle Control workaround is ENABLED.
C6 C-state is DISABLED.
ASLR is ENABLED.
Processor boosting is ENABLED.
sudo ./ryzen-stabilizator --disable-boosting
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Disabling processor boosting: SUCCESS
Power Supply Idle Control workaround is ENABLED.
C6 C-state is DISABLED.
ASLR is ENABLED.
Processor boosting is DISABLED.
sudo ./ryzen-stabilizator --enable-aslr
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Enabling address space layout randomization (ASLR): SUCCESS
Power Supply Idle Control workaround is ENABLED.
C6 C-state is DISABLED.
ASLR is ENABLED.
Processor boosting is DISABLED.
sudo ./ryzen-stabilizator --disable-aslr
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Disabling address space layout randomization (ASLR): SUCCESS
Power Supply Idle Control workaround is ENABLED.
C6 C-state is DISABLED.
ASLR is DISABLED.
Processor boosting is DISABLED.
sudo ./ryzen-stabilizator --enable-psicworkaround
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Enabling Power Supply Idle Control workaround: SUCCESS
Power Supply Idle Control workaround is ENABLED.
C6 C-state is DISABLED.
ASLR is DISABLED.
Processor boosting is DISABLED.
sudo ./ryzen-stabilizator --disable-psicworkaround
Ryzen Stabilizator Tabajara unspecified/git version
Copyright (C) 2018 Sergio Correia <sergio@correia.cc>
Disabling Power Supply Idle Control Workaround: SUCCESS
Power Supply Idle Control workaround is DISABLED.
C6 C-state is ENABLED.
ASLR is DISABLED.
Processor boosting is DISABLED.