From cde9e9a910f3f63735ac6183ade870f50a809acc Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 21 Jan 2021 12:01:07 -0600 Subject: Add more info for clocking --- pages/linux/clock.md | 12 ++++++++---- 1 file 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` -- cgit v1.2.3-70-g09d2