All Projects → joakimkistowski → amd-disable-c6

joakimkistowski / amd-disable-c6

Licence: MIT license
Systemd service to automatically disable the C6 power saving state on AMD Zen (Ryzen / Epyc) processors

Programming Languages

C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to amd-disable-c6

node-systemd-journald
Native bindings to journald
Stars: ✭ 26 (-7.14%)
Mutual labels:  systemd
rapl-read-ryzen
Quick & dirty hack to read AMD Ryzen rapl counters
Stars: ✭ 47 (+67.86%)
Mutual labels:  amd
apmjs
AMD Package Manager, APM Package Manager
Stars: ✭ 23 (-17.86%)
Mutual labels:  amd
wimpy.deploy
Ansible role to automate immutable infrastructure scheduling one docker container on one EC2 instance
Stars: ✭ 21 (-25%)
Mutual labels:  systemd
sysz
An fzf terminal UI for systemctl
Stars: ✭ 1,258 (+4392.86%)
Mutual labels:  systemd
one-script-wsl2-systemd
The one-script variant of the systemd hack for WSL2
Stars: ✭ 196 (+600%)
Mutual labels:  systemd
erlang-systemd
systemd utilities for Erlang applications
Stars: ✭ 140 (+400%)
Mutual labels:  systemd
android-tether
Autostart Android USB tethering with udev + systemd + adb
Stars: ✭ 30 (+7.14%)
Mutual labels:  systemd
gentoo-project-gnome-without-systemd
GNOME Without Systemd
Stars: ✭ 89 (+217.86%)
Mutual labels:  systemd
monkey-master
A deno tool for buying hot GPUs in JD, such as RTX3080 rx6800, a thick-skinned orange!
Stars: ✭ 180 (+542.86%)
Mutual labels:  amd
babel-plugin-transform-amd-to-commonjs
✨ Babel plugin that transforms AMD to CommonJS
Stars: ✭ 44 (+57.14%)
Mutual labels:  amd
service-systemd
Setup a node.js app as systemd service.
Stars: ✭ 35 (+25%)
Mutual labels:  systemd
logback-journal
systemd journal appender for Logback
Stars: ✭ 25 (-10.71%)
Mutual labels:  systemd
ScanTree
Scan a JS file tree to build an ordered and grouped dependency listing
Stars: ✭ 51 (+82.14%)
Mutual labels:  amd
macOS-EFI-Asus-X570I
🖥 Files needed to run macOS on the Asus ROG Strix X570-I
Stars: ✭ 12 (-57.14%)
Mutual labels:  amd
systemd-formula
No description or website provided.
Stars: ✭ 24 (-14.29%)
Mutual labels:  systemd
fuck systemd
A library to bring the joys of non-systemd users to systemd users
Stars: ✭ 19 (-32.14%)
Mutual labels:  systemd
dron
What if cron and systemd had a baby?
Stars: ✭ 30 (+7.14%)
Mutual labels:  systemd
buddy-linux
Do you remember "Wubi Ubuntu Installer"? This project is both a replacement and an improvement of Wubi. You will be able to install your Debian (or derived) distribution on a PC without repartitioning it, simply by using a secondary/external boot device (like a USB drive).
Stars: ✭ 17 (-39.29%)
Mutual labels:  systemd
systemdspawner
Spawn JupyterHub single-user notebook servers with systemd
Stars: ✭ 79 (+182.14%)
Mutual labels:  systemd

amd-disable-c6

This is a systemd service to automatically disable the C6 power saving state on AMD Zen (Ryzen / Epyc) processors. The C6 state is known to occasionally freeze Linux distributions running Zen-based processors in deep idle. This systemd service disables the C6 state on boot as a workaround for this bug. Of course, this is only a stop-gap solution until AMD releases a final fix to the underlying issue.

Installation

RPM and DEB repositories for the service are available to be used for apt/dnf/yum/zypper.
Note: On RPM-based distros you will have to enable and start the service after installation using:

$ sudo systemctl enable amd-disable-c6.service
$ sudo systemctl start amd-disable-c6.service

Supported Distributions at the moment:

  • RPM: CentOS 7 and 8, Fedora 28, 29, 30 and Rawhide, Mageia 7 and Cauldron, openSUSE Tumbleweed, openSUSE Leap 15 and 15.1, RHEL 7 and 8, SLE 15 and 15.1
  • DEB: Debian 9 and 10, Ubuntu 16.04, 18.04, 18.10 and 19.04

How to build and install manually:

$ sudo make install
$ sudo systemctl enable amd-disable-c6.service
$ sudo systemctl start amd-disable-c6.service

Troubleshooting

The most likely reason for the service to fail is the msr module not being present. It should be present on most distros, but some (e.g., Arch, Manjaro) do not have it enabled by default.

To enable the module:

$ sudo modprobe msr #enable until next reboot
$ sudo sh -c "echo msr > /etc/modules-load.d/msr.conf" #auto-enable at boot time
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].