diff options
author | Anthony Wang | 2021-01-21 12:01:07 -0600 |
---|---|---|
committer | Anthony Wang | 2021-01-21 12:01:07 -0600 |
commit | cde9e9a910f3f63735ac6183ade870f50a809acc (patch) | |
tree | ba2bb78bec659033070b4a3edfee3d919eb786c5 | |
parent | 9eb5969c592a132cbaab96858ccd40ee11b2344b (diff) |
Add more info for clocking
-rw-r--r-- | pages/linux/clock.md | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pages/linux/clock.md b/pages/linux/clock.md index 9fbda3d..10f7027 100644 --- a/pages/linux/clock.md +++ b/pages/linux/clock.md @@ -2,6 +2,10 @@ > Change clock of various components +- Print dedicated CPU clocks: + +`cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor` + - Set CPU governor to performance: `sudo cpupower frequency-set -g performance` @@ -10,10 +14,10 @@ `sudo cpupower frequency-set -g powersave` -- Print dedicated GPU clocks +- Print dedicated GPU clocks (first card): -`sudo cpupower frequency-set -g performance` +`sudo cat /sys/kernel/debug/dri/0/pstate` -- Reclock the dedicated GPU +- Reclock the dedicated GPU: -`echo {{pstate}} | sudo tee /sys/kernel/debug/dri/1/pstate` +`echo {{pstate}} | sudo tee /sys/kernel/debug/dri/0/pstate` |