Use the cpufreq tool to temporarily adjust the CPU clock speed

Source: Internet
Author: User
The CPU Freq tool is used to temporarily adjust the clock speed of the CPU. the CPU and the main board have power-saving technologies. If the CPU is working at a low load, the frequency is automatically reduced. If you need to temporarily set the clock speed and working mode, you can use cpufreq to manually adjust it. This mode will expire after restart. if you need to adjust it for a long time, modify/etc /...
The CPU Freq tool is used to temporarily adjust the clock speed of the CPU. the CPU and the main board have power-saving technologies. If the CPU is working at a low load, the frequency is automatically reduced. If you need to temporarily set the clock speed and working mode, you can use cpufreq to manually adjust it. This mode will expire after restart. if you need to adjust it for a long time, modify/etc/sysconfig/cpuspeed. Www.2cto.com lsmod | grep "acpi_cpufreq" run the preceding command to check whether the acpi_cpufreq module is loaded, if not loaded, you can use yum to install this module yum install-y cpufreq-utils.x86_64 modprobe acpi_cpufreq # tested this module does not support intel xeon processor, only P4-clockmod this module supports xeon processor, but the premise is to compile the kernel by yourself... View the current CPU operating frequency and status: www.2cto.com cpufreq-info execute the above command, the output is as follows: cpufrequtils 005: cpufreq-info (C) Dominik brodoski 2004-2006Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 1.60 GHz-2.60 GHz available frequency steps: 2.60 GHz, 2.50 GHz, 2.40 GHz, 2.30 GHz, 2.20 GHz, 2.10 GHz, 2.00 GB Hz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz available cpufreq governors: ondemand, userspace, performance current policy: frequency shocould be within 1.60 GHz and 2.60 GHz. the governor "ondemand" may decide which speed to use within this range. current CPU frequency is 1.60 GHz (asserted by call to hardware ). the governor "ondemand" indicates The CPU frequency policy. There are three CPU policies: onemand (indicating that the system can adjust the frequency dynamically to reduce power consumption. the specific adjustment policy is related to the kernel's power consumption management algorithm ), userspace (indicating that the user can set the cpu frequency), performance (indicating that the CPU always works at the highest frequency ). Www.2cto.com current CPU frequency is 1.60 GHz indicates the current running clock speed. Adjust the CPU working mode: 1. adjust the overall working mode cpufreq-set-g performance. execute the above command to make the CPU always work at the highest clock speed (no energy saving, but high performance ). After execution, you can run cpufreq-info again to view the CPU policy and current clock speed. 2. specify the maximum frequency and minimum frequency of the manual No. 0 core cpufreq-set-c 0-g userspace-d 180000-u 240000 to execute the above commands, set the core 0 to custom, and set the minimum frequency to 1.8 GHz and the maximum frequency to 2.4 GHz.
Related Article

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.