Enable your Ubuntu system to support CPU Dynamic Frequency Modulation

Source: Internet
Author: User
First, make sure that your computer supports and enables the CPU dynamic frequency modulation function. The method is as follows: (I use a DELL machine) (1) enter the BIOS after the boot, find the performance option. In the speedset sub-option, you will see whether your CPU dynamic frequency modulation is enabled. If not, enable it. (2) Check whether your kernel has a module that supports dynamic frequency modulation: $ cdsys/devices/system/cpu/cpufreq. If the folder is empty

First, make sure that your computer supports and enables the CPU dynamic frequency modulation function. The method is as follows:

(I am using a DELL host)

(1) enter the BIOS after the boot, and find the performance option. In the speedset sub-option, you will see whether your CPU dynamic frequency modulation is enabled. If not, enable it.

(2) Check whether your kernel has a module that supports dynamic frequency modulation:

$ Cd sys/devices/system/cpu/cpufreq

If the folder is empty, it indicates that you have not installed the corresponding module. Otherwise, the ondemand folder should exist.

If no installation is available, you need to manually install it:

$ Sudo apt-get install cpufrequtils

(3) restart your computer and check whether the ondemand folder exists in the/sys/devices/system/cpu/cpufreq folder.

If you are not sure, you can run the following systemtap script:

  1. Global times
  2. # Probe kernel. function ("do_dbs_timer @ drivers/cpufreq/cpufreq_conservative.c "){
  3. Probe kernel. function ("Do_dbs_timer"){
  4. Times ++
  5. }
  6. Probe timer. ms (1000 ){
  7. If(Times ){
  8. Printf ("% S % d \ n", Execname (), times)
  9. }
  10. }

This script is used to count how many times the do_dbs_timer function is entered. This function is responsible for CPU frequency modulation and runs this script.

$ Sudo stap-v cpuload. stp

The following running result is displayed:

  1. Sun @ sun-pc: dbs_timer $ clear
  2. Sun @ sun-pc: dbs_timer $ sudo stap-v cpuload. stp
  3. Pass 1: parsed user script and 76 library script (s)Using24216 virt/13692res/2276shr kb, in 130usr/20sys/146 real ms.
  4. Pass 2: analyzed script: 3 probe (s), 1 function (s), 3 embed (s), 1 global (s)Using221608 virt/33032res/3366shr kb, in 610usr/170sys/783 real ms.
  5. Pass 3:UsingCached/home/sun/. systemtap/cache/70/stap_70945be0878032891000488a733f9b86_2071.c
  6. Pass 4:UsingCached/home/sun/. systemtap/cache/70/stap_70945be0878032891000488a733f9b86_2071.ko
  7. Pass 5: starting run.
  8. Swapper/1 136
  9. Swapper/1 272
  10. Swapper/1 409
  11. Swapper/1 544
  12. Swapper/1 681
  13. Swapper/1 816
  14. Swapper/1 950
  15. Swapper/1 1095
  16. Swapper/1 1236
  17. X.org 1397
  18. Swapper/1 1543
  19. Swapper/1 1679
  20. Swapper/1 1815
  21. Swapper/1 1951
  22. Swapper/1 2087

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.