You are not logged in.

#1 2018-07-06 02:20:57

tzhuang
Member
Registered: 2017-05-23
Posts: 45

Determine cpu frequency on Arch

I am following instructions here:
https://wiki.archlinux.org/index.php/CP … cy_scaling

tzhuang@jupiter:~> cpupower frequency-info
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: no
    Active: no
tzhuang@jupiter:~> sudo modprobe acpi-cpufreq
modprobe: ERROR: could not insert 'acpi_cpufreq': No such device

I have a Ryzen 1600 running on a ASRock AB350 Gaming K4. Overclocked to 3800@1.30V. RAM at DDR-3200. Is this a hardware limitation or am I doing something wrong.

Offline

#2 2018-07-06 06:18:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,641

Re: Determine cpu frequency on Arch

No idea about ryzen, but look around in /sys/devices/system/cpu/cpu*/cpufreq/ - you can just cat those files.

Offline

#3 2018-07-06 07:06:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,352

Re: Determine cpu frequency on Arch

A quick googler shows a few topics that mention that overclocking to 3.8 Ghz+ might disable the necessary support - i.e. the first non phoronix hit: https://forum.manjaro.org/t/ryzen-and-cpufreq/29781

Last edited by V1del (2018-07-06 07:06:48)

Offline

#4 2018-07-06 17:25:21

tzhuang
Member
Registered: 2017-05-23
Posts: 45

Re: Determine cpu frequency on Arch

seth wrote:

No idea about ryzen, but look around in /sys/devices/system/cpu/cpu*/cpufreq/ - you can just cat those files.

Hmm dont't seem to see anything under there:

tzhuang@jupiter:~> ls /sys/devices/system/cpu/cpu0/
cache/  hotplug/  microcode/  power/  topology/  crash_notes  crash_notes_size  driver@  firmware_node@  node0@  subsystem@  uevent

I can get the cpu freq from /proc/cpuinfo it looks like:
https://gist.github.com/75f8afd2a59e93e … 2b0fc9f516
but I'm trying to follow the instructions for cpu freq scaling on the wiki page. Is there a way to verify my OC from bios is being applied?

Offline

#5 2018-07-06 17:42:57

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: Determine cpu frequency on Arch

tzhuang wrote:

I can get the cpu freq from /proc/cpuinfo it looks like:
https://gist.github.com/75f8afd2a59e93e … 2b0fc9f516
but I'm trying to follow the instructions for cpu freq scaling on the wiki page. Is there a way to verify my OC from bios is being applied?

What about running the following script and then generate some cpu load? Compile a kernel or something...

#!/bin/bash

while true; do
        clear
        grep MHz /proc/cpuinfo
        sleep 1
done

Probably far away from a perfect solution... wink

Last edited by arisinfenix (2018-07-06 17:49:25)

Offline

#6 2018-07-06 17:52:04

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,957
Website

Re: Determine cpu frequency on Arch

watch -n 0 grep \"cpu MHz\" /proc/cpuinfo

Last edited by ugjka (2018-07-06 17:52:25)

Online

#7 2018-07-06 18:03:37

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: Determine cpu frequency on Arch

ugjka wrote:
watch -n 0 grep \"cpu MHz\" /proc/cpuinfo

Yeah, I tried something like that first, but did not work. Seems I messed up the watch command... big_smile

Offline

#8 2021-01-04 17:06:57

mozlima
Member
Registered: 2019-09-22
Posts: 9

Re: Determine cpu frequency on Arch

To see the realtime frequency  as obtained from the hardware use:

sudo watch -n 0 cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq


https://unix.stackexchange.com/a/87537/422800

Current frequency of the CPU as obtained from
                the hardware, in KHz. This is the frequency
                the CPU actually runs at.

https://www.kernel.org/doc/html/latest/ … e-in-sysfs

Offline

#9 2021-01-04 17:12:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,352

Re: Determine cpu frequency on Arch

thanks for sharing, however as the OP did not have the cpufreq node that wouldn't work for them either.

In any case this is 2 years old and the issue potentially not even present anymore, please don't bump old topics.

Closing.

Offline

Board footer

Powered by FluxBB