How to use acpi-cpufreq driver?

Issues related to applications and software problems
Post Reply
hicentossina
Posts: 1
Joined: 2018/10/11 13:28:08

How to use acpi-cpufreq driver?

Post by hicentossina » 2018/10/11 13:34:01

How to use acpi-cpufreq driver?

The default is intel_pstate, and i can't disable it.

I tried viewtopic.php?t=59128 , but it's still pstate.

I can't use userspace governer and adjust the cpu frequency.

renatogsf
Posts: 1
Joined: 2019/05/13 11:52:09

Re: How to use acpi-cpufreq driver?

Post by renatogsf » 2019/05/13 12:55:32

I'm Analyzing and trying to use that but i'm having problem too. If someone have more information about how to enable and use it will be very welcome.

In my case, i'll enable on Virtual Server over Hyper-V.

System Info:

Code: Select all

[root@lnxvm01 ~]# uname -a
Linux lnxvm01 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@lnxvm01 ~]#

Code: Select all

System Information
        Manufacturer: Microsoft Corporation
        Product Name: Virtual Machine
        Version: 7.0
CPU Info:

Code: Select all

Processor Information
        Socket Designation: None
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel(R) Corporation
        ID: F2 06 03 00 FF FB 8B 1F
        Signature: Type 0, Family 6, Model 63, Stepping 2
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
[b]	Version: Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
        Voltage: 2.3 V
        External Clock: 100 MHz
        Max Speed: 4000 MHz
        Current Speed: 2400 MHz[/b]
        Status: Populated, Enabled
        Upgrade: None
        L1 Cache Handle: Not Provided
        L2 Cache Handle: Not Provided
        L3 Cache Handle: Not Provided
        Serial Number: None
        Asset Tag: None
        Part Number: None
ACPI FREQ Not running

Code: Select all

[root@lnxvm01 ~]# cpupower -c all 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.
  hardware limits: 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

analyzing CPU 1:
  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.
  hardware limits: 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

[root@lnxvm01 ~]# 

Code: Select all

[root@lnxvm01 ~]# ls /sys/devices/system/cpu/cpu0/
cache/            crash_notes       crash_notes_size  driver/           firmware_node/    microcode/        node0/            online            power/            subsystem/        topology/         uevent
[root@lnxvm01 ~]# lsmod | grep -i freq
[root@lnxvm01 ~]# 
Kernel Modules not present:

Code: Select all

[root@lnxvm01 ~]# ls /lib/modules/3.10.0-862.11.6.el7.x86_64/kernel/arch/
x86
[root@lnxvm01 ~]# ls /lib/modules/3.10.0-862.11.6.el7.x86_64/kernel/arch/x86/
crypto/   kernel/   kvm/      oprofile/ platform/
[root@lnxvm01 ~]# ls /lib/modules/3.10.0-862.11.6.el7.x86_64/kernel/arch/x86/kernel/cpu/
mcheck
[root@lnxvm01 ~]# ls /lib/modules/3.10.0-862.11.6.el7.x86_64/kernel/arch/x86/kernel/cpu/mcheck/
mce-inject.ko.xz
[root@lnxvm01 ~]#

aks
Posts: 2706
Joined: 2014/09/20 11:22:14

Re: How to use acpi-cpufreq driver?

Post by aks » 2019/05/13 17:21:09

You don't say why you want to do this.
You also don't say if the hypervisor layer will filter your requests.
Personally I'd just use tuned to set the governor mode.

An intro is available at:
https://www.certdepot.net/rhel7-get-sta ... -governor/

User avatar
TrevorH
Forum Moderator
Posts: 25542
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to use acpi-cpufreq driver?

Post by TrevorH » 2019/05/13 17:23:33

In a VM I don't think you want any cpu government at all. That should be done on the host if at all.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

aks
Posts: 2706
Joined: 2014/09/20 11:22:14

Re: How to use acpi-cpufreq driver?

Post by aks » 2019/05/13 17:27:37

Yup. What he ^^^ said

Post Reply